@@ -5,7 +5,7 @@ use crate::core::build_steps::compile::{
55} ;
66use crate :: core:: build_steps:: tool:: { COMPILETEST_ALLOW_FEATURES , SourceType , prepare_tool_cargo} ;
77use crate :: core:: builder:: {
8- self , Alias , Builder , Kind , RunConfig , ShouldRun , Step , crate_description,
8+ self , Alias , Builder , Kind , RunConfig , ShouldRun , Step , StepMetadata , crate_description,
99} ;
1010use crate :: core:: config:: TargetSelection ;
1111use crate :: utils:: build_stamp:: { self , BuildStamp } ;
@@ -167,6 +167,10 @@ impl Step for Std {
167167 let _guard = builder. msg_check ( "library test/bench/example targets" , target, Some ( stage) ) ;
168168 run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
169169 }
170+
171+ fn metadata ( & self ) -> Option < StepMetadata > {
172+ Some ( StepMetadata :: check ( "std" , self . target ) )
173+ }
170174}
171175
172176#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -258,6 +262,10 @@ impl Step for Rustc {
258262 let hostdir = builder. sysroot_target_libdir ( compiler, compiler. host ) ;
259263 add_to_sysroot ( builder, & libdir, & hostdir, & stamp) ;
260264 }
265+
266+ fn metadata ( & self ) -> Option < StepMetadata > {
267+ Some ( StepMetadata :: check ( "rustc" , self . target ) )
268+ }
261269}
262270
263271#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -315,6 +323,10 @@ impl Step for CodegenBackend {
315323
316324 run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
317325 }
326+
327+ fn metadata ( & self ) -> Option < StepMetadata > {
328+ Some ( StepMetadata :: check ( self . backend , self . target ) )
329+ }
318330}
319331
320332#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -373,6 +385,10 @@ impl Step for RustAnalyzer {
373385 let _guard = builder. msg_check ( "rust-analyzer artifacts" , target, None ) ;
374386 run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
375387 }
388+
389+ fn metadata ( & self ) -> Option < StepMetadata > {
390+ Some ( StepMetadata :: check ( "rust-analyzer" , self . target ) )
391+ }
376392}
377393
378394/// Compiletest is implicitly "checked" when it gets built in order to run tests,
@@ -432,6 +448,10 @@ impl Step for Compiletest {
432448 let _guard = builder. msg_check ( "compiletest artifacts" , self . target , None ) ;
433449 run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
434450 }
451+
452+ fn metadata ( & self ) -> Option < StepMetadata > {
453+ Some ( StepMetadata :: check ( "compiletest" , self . target ) )
454+ }
435455}
436456
437457macro_rules! tool_check_step {
@@ -467,6 +487,10 @@ macro_rules! tool_check_step {
467487 let Self { target } = self ;
468488 run_tool_check_step( builder, target, stringify!( $name) , $path) ;
469489 }
490+
491+ fn metadata( & self ) -> Option <StepMetadata > {
492+ Some ( StepMetadata :: check( stringify!( $name) , self . target) )
493+ }
470494 }
471495 }
472496}
0 commit comments