@@ -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" ) )
@@ -583,13 +583,13 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
583583 . default ( build. config . docs )
584584 . host ( true )
585585 . run ( move |s| doc:: error_index ( build, s. target ) ) ;
586- for ( krate, path, default) in krates ( "std_shim " ) {
586+ for ( krate, path, default) in krates ( "std " ) {
587587 rules. doc ( & krate. doc_step , path)
588588 . dep ( |s| s. name ( "libstd-link" ) )
589589 . default ( default && build. config . docs )
590590 . run ( move |s| doc:: std ( build, s. stage , s. target ) ) ;
591591 }
592- for ( krate, path, default) in krates ( "test_shim " ) {
592+ for ( krate, path, default) in krates ( "test " ) {
593593 rules. doc ( & krate. doc_step , path)
594594 . dep ( |s| s. name ( "libtest-link" ) )
595595 . default ( default && build. config . compiler_docs )
@@ -1154,23 +1154,23 @@ mod tests {
11541154
11551155 let mut build = Build :: new ( flags, config) ;
11561156 let cwd = env:: current_dir ( ) . unwrap ( ) ;
1157- build. crates . insert ( "std_shim " . to_string ( ) , :: Crate {
1158- name : "std_shim " . to_string ( ) ,
1157+ build. crates . insert ( "std " . to_string ( ) , :: Crate {
1158+ name : "std " . to_string ( ) ,
11591159 deps : Vec :: new ( ) ,
1160- path : cwd. join ( "src/std_shim " ) ,
1161- doc_step : "doc-std_shim " . to_string ( ) ,
1162- build_step : "build-crate-std_shim " . to_string ( ) ,
1163- test_step : "test-std_shim " . to_string ( ) ,
1164- bench_step : "bench-std_shim " . to_string ( ) ,
1160+ path : cwd. join ( "src/std " ) ,
1161+ doc_step : "doc-std " . to_string ( ) ,
1162+ build_step : "build-crate-std " . to_string ( ) ,
1163+ test_step : "test-std " . to_string ( ) ,
1164+ bench_step : "bench-std " . to_string ( ) ,
11651165 } ) ;
1166- build. crates . insert ( "test_shim " . to_string ( ) , :: Crate {
1167- name : "test_shim " . to_string ( ) ,
1166+ build. crates . insert ( "test " . to_string ( ) , :: Crate {
1167+ name : "test " . to_string ( ) ,
11681168 deps : Vec :: new ( ) ,
1169- path : cwd. join ( "src/test_shim " ) ,
1170- doc_step : "doc-test_shim " . to_string ( ) ,
1171- build_step : "build-crate-test_shim " . to_string ( ) ,
1172- test_step : "test-test_shim " . to_string ( ) ,
1173- bench_step : "bench-test_shim " . to_string ( ) ,
1169+ path : cwd. join ( "src/test " ) ,
1170+ doc_step : "doc-test " . to_string ( ) ,
1171+ build_step : "build-crate-test " . to_string ( ) ,
1172+ test_step : "test-test " . to_string ( ) ,
1173+ bench_step : "bench-test " . to_string ( ) ,
11741174 } ) ;
11751175 build. crates . insert ( "rustc-main" . to_string ( ) , :: Crate {
11761176 name : "rustc-main" . to_string ( ) ,
@@ -1360,7 +1360,7 @@ mod tests {
13601360 let all = rules. expand ( & plan) ;
13611361 println ! ( "all rules: {:#?}" , all) ;
13621362 assert ! ( !all. contains( & step. name( "rustc" ) ) ) ;
1363- assert ! ( !all. contains( & step. name( "build-crate-std_shim " ) . stage( 1 ) ) ) ;
1363+ assert ! ( !all. contains( & step. name( "build-crate-std " ) . stage( 1 ) ) ) ;
13641364
13651365 // all stage0 compiles should be for the build target, A
13661366 for step in all. iter ( ) . filter ( |s| s. stage == 0 ) {
@@ -1425,7 +1425,7 @@ mod tests {
14251425
14261426 assert ! ( !plan. iter( ) . any( |s| s. name. contains( "rustc" ) ) ) ;
14271427 assert ! ( plan. iter( ) . all( |s| {
1428- !s. name. contains( "test_shim " ) || s. target == "C"
1428+ !s. name. contains( "test " ) || s. target == "C"
14291429 } ) ) ;
14301430 }
14311431
0 commit comments