@@ -5,7 +5,7 @@ use crate::common::{expected_output_path, UI_EXTENSIONS, UI_FIXED, UI_STDERR, UI
5
5
use crate :: common:: { output_base_dir, output_base_name, output_testname_unique} ;
6
6
use crate :: common:: { Codegen , CodegenUnits , Rustdoc } ;
7
7
use crate :: common:: { DebugInfoCdb , DebugInfoGdbLldb , DebugInfoGdb , DebugInfoLldb } ;
8
- use crate :: common:: { CompileFail , Pretty , RunFail , RunPass , RunPassValgrind } ;
8
+ use crate :: common:: { Pretty , RunFail , RunPass , RunPassValgrind } ;
9
9
use crate :: common:: { Config , TestPaths } ;
10
10
use crate :: common:: { Incremental , MirOpt , RunMake , Ui , JsDocTest , Assembly } ;
11
11
use diff;
@@ -286,7 +286,6 @@ impl<'test> TestCx<'test> {
286
286
/// revisions, exactly once, with revision == None).
287
287
fn run_revision ( & self ) {
288
288
match self . config . mode {
289
- CompileFail => self . run_cfail_test ( ) ,
290
289
RunFail => self . run_rfail_test ( ) ,
291
290
RunPassValgrind => self . run_valgrind_test ( ) ,
292
291
Pretty => self . run_pretty_test ( ) ,
@@ -319,7 +318,6 @@ impl<'test> TestCx<'test> {
319
318
320
319
fn should_compile_successfully ( & self ) -> bool {
321
320
match self . config . mode {
322
- CompileFail => false ,
323
321
RunPass => true ,
324
322
JsDocTest => true ,
325
323
Ui => self . props . pass_mode . is_some ( ) ,
@@ -1535,12 +1533,11 @@ impl<'test> TestCx<'test> {
1535
1533
rustc. arg ( "-L" ) . arg ( & self . aux_output_dir_name ( ) ) ;
1536
1534
1537
1535
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.
1544
1541
if !self . config . src_base . ends_with ( "rustdoc-ui" ) {
1545
1542
rustc. args ( & [ "-A" , "unused" ] ) ;
1546
1543
}
@@ -1922,7 +1919,7 @@ impl<'test> TestCx<'test> {
1922
1919
}
1923
1920
1924
1921
match self . config . mode {
1925
- CompileFail | Incremental => {
1922
+ Incremental => {
1926
1923
// If we are extracting and matching errors in the new
1927
1924
// fashion, then you want JSON mode. Old-skool error
1928
1925
// patterns still match the raw compiler output.
0 commit comments