File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -271,10 +271,10 @@ fn setup(subcommand: MiriCommand) {
271
271
. stdout ;
272
272
let sysroot = std:: str:: from_utf8 ( & sysroot) . unwrap ( ) ;
273
273
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 `.
275
275
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 ( ) {
278
278
// Ask the user to install the `rust-src` component, and use that.
279
279
let mut cmd = Command :: new ( "rustup" ) ;
280
280
cmd. args ( & [ "component" , "add" , "rust-src" ] ) ;
Original file line number Diff line number Diff line change 1
- efc02b03d18b0cbaa55b1e421d792f70a39230b2
1
+ 1454bbd4fdac9b7272b93fe82860613dccc0afad
Original file line number Diff line number Diff line change 1
- // normalize-stderr-test "[^ ]*libcore /[a-z_/]+.rs[0-9:]*" -> "$$LOC"
1
+ // normalize-stderr-test "[^ ]*core /[a-z_/]+.rs[0-9:]*" -> "$$LOC"
2
2
#![ feature( never_type) ]
3
3
#![ allow( unconditional_panic) ]
4
4
You can’t perform that action at this time.
0 commit comments