@@ -246,14 +246,14 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
246246 crate_rule ( build,
247247 & mut rules,
248248 "libstd-link" ,
249- "build-crate-std_shim " ,
249+ "build-crate-std " ,
250250 compile:: std_link)
251251 . dep ( |s| s. name ( "startup-objects" ) )
252252 . dep ( |s| s. name ( "create-sysroot" ) . target ( s. host ) ) ;
253253 crate_rule ( build,
254254 & mut rules,
255255 "libtest-link" ,
256- "build-crate-test_shim " ,
256+ "build-crate-test " ,
257257 compile:: test_link)
258258 . dep ( |s| s. name ( "libstd-link" ) ) ;
259259 crate_rule ( build,
@@ -263,13 +263,13 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
263263 compile:: rustc_link)
264264 . dep ( |s| s. name ( "libtest-link" ) ) ;
265265
266- for ( krate, path, _default) in krates ( "std_shim " ) {
266+ for ( krate, path, _default) in krates ( "std " ) {
267267 rules. build ( & krate. build_step , path)
268268 . dep ( |s| s. name ( "startup-objects" ) )
269269 . dep ( move |s| s. name ( "rustc" ) . host ( & build. config . build ) . target ( s. host ) )
270270 . run ( move |s| compile:: std ( build, s. target , & s. compiler ( ) ) ) ;
271271 }
272- for ( krate, path, _default) in krates ( "test_shim " ) {
272+ for ( krate, path, _default) in krates ( "test " ) {
273273 rules. build ( & krate. build_step , path)
274274 . dep ( |s| s. name ( "libstd-link" ) )
275275 . run ( move |s| compile:: test ( build, s. target , & s. compiler ( ) ) ) ;
@@ -384,7 +384,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
384384 "pretty" , "run-fail-fulldeps" ) ;
385385 }
386386
387- for ( krate, path, _default) in krates ( "std_shim " ) {
387+ for ( krate, path, _default) in krates ( "std " ) {
388388 rules. test ( & krate. test_step , path)
389389 . dep ( |s| s. name ( "libtest" ) )
390390 . dep ( |s| s. name ( "emulator-copy-libs" ) )
@@ -400,7 +400,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
400400 Mode :: Libstd , TestKind :: Test , None ) ) ;
401401
402402 // std benchmarks
403- for ( krate, path, _default) in krates ( "std_shim " ) {
403+ for ( krate, path, _default) in krates ( "std " ) {
404404 rules. bench ( & krate. bench_step , path)
405405 . dep ( |s| s. name ( "libtest" ) )
406406 . dep ( |s| s. name ( "emulator-copy-libs" ) )
@@ -415,7 +415,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
415415 . run ( move |s| check:: krate ( build, & s. compiler ( ) , s. target ,
416416 Mode :: Libstd , TestKind :: Bench , None ) ) ;
417417
418- for ( krate, path, _default) in krates ( "test_shim " ) {
418+ for ( krate, path, _default) in krates ( "test " ) {
419419 rules. test ( & krate. test_step , path)
420420 . dep ( |s| s. name ( "libtest" ) )
421421 . dep ( |s| s. name ( "emulator-copy-libs" ) )
@@ -601,13 +601,13 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
601601 . default ( build. config . docs )
602602 . host ( true )
603603 . run ( move |s| doc:: error_index ( build, s. target ) ) ;
604- for ( krate, path, default) in krates ( "std_shim " ) {
604+ for ( krate, path, default) in krates ( "std " ) {
605605 rules. doc ( & krate. doc_step , path)
606606 . dep ( |s| s. name ( "libstd-link" ) )
607607 . default ( default && build. config . docs )
608608 . run ( move |s| doc:: std ( build, s. stage , s. target ) ) ;
609609 }
610- for ( krate, path, default) in krates ( "test_shim " ) {
610+ for ( krate, path, default) in krates ( "test " ) {
611611 rules. doc ( & krate. doc_step , path)
612612 . dep ( |s| s. name ( "libtest-link" ) )
613613 . default ( default && build. config . compiler_docs )
@@ -1172,23 +1172,23 @@ mod tests {
11721172
11731173 let mut build = Build :: new ( flags, config) ;
11741174 let cwd = env:: current_dir ( ) . unwrap ( ) ;
1175- build. crates . insert ( "std_shim " . to_string ( ) , :: Crate {
1176- name : "std_shim " . to_string ( ) ,
1175+ build. crates . insert ( "std " . to_string ( ) , :: Crate {
1176+ name : "std " . to_string ( ) ,
11771177 deps : Vec :: new ( ) ,
1178- path : cwd. join ( "src/std_shim " ) ,
1179- doc_step : "doc-std_shim " . to_string ( ) ,
1180- build_step : "build-crate-std_shim " . to_string ( ) ,
1181- test_step : "test-std_shim " . to_string ( ) ,
1182- bench_step : "bench-std_shim " . to_string ( ) ,
1178+ path : cwd. join ( "src/std " ) ,
1179+ doc_step : "doc-std " . to_string ( ) ,
1180+ build_step : "build-crate-std " . to_string ( ) ,
1181+ test_step : "test-std " . to_string ( ) ,
1182+ bench_step : "bench-std " . to_string ( ) ,
11831183 } ) ;
1184- build. crates . insert ( "test_shim " . to_string ( ) , :: Crate {
1185- name : "test_shim " . to_string ( ) ,
1184+ build. crates . insert ( "test " . to_string ( ) , :: Crate {
1185+ name : "test " . to_string ( ) ,
11861186 deps : Vec :: new ( ) ,
1187- path : cwd. join ( "src/test_shim " ) ,
1188- doc_step : "doc-test_shim " . to_string ( ) ,
1189- build_step : "build-crate-test_shim " . to_string ( ) ,
1190- test_step : "test-test_shim " . to_string ( ) ,
1191- bench_step : "bench-test_shim " . to_string ( ) ,
1187+ path : cwd. join ( "src/test " ) ,
1188+ doc_step : "doc-test " . to_string ( ) ,
1189+ build_step : "build-crate-test " . to_string ( ) ,
1190+ test_step : "test-test " . to_string ( ) ,
1191+ bench_step : "bench-test " . to_string ( ) ,
11921192 } ) ;
11931193 build. crates . insert ( "rustc-main" . to_string ( ) , :: Crate {
11941194 name : "rustc-main" . to_string ( ) ,
@@ -1378,7 +1378,7 @@ mod tests {
13781378 let all = rules. expand ( & plan) ;
13791379 println ! ( "all rules: {:#?}" , all) ;
13801380 assert ! ( !all. contains( & step. name( "rustc" ) ) ) ;
1381- assert ! ( !all. contains( & step. name( "build-crate-std_shim " ) . stage( 1 ) ) ) ;
1381+ assert ! ( !all. contains( & step. name( "build-crate-std " ) . stage( 1 ) ) ) ;
13821382
13831383 // all stage0 compiles should be for the build target, A
13841384 for step in all. iter ( ) . filter ( |s| s. stage == 0 ) {
@@ -1443,7 +1443,7 @@ mod tests {
14431443
14441444 assert ! ( !plan. iter( ) . any( |s| s. name. contains( "rustc" ) ) ) ;
14451445 assert ! ( plan. iter( ) . all( |s| {
1446- !s. name. contains( "test_shim " ) || s. target == "C"
1446+ !s. name. contains( "test " ) || s. target == "C"
14471447 } ) ) ;
14481448 }
14491449
0 commit comments