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)),