@@ -20,9 +20,9 @@ use tracing::*;
2020use crate :: common:: {
2121 Assembly , Codegen , CodegenUnits , CompareMode , Config , CoverageMap , CoverageRun , Crashes ,
2222 DebugInfo , Debugger , FailMode , Incremental , JsDocTest , MirOpt , PassMode , Pretty , RunMake ,
23- RunPassValgrind , Rustdoc , RustdocJson , TestPaths , UI_EXTENSIONS , UI_FIXED , UI_RUN_STDERR ,
24- UI_RUN_STDOUT , UI_STDERR , UI_STDOUT , UI_SVG , UI_WINDOWS_SVG , Ui , expected_output_path,
25- incremental_dir , output_base_dir, output_base_name, output_testname_unique,
23+ Rustdoc , RustdocJson , TestPaths , UI_EXTENSIONS , UI_FIXED , UI_RUN_STDERR , UI_RUN_STDOUT ,
24+ UI_STDERR , UI_STDOUT , UI_SVG , UI_WINDOWS_SVG , Ui , expected_output_path, incremental_dir ,
25+ output_base_dir, output_base_name, output_testname_unique,
2626} ;
2727use crate :: compute_diff:: { write_diff, write_filtered_diff} ;
2828use crate :: errors:: { self , Error , ErrorKind } ;
@@ -49,7 +49,6 @@ mod run_make;
4949mod rustdoc;
5050mod rustdoc_json;
5151mod ui;
52- mod valgrind;
5352// tidy-alphabet-end
5453
5554#[ cfg( test) ]
@@ -253,7 +252,6 @@ impl<'test> TestCx<'test> {
253252 self . fatal ( "cannot use should-ice in a test that is not cfail" ) ;
254253 }
255254 match self . config . mode {
256- RunPassValgrind => self . run_valgrind_test ( ) ,
257255 Pretty => self . run_pretty_test ( ) ,
258256 DebugInfo => self . run_debuginfo_test ( ) ,
259257 Codegen => self . run_codegen_test ( ) ,
@@ -1500,8 +1498,7 @@ impl<'test> TestCx<'test> {
15001498 Crashes => {
15011499 set_mir_dump_dir ( & mut rustc) ;
15021500 }
1503- RunPassValgrind | Pretty | DebugInfo | Rustdoc | RustdocJson | RunMake
1504- | CodegenUnits | JsDocTest => {
1501+ Pretty | DebugInfo | Rustdoc | RustdocJson | RunMake | CodegenUnits | JsDocTest => {
15051502 // do not use JSON output
15061503 }
15071504 }
@@ -2651,33 +2648,6 @@ impl<'test> TestCx<'test> {
26512648 }
26522649 }
26532650
2654- // FIXME(jieyouxu): `run_rpass_test` is hoisted out here and not in incremental because
2655- // apparently valgrind test falls back to `run_rpass_test` if valgrind isn't available, which
2656- // seems highly questionable to me.
2657- fn run_rpass_test ( & self ) {
2658- let emit_metadata = self . should_emit_metadata ( self . pass_mode ( ) ) ;
2659- let should_run = self . run_if_enabled ( ) ;
2660- let proc_res = self . compile_test ( should_run, emit_metadata) ;
2661-
2662- if !proc_res. status . success ( ) {
2663- self . fatal_proc_rec ( "compilation failed!" , & proc_res) ;
2664- }
2665-
2666- // FIXME(#41968): Move this check to tidy?
2667- if !errors:: load_errors ( & self . testpaths . file , self . revision ) . is_empty ( ) {
2668- self . fatal ( "run-pass tests with expected warnings should be moved to ui/" ) ;
2669- }
2670-
2671- if let WillExecute :: Disabled = should_run {
2672- return ;
2673- }
2674-
2675- let proc_res = self . exec_compiled_test ( ) ;
2676- if !proc_res. status . success ( ) {
2677- self . fatal_proc_rec ( "test run failed!" , & proc_res) ;
2678- }
2679- }
2680-
26812651 fn aggressive_rm_rf ( & self , path : & Path ) -> io:: Result < ( ) > {
26822652 for e in path. read_dir ( ) ? {
26832653 let entry = e?;
0 commit comments