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