File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 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) {
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" ] ) ;
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"
22#![ feature( never_type) ]
33#![ allow( unconditional_panic) ]
44
You can’t perform that action at this time.
0 commit comments