add error message when #[naked]
is used with #[test]
This commit is contained in:
parent
7e6c083873
commit
4d082b77af
7 changed files with 112 additions and 0 deletions
|
@ -912,3 +912,13 @@ pub(crate) struct ExpectedItem<'a> {
|
|||
pub span: Span,
|
||||
pub token: &'a str,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(builtin_macros_naked_functions_testing_attribute, code = E0798)]
|
||||
pub struct NakedFunctionTestingAttribute {
|
||||
#[primary_span]
|
||||
#[label(builtin_macros_naked_attribute)]
|
||||
pub naked_span: Span,
|
||||
#[label]
|
||||
pub testing_span: Span,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue