1
Fork 0

switch to an allowlist approach

- merge error codes
- use attribute name that is incompatible in error message
- add test for conditional incompatible attribute
- add `linkage` to the allowlist
This commit is contained in:
Folkert 2024-07-17 10:42:24 +02:00
parent 4d082b77af
commit c6a166bac2
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
16 changed files with 185 additions and 65 deletions

View file

@ -914,7 +914,7 @@ pub(crate) struct ExpectedItem<'a> {
}
#[derive(Diagnostic)]
#[diag(builtin_macros_naked_functions_testing_attribute, code = E0798)]
#[diag(builtin_macros_naked_functions_testing_attribute, code = E0736)]
pub struct NakedFunctionTestingAttribute {
#[primary_span]
#[label(builtin_macros_naked_attribute)]