Skip to content

Commit abe55c2

Browse files
committed
Auto merge of #1490 - RalfJung:rustup, r=RalfJung
rustup for new folder layout Fixes the fallout from rust-lang/rust#73265. Blocked on a xargo release with japaric/xargo#301.
2 parents 79cd5a8 + ee39ac9 commit abe55c2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cargo-miri/bin.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::process::Command;
1010

1111
use rustc_version::VersionMeta;
1212

13-
const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 21);
13+
const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 22);
1414

1515
const CARGO_MIRI_HELP: &str = r#"Interprets bin crates and tests in Miri
1616
@@ -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)