make error codes reflect reality better

This commit is contained in:
Jana Dönszelmann
2025-03-08 18:58:05 +01:00
parent 672452d573
commit 5ab5f8a24a
39 changed files with 414 additions and 344 deletions

View File

@@ -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;
}