@@ -126,6 +126,12 @@ pub struct TestProps {
126126 // empty before the test starts. Incremental mode tests will reuse the
127127 // incremental directory between passes in the same test.
128128 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 ,
129135 // How far should the test proceed while still passing.
130136 pass_mode : Option < PassMode > ,
131137 // Ignore `--pass` overrides from the command line for this test.
@@ -176,6 +182,7 @@ impl TestProps {
176182 forbid_output : vec ! [ ] ,
177183 incremental_dir : None ,
178184 incremental : false ,
185+ known_bug : false ,
179186 pass_mode : None ,
180187 fail_mode : None ,
181188 ignore_pass : false ,
@@ -362,6 +369,10 @@ impl TestProps {
362369 if !self . incremental {
363370 self . incremental = config. parse_incremental ( ln) ;
364371 }
372+
373+ if !self . known_bug {
374+ self . known_bug = config. parse_known_bug ( ln) ;
375+ }
365376 } ) ;
366377 }
367378
@@ -751,6 +762,10 @@ impl Config {
751762 fn parse_incremental ( & self , line : & str ) -> bool {
752763 self . parse_name_directive ( line, "incremental" )
753764 }
765+
766+ fn parse_known_bug ( & self , line : & str ) -> bool {
767+ self . parse_name_directive ( line, "known-bug" )
768+ }
754769}
755770
756771fn expand_variables ( mut value : String , config : & Config ) -> String {
0 commit comments