(active, link_llvm_intrinsics, "1.0.0", Some(29602), None),
(active, linkage, "1.0.0", Some(29603), None),
- (active, quote, "1.0.0", Some(29601), None),
// rustc internal
(active, rustc_diagnostic_macros, "1.0.0", None, None),
// Adds `reason` and `expect` lint attributes.
(active, lint_reasons, "1.31.0", Some(54503), None),
- // `extern crate self as foo;` puts local crate root into extern prelude under name `foo`.
- (active, extern_crate_self, "1.31.0", Some(56409), None),
-
// Allows paths to enum variants on type aliases.
(active, type_alias_enum_variants, "1.31.0", Some(49683), None),
// Re-Rebalance coherence
(active, re_rebalance_coherence, "1.32.0", Some(55437), None),
+
+ // #[optimize(X)]
+ (active, optimize_attribute, "1.34.0", Some(54882), None),
);
declare_features! (
// Paths of the form: `extern::foo::bar`
(removed, extern_in_paths, "1.33.0", Some(55600), None,
Some("subsumed by `::foo::bar` paths")),
+ (removed, quote, "1.0.0", Some(29601), None, None),
);
declare_features! (
(accepted, uniform_paths, "1.32.0", Some(53130), None),
// Allows `cfg(target_vendor = "...")`.
(accepted, cfg_target_vendor, "1.33.0", Some(29718), None),
+ // `extern crate self as foo;` puts local crate root into extern prelude under name `foo`.
+ (accepted, extern_crate_self, "1.34.0", Some(56409), None),
);
// If you change this, please modify `src/doc/unstable-book` as well. You must
is just used for rustc unit tests \
and will never be stable",
cfg_fn!(rustc_attrs))),
+ ("rustc_layout", Normal, template!(List: "field1, field2, ..."),
+ Gated(Stability::Unstable,
+ "rustc_attrs",
+ "the `#[rustc_layout]` attribute \
+ is just used for rustc unit tests \
+ and will never be stable",
+ cfg_fn!(rustc_attrs))),
("rustc_regions", Normal, template!(Word), Gated(Stability::Unstable,
"rustc_attrs",
"the `#[rustc_regions]` attribute \
"#[alloc_error_handler] is an unstable feature",
cfg_fn!(alloc_error_handler))),
+ // RFC 2412
+ ("optimize", Whitelisted, template!(List: "size|speed"), Gated(Stability::Unstable,
+ "optimize_attribute",
+ "#[optimize] attribute is an unstable feature",
+ cfg_fn!(optimize_attribute))),
+
// Crate level attributes
("crate_name", CrateLevel, template!(NameValueStr: "name"), Ungated),
("crate_type", CrateLevel, template!(NameValueStr: "bin|lib|..."), Ungated),