diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-03-08 18:58:05 +0100 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-06-17 23:22:51 +0200 |
| commit | 5ab5f8a24a99cdbb178c886487d4c1971b86a32b (patch) | |
| tree | fbb303eab922913bf4e4c50dea1a2c2ca1a2aad9 /compiler/rustc_parse | |
| parent | 672452d573e3f499a8edc4308400a6d116974938 (diff) | |
| download | rust-5ab5f8a24a99cdbb178c886487d4c1971b86a32b.tar.gz rust-5ab5f8a24a99cdbb178c886487d4c1971b86a32b.zip | |
make error codes reflect reality better
Diffstat (limited to 'compiler/rustc_parse')
| -rw-r--r-- | compiler/rustc_parse/src/validate_attr.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs index 2296ec10432..b3096e46b09 100644 --- a/compiler/rustc_parse/src/validate_attr.rs +++ b/compiler/rustc_parse/src/validate_attr.rs @@ -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; } |
