File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -426,10 +426,15 @@ impl TestProps {
426426 self . known_bug = true ;
427427 } else {
428428 panic ! (
429- "Invalid known-bug value: {known_bug}\n It requires comma-separated issue references (`#000` or `chalk#000`) or `unknown`."
429+ "Invalid known-bug value: {known_bug}\n It requires comma-separated issue references (`#000` or `chalk#000`) or `known-bug: unknown`."
430430 ) ;
431431 }
432+ } else if config. parse_name_directive ( ln, KNOWN_BUG ) {
433+ panic ! (
434+ "Invalid known-bug attribute, requires comma-separated issue references (`#000` or `chalk#000`) or `known-bug: unknown`."
435+ ) ;
432436 }
437+
433438 config. set_name_value_directive ( ln, MIR_UNIT_TEST , & mut self . mir_unit_test , |s| {
434439 s. trim ( ) . to_string ( )
435440 } ) ;
You can’t perform that action at this time.
0 commit comments