@@ -126,6 +126,12 @@ pub struct TestProps {
126
126
// empty before the test starts. Incremental mode tests will reuse the
127
127
// incremental directory between passes in the same test.
128
128
pub incremental : bool ,
129
+ // If `true`, this test is a known bug.
130
+ //
131
+ // When set, some requirements are relaxed. Currently, this only means no
132
+ // error annotations are needed, but this may be updated in the future to
133
+ // include other relaxations.
134
+ pub known_bug : bool ,
129
135
// How far should the test proceed while still passing.
130
136
pass_mode : Option < PassMode > ,
131
137
// Ignore `--pass` overrides from the command line for this test.
@@ -176,6 +182,7 @@ impl TestProps {
176
182
forbid_output : vec ! [ ] ,
177
183
incremental_dir : None ,
178
184
incremental : false ,
185
+ known_bug : false ,
179
186
pass_mode : None ,
180
187
fail_mode : None ,
181
188
ignore_pass : false ,
@@ -362,6 +369,10 @@ impl TestProps {
362
369
if !self . incremental {
363
370
self . incremental = config. parse_incremental ( ln) ;
364
371
}
372
+
373
+ if !self . known_bug {
374
+ self . known_bug = config. parse_known_bug ( ln) ;
375
+ }
365
376
} ) ;
366
377
}
367
378
@@ -751,6 +762,10 @@ impl Config {
751
762
fn parse_incremental ( & self , line : & str ) -> bool {
752
763
self . parse_name_directive ( line, "incremental" )
753
764
}
765
+
766
+ fn parse_known_bug ( & self , line : & str ) -> bool {
767
+ self . parse_name_directive ( line, "known-bug" )
768
+ }
754
769
}
755
770
756
771
fn expand_variables ( mut value : String , config : & Config ) -> String {
0 commit comments