make error codes reflect reality better
This commit is contained in:
@@ -283,7 +283,14 @@ fn emit_malformed_attribute(
|
||||
template: AttributeTemplate,
|
||||
) {
|
||||
// attrs with new parsers are locally validated so excluded here
|
||||
if matches!(name, sym::inline | sym::rustc_force_inline | sym::rustc_confusables) {
|
||||
if matches!(
|
||||
name,
|
||||
sym::inline
|
||||
| sym::rustc_force_inline
|
||||
| sym::rustc_confusables
|
||||
| sym::repr
|
||||
| sym::deprecated
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user