about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-03-05 14:35:54 +0100
committerJana Dönszelmann <jana@donsz.nl>2025-06-17 23:19:31 +0200
commit672452d573e3f499a8edc4308400a6d116974938 (patch)
tree0ea1d7e9f4949e268394b974c765221575e95732 /compiler/rustc_parse/src
parentee976bbbcaf85390a00f03dedacd035e7e274e8e (diff)
downloadrust-672452d573e3f499a8edc4308400a6d116974938.tar.gz
rust-672452d573e3f499a8edc4308400a6d116974938.zip
use consistent attr errors in all attribute parsers
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/validate_attr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs
index 1c12e8c189d..2296ec10432 100644
--- a/compiler/rustc_parse/src/validate_attr.rs
+++ b/compiler/rustc_parse/src/validate_attr.rs
@@ -283,7 +283,7 @@ 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) {
+    if matches!(name, sym::inline | sym::rustc_force_inline | sym::rustc_confusables) {
         return;
     }