From 37140188f94eb0e7b01b4426e632e3a6fb10343f Mon Sep 17 00:00:00 2001 From: Luca Versari Date: Mon, 1 Jun 2026 22:27:28 +0200 Subject: [PATCH] Stabilize optimize attribute --- crates/hir-expand/src/inert_attr_macro.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/hir-expand/src/inert_attr_macro.rs b/crates/hir-expand/src/inert_attr_macro.rs index 4185b7b01895..77a88d999ba0 100644 --- a/crates/hir-expand/src/inert_attr_macro.rs +++ b/crates/hir-expand/src/inert_attr_macro.rs @@ -280,9 +280,8 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[ ), gated!(no_core, CrateLevel, template!(Word), WarnFollowing, experimental!(no_core)), // RFC 2412 - gated!( - optimize, Normal, template!(List: "size|speed"), ErrorPreceding, optimize_attribute, - experimental!(optimize), + ungated!( + optimize, Normal, template!(List: "size|speed|none"), ErrorPreceding ), gated!(ffi_pure, Normal, template!(Word), WarnFollowing, experimental!(ffi_pure)),