@@ -903,6 +903,58 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
903903 }
904904}
905905
906+ #[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
907+ pub struct StdarchVerify {
908+ build_compiler : Compiler ,
909+ target : TargetSelection ,
910+ }
911+
912+ impl Step for StdarchVerify {
913+ type Output = ( ) ;
914+ const IS_HOST : bool = true ;
915+
916+ fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
917+ run. path ( "library/stdarch/crates/stdarch-verify" )
918+ }
919+
920+ fn is_default_step ( _builder : & Builder < ' _ > ) -> bool {
921+ true
922+ }
923+
924+ fn make_run ( run : RunConfig < ' _ > ) {
925+ let builder = run. builder ;
926+ let build_compiler = get_compiler_to_test ( builder, run. target ) ;
927+ builder. ensure ( StdarchVerify { build_compiler, target : run. target } ) ;
928+ }
929+
930+ fn run ( self , builder : & Builder < ' _ > ) {
931+ let build_compiler = self . build_compiler ;
932+ let target = self . target ;
933+
934+ builder. std ( build_compiler, target) ;
935+
936+ let cargo = tool:: prepare_tool_cargo (
937+ builder,
938+ build_compiler,
939+ Mode :: ToolStd ,
940+ target,
941+ Kind :: Test ,
942+ "library/stdarch/crates/stdarch-verify" ,
943+ SourceType :: InTree ,
944+ & [ ] ,
945+ ) ;
946+
947+ run_cargo_test (
948+ cargo,
949+ & [ ] ,
950+ & [ "stdarch-verify" . to_string ( ) ] ,
951+ Some ( "stdarch-verify" ) ,
952+ target,
953+ builder,
954+ ) ;
955+ }
956+ }
957+
906958#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
907959pub struct Clippy {
908960 compilers : RustcPrivateCompilers ,
0 commit comments