mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-15 21:34:19 +00:00
internal: enforce no #[ignore] and no #[should_panic]
This commit is contained in:
parent
4584868a7a
commit
067e97d149
3 changed files with 33 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#[cfg(test)]
|
||||
#[ignore]
|
||||
#[Ignore]
|
||||
fn foo() {}
|
||||
|
||||
#[path = "a.rs"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue