internal: enforce no #[ignore] and no #[should_panic]

This commit is contained in:
Aleksey Kladov 2021-06-15 16:54:43 +03:00
parent 4584868a7a
commit 067e97d149
3 changed files with 33 additions and 2 deletions

View file

@ -21,7 +21,7 @@ SOURCE_FILE@0..60
PATH@15..21
PATH_SEGMENT@15..21
NAME_REF@15..21
IDENT@15..21 "ignore"
IDENT@15..21 "Ignore"
R_BRACK@21..22 "]"
WHITESPACE@22..23 "\n"
FN_KW@23..25 "fn"

View file

@ -1,5 +1,5 @@
#[cfg(test)]
#[ignore]
#[Ignore]
fn foo() {}
#[path = "a.rs"]