Closed
Description
Mentioned in #17327, there are two places where rustc sets and resets PATH
. Doing this means that running multiple compilations in parallel will stomp on each others' environment variables. This can happen, e.g. in rustdoc which runs tests by driving rustc directly. The proper way to set the environment for subprocesses is through the process Command type.
cc @vadimcn