We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf60e3 commit 42ef94fCopy full SHA for 42ef94f
src/cargo/util/config/mod.rs
@@ -1664,6 +1664,11 @@ impl Config {
1664
//
1665
// First, we must be running under rustup in the first place.
1666
let toolchain = self.get_env_os("RUSTUP_TOOLCHAIN")?;
1667
+ // This currently does not support toolchain paths.
1668
+ // This also enforces UTF-8.
1669
+ if toolchain.to_str()?.contains(&['/', '\\']) {
1670
+ return None;
1671
+ }
1672
// If the tool on PATH is the same as `rustup` on path, then
1673
// there is pretty good evidence that it will be a proxy.
1674
let tool_resolved = paths::resolve_executable(Path::new(tool)).ok()?;
0 commit comments