File tree 1 file changed +3
-2
lines changed
src/tools/compiletest/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -606,7 +606,8 @@ impl TestProps {
606
606
607
607
fn update_fail_mode ( & mut self , ln : & str , config : & Config ) {
608
608
let check_ui = |mode : & str | {
609
- if config. mode != Mode :: Ui {
609
+ // Mode::Crashes may need build-fail in order to trigger llvm errors or stack overflows
610
+ if config. mode != Mode :: Ui && config. mode != Mode :: Crashes {
610
611
panic ! ( "`{}-fail` header is only supported in UI tests" , mode) ;
611
612
}
612
613
} ;
@@ -635,7 +636,7 @@ impl TestProps {
635
636
fn update_pass_mode ( & mut self , ln : & str , revision : Option < & str > , config : & Config ) {
636
637
let check_no_run = |s| match ( config. mode , s) {
637
638
( Mode :: Ui , _) => ( ) ,
638
- ( Mode :: Crashes , "should-ice" ) => ( ) ,
639
+ ( Mode :: Crashes , _ ) => ( ) ,
639
640
( Mode :: Codegen , "build-pass" ) => ( ) ,
640
641
( Mode :: Incremental , _) => {
641
642
if revision. is_some ( ) && !self . revisions . iter ( ) . all ( |r| r. starts_with ( "cfail" ) ) {
You can’t perform that action at this time.
0 commit comments