about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/validate_attr.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-06-20 02:50:37 -0400
committerGitHub <noreply@github.com>2025-06-20 02:50:37 -0400
commitbab4ca914ea58b5ced4903225fe31e90bfffed5f (patch)
treeccdfb8fadf2f53d28537a438042759dced12de4f /compiler/rustc_parse/src/validate_attr.rs
parent5b74275f89b6041bf2e9dc2abcf332e206d4cfca (diff)
parent3c418ec505233927d562ff906d8eea309aee1905 (diff)
downloadrust-bab4ca914ea58b5ced4903225fe31e90bfffed5f.tar.gz
rust-bab4ca914ea58b5ced4903225fe31e90bfffed5f.zip
Rollup merge of #138291 - jdonszelmann:optimize-attr, r=oli-obk
rewrite `optimize` attribute to use new attribute parsing infrastructure

r? ```@oli-obk```

I'm afraid we'll get quite a few of these PRs in the future. If we get a lot of trivial changes I'll start merging multiple into one PR. They should be easy to review :)

Waiting on #138165 first
Diffstat (limited to 'compiler/rustc_parse/src/validate_attr.rs')
-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 a12215a44f9..646e996ff30 100644
--- a/compiler/rustc_parse/src/validate_attr.rs
+++ b/compiler/rustc_parse/src/validate_attr.rs
@@ -291,6 +291,7 @@ fn emit_malformed_attribute(
             | sym::repr
             | sym::align
             | sym::deprecated
+            | sym::optimize
     ) {
         return;
     }