Skip to content

Commit 2ced200

Browse files
committed
rustup for new folder layout
1 parent 79cd5a8 commit 2ced200

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cargo-miri/bin.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ fn setup(subcommand: MiriCommand) {
271271
.stdout;
272272
let sysroot = std::str::from_utf8(&sysroot).unwrap();
273273
let sysroot = Path::new(sysroot.trim_end_matches('\n'));
274-
// Check for `$SYSROOT/lib/rustlib/src/rust/src`; test if that contains `libstd/lib.rs`.
274+
// Check for `$SYSROOT/lib/rustlib/src/rust/library`; test if that contains `std/Cargo.toml`.
275275
let rustup_src =
276-
sysroot.join("lib").join("rustlib").join("src").join("rust").join("src");
277-
if !rustup_src.join("libstd").join("lib.rs").exists() {
276+
sysroot.join("lib").join("rustlib").join("src").join("rust").join("library");
277+
if !rustup_src.join("std").join("Cargo.toml").exists() {
278278
// Ask the user to install the `rust-src` component, and use that.
279279
let mut cmd = Command::new("rustup");
280280
cmd.args(&["component", "add", "rust-src"]);

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
efc02b03d18b0cbaa55b1e421d792f70a39230b2
1+
1454bbd4fdac9b7272b93fe82860613dccc0afad

tests/run-pass/panic/catch_panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// normalize-stderr-test "[^ ]*libcore/[a-z_/]+.rs[0-9:]*" -> "$$LOC"
1+
// normalize-stderr-test "[^ ]*core/[a-z_/]+.rs[0-9:]*" -> "$$LOC"
22
#![feature(never_type)]
33
#![allow(unconditional_panic)]
44

0 commit comments

Comments
 (0)