@@ -5,7 +5,7 @@ use crate::common::{expected_output_path, UI_EXTENSIONS, UI_FIXED, UI_STDERR, UI
55use crate :: common:: { output_base_dir, output_base_name, output_testname_unique} ;
66use crate :: common:: { Codegen , CodegenUnits , Rustdoc } ;
77use crate :: common:: { DebugInfoCdb , DebugInfoGdbLldb , DebugInfoGdb , DebugInfoLldb } ;
8- use crate :: common:: { CompileFail , Pretty , RunFail , RunPass , RunPassValgrind } ;
8+ use crate :: common:: { Pretty , RunFail , RunPass , RunPassValgrind } ;
99use crate :: common:: { Config , TestPaths } ;
1010use crate :: common:: { Incremental , MirOpt , RunMake , Ui , JsDocTest , Assembly } ;
1111use diff;
@@ -286,7 +286,6 @@ impl<'test> TestCx<'test> {
286286 /// revisions, exactly once, with revision == None).
287287 fn run_revision ( & self ) {
288288 match self . config . mode {
289- CompileFail => self . run_cfail_test ( ) ,
290289 RunFail => self . run_rfail_test ( ) ,
291290 RunPassValgrind => self . run_valgrind_test ( ) ,
292291 Pretty => self . run_pretty_test ( ) ,
@@ -319,7 +318,6 @@ impl<'test> TestCx<'test> {
319318
320319 fn should_compile_successfully ( & self ) -> bool {
321320 match self . config . mode {
322- CompileFail => false ,
323321 RunPass => true ,
324322 JsDocTest => true ,
325323 Ui => self . props . pass_mode . is_some ( ) ,
@@ -1535,12 +1533,11 @@ impl<'test> TestCx<'test> {
15351533 rustc. arg ( "-L" ) . arg ( & self . aux_output_dir_name ( ) ) ;
15361534
15371535 match self . config . mode {
1538- CompileFail | Ui => {
1539- // compile-fail and ui tests tend to have tons of unused code as
1540- // it's just testing various pieces of the compile, but we don't
1541- // want to actually assert warnings about all this code. Instead
1542- // let's just ignore unused code warnings by defaults and tests
1543- // can turn it back on if needed.
1536+ Ui => {
1537+ // ui tests tend to have tons of unused code as it's just testing
1538+ // various pieces of the compile, but we don't want to actually assert
1539+ // warnings about all this code. Instead let's just ignore unused
1540+ // code warnings by defaults and tests can turn it back on if needed.
15441541 if !self . config . src_base . ends_with ( "rustdoc-ui" ) {
15451542 rustc. args ( & [ "-A" , "unused" ] ) ;
15461543 }
@@ -1922,7 +1919,7 @@ impl<'test> TestCx<'test> {
19221919 }
19231920
19241921 match self . config . mode {
1925- CompileFail | Incremental => {
1922+ Incremental => {
19261923 // If we are extracting and matching errors in the new
19271924 // fashion, then you want JSON mode. Old-skool error
19281925 // patterns still match the raw compiler output.
0 commit comments