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 9a0605d commit ab65cb3Copy full SHA for ab65cb3
cargo-miri/bin.rs
@@ -257,7 +257,10 @@ fn setup(subcommand: MiriCommand) {
257
258
// Determine where the rust sources are located. `XARGO_RUST_SRC` env var trumps everything.
259
let rust_src = match std::env::var_os("XARGO_RUST_SRC") {
260
- Some(val) => PathBuf::from(val),
+ Some(val) => {
261
+ let val = PathBuf::from(val);
262
+ val.canonicalize().unwrap_or(val)
263
+ }
264
None => {
265
// Check for `rust-src` rustup component.
266
let sysroot = miri()
0 commit comments