summary refs log tree commit diff
path: root/compiler/rustc_parse
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-06-22 12:09:14 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-06-22 14:51:58 +0200
commitb24df424888d9db3a22d6d52f3f516e29d5be21a (patch)
treeb6bd93fefab51b75c87bd12ecb46d4a93d7fab6a /compiler/rustc_parse
parenta30f1783fe136d92545423dd30b12eb619973cdb (diff)
downloadrust-b24df424888d9db3a22d6d52f3f516e29d5be21a.tar.gz
rust-b24df424888d9db3a22d6d52f3f516e29d5be21a.zip
Port `#[must_use]` to new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'compiler/rustc_parse')
-rw-r--r--compiler/rustc_parse/src/validate_attr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs
index ed1737bee33..8e6442353c3 100644
--- a/compiler/rustc_parse/src/validate_attr.rs
+++ b/compiler/rustc_parse/src/validate_attr.rs
@@ -293,6 +293,7 @@ fn emit_malformed_attribute(
             | sym::deprecated
             | sym::optimize
             | sym::cold
+            | sym::must_use
     ) {
         return;
     }