File tree 1 file changed +4
-4
lines changed
src/tools/compiletest/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -260,9 +260,9 @@ impl TestProps {
260
260
props. load_from ( testfile, cfg, config) ;
261
261
262
262
match ( props. pass_mode , props. fail_mode ) {
263
- ( None , None ) => props. fail_mode = Some ( FailMode :: Check ) ,
264
- ( Some ( _) , None ) | ( None , Some ( _) ) => { }
263
+ ( None , None ) if config. mode == Mode :: Ui => props. fail_mode = Some ( FailMode :: Check ) ,
265
264
( Some ( _) , Some ( _) ) => panic ! ( "cannot use a *-fail and *-pass mode together" ) ,
265
+ _ => { }
266
266
}
267
267
268
268
props
@@ -522,8 +522,8 @@ impl TestProps {
522
522
}
523
523
524
524
pub fn pass_mode ( & self , config : & Config ) -> Option < PassMode > {
525
- if !self . ignore_pass && self . fail_mode . is_none ( ) && config . mode == Mode :: Ui {
526
- if let ( mode @ Some ( _) , Some ( _ ) ) = ( config. force_pass_mode , self . pass_mode ) {
525
+ if !self . ignore_pass && self . fail_mode . is_none ( ) {
526
+ if let mode @ Some ( _) = config. force_pass_mode {
527
527
return mode;
528
528
}
529
529
}
You can’t perform that action at this time.
0 commit comments