Skip to main content

rustc_feature/
unstable.rs

1//! List of the unstable feature gates.
2
3use std::path::PathBuf;
4use std::time::{SystemTime, UNIX_EPOCH};
5
6use rustc_data_structures::fx::FxHashSet;
7use rustc_span::{Span, Symbol, sym};
8
9use super::{Feature, to_nonzero};
10
11#[derive(#[automatically_derived]
impl ::core::cmp::PartialEq for FeatureStatus {
    #[inline]
    fn eq(&self, other: &FeatureStatus) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq)]
12enum FeatureStatus {
13    Default,
14    Incomplete,
15    Internal,
16}
17
18macro_rules! status_to_enum {
19    (unstable) => {
20        FeatureStatus::Default
21    };
22    (incomplete) => {
23        FeatureStatus::Incomplete
24    };
25    (internal) => {
26        FeatureStatus::Internal
27    };
28}
29
30/// A set of features to be used by later passes.
31///
32/// There are two ways to check if a language feature `foo` is enabled:
33/// - Directly with the `foo` method, e.g. `if tcx.features().foo() { ... }`.
34/// - With the `enabled` method, e.g. `if tcx.features.enabled(sym::foo) { ... }`.
35///
36/// The former is preferred. `enabled` should only be used when the feature symbol is not a
37/// constant, e.g. a parameter, or when the feature is a library feature.
38#[derive(#[automatically_derived]
impl ::core::clone::Clone for Features {
    #[inline]
    fn clone(&self) -> Features {
        Features {
            enabled_lang_features: ::core::clone::Clone::clone(&self.enabled_lang_features),
            enabled_lib_features: ::core::clone::Clone::clone(&self.enabled_lib_features),
            enabled_features: ::core::clone::Clone::clone(&self.enabled_features),
        }
    }
}Clone, #[automatically_derived]
impl ::core::default::Default for Features {
    #[inline]
    fn default() -> Features {
        Features {
            enabled_lang_features: ::core::default::Default::default(),
            enabled_lib_features: ::core::default::Default::default(),
            enabled_features: ::core::default::Default::default(),
        }
    }
}Default, #[automatically_derived]
impl ::core::fmt::Debug for Features {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(f, "Features",
            "enabled_lang_features", &self.enabled_lang_features,
            "enabled_lib_features", &self.enabled_lib_features,
            "enabled_features", &&self.enabled_features)
    }
}Debug)]
39pub struct Features {
40    /// `#![feature]` attrs for language features, for error reporting.
41    enabled_lang_features: Vec<EnabledLangFeature>,
42    /// `#![feature]` attrs for non-language (library) features.
43    enabled_lib_features: Vec<EnabledLibFeature>,
44    /// `enabled_lang_features` + `enabled_lib_features`.
45    enabled_features: FxHashSet<Symbol>,
46}
47
48/// Information about an enabled language feature.
49#[derive(#[automatically_derived]
impl ::core::fmt::Debug for EnabledLangFeature {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(f,
            "EnabledLangFeature", "gate_name", &self.gate_name, "attr_sp",
            &self.attr_sp, "stable_since", &&self.stable_since)
    }
}Debug, #[automatically_derived]
impl ::core::marker::Copy for EnabledLangFeature { }Copy, #[automatically_derived]
impl ::core::clone::Clone for EnabledLangFeature {
    #[inline]
    fn clone(&self) -> EnabledLangFeature {
        let _: ::core::clone::AssertParamIsClone<Symbol>;
        let _: ::core::clone::AssertParamIsClone<Span>;
        let _: ::core::clone::AssertParamIsClone<Option<Symbol>>;
        *self
    }
}Clone)]
50pub struct EnabledLangFeature {
51    /// Name of the feature gate guarding the language feature.
52    pub gate_name: Symbol,
53    /// Span of the `#[feature(...)]` attribute.
54    pub attr_sp: Span,
55    /// If the lang feature is stable, the version number when it was stabilized.
56    pub stable_since: Option<Symbol>,
57}
58
59/// Information about an enabled library feature.
60#[derive(#[automatically_derived]
impl ::core::fmt::Debug for EnabledLibFeature {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(f,
            "EnabledLibFeature", "gate_name", &self.gate_name, "attr_sp",
            &&self.attr_sp)
    }
}Debug, #[automatically_derived]
impl ::core::marker::Copy for EnabledLibFeature { }Copy, #[automatically_derived]
impl ::core::clone::Clone for EnabledLibFeature {
    #[inline]
    fn clone(&self) -> EnabledLibFeature {
        let _: ::core::clone::AssertParamIsClone<Symbol>;
        let _: ::core::clone::AssertParamIsClone<Span>;
        *self
    }
}Clone)]
61pub struct EnabledLibFeature {
62    pub gate_name: Symbol,
63    pub attr_sp: Span,
64}
65
66impl Features {
67    /// `since` should be set for stable features that are nevertheless enabled with a `#[feature]`
68    /// attribute, indicating since when they are stable.
69    pub fn set_enabled_lang_feature(&mut self, lang_feat: EnabledLangFeature) {
70        self.enabled_lang_features.push(lang_feat);
71        self.enabled_features.insert(lang_feat.gate_name);
72    }
73
74    pub fn set_enabled_lib_feature(&mut self, lib_feat: EnabledLibFeature) {
75        self.enabled_lib_features.push(lib_feat);
76        self.enabled_features.insert(lib_feat.gate_name);
77    }
78
79    /// Returns a list of [`EnabledLangFeature`] with info about:
80    ///
81    /// - Feature gate name.
82    /// - The span of the `#[feature]` attribute.
83    /// - For stable language features, version info for when it was stabilized.
84    pub fn enabled_lang_features(&self) -> &Vec<EnabledLangFeature> {
85        &self.enabled_lang_features
86    }
87
88    pub fn enabled_lib_features(&self) -> &Vec<EnabledLibFeature> {
89        &self.enabled_lib_features
90    }
91
92    pub fn enabled_features(&self) -> &FxHashSet<Symbol> {
93        &self.enabled_features
94    }
95
96    /// Returns a iterator of enabled features in stable order.
97    pub fn enabled_features_iter_stable_order(
98        &self,
99    ) -> impl Iterator<Item = (Symbol, Span)> + Clone {
100        self.enabled_lang_features
101            .iter()
102            .map(|feat| (feat.gate_name, feat.attr_sp))
103            .chain(self.enabled_lib_features.iter().map(|feat| (feat.gate_name, feat.attr_sp)))
104    }
105
106    /// Is the given feature enabled (via `#[feature(...)]`)?
107    pub fn enabled(&self, feature: Symbol) -> bool {
108        self.enabled_features.contains(&feature)
109    }
110}
111
112macro_rules! declare_features {
113    ($(
114        $(#[doc = $doc:tt])* ($status:ident, $feature:ident, $ver:expr, $issue:expr),
115    )+) => {
116        /// Unstable language features that are being implemented or being
117        /// considered for acceptance (stabilization) or removal.
118        pub static UNSTABLE_LANG_FEATURES: &[Feature] = &[
119            $(Feature {
120                name: sym::$feature,
121                since: $ver,
122                issue: to_nonzero($issue),
123            }),+
124        ];
125
126        impl Features {
127            $(
128                pub fn $feature(&self) -> bool {
129                    self.enabled_features.contains(&sym::$feature)
130                }
131            )*
132
133            /// Some features are known to be incomplete and using them is likely to have
134            /// unanticipated results, such as compiler crashes. We warn the user about these
135            /// to alert them.
136            pub fn incomplete(&self, feature: Symbol) -> bool {
137                match feature {
138                    $(
139                        sym::$feature => status_to_enum!($status) == FeatureStatus::Incomplete,
140                    )*
141                    _ if self.enabled_features.contains(&feature) => {
142                        // Accepted/removed features and library features aren't in this file but
143                        // are never incomplete.
144                        false
145                    }
146                    _ => panic!("`{}` was not listed in `declare_features`", feature),
147                }
148            }
149
150            /// Some features are internal to the compiler and standard library and should not
151            /// be used in normal projects. We warn the user about these to alert them.
152            pub fn internal(&self, feature: Symbol) -> bool {
153                match feature {
154                    $(
155                        sym::$feature => status_to_enum!($status) == FeatureStatus::Internal,
156                    )*
157                    _ if self.enabled_features.contains(&feature) => {
158                        // This could be accepted/removed, or a libs feature.
159                        // Accepted/removed features aren't in this file but are never internal
160                        // (a removed feature might have been internal, but that's now irrelevant).
161                        // Libs features are internal if they end in `_internal` or `_internals`.
162                        // As a special exception we also consider `core_intrinsics` internal;
163                        // renaming that age-old feature is just not worth the hassle.
164                        // We just always test the name; it's not a big deal if we accidentally hit
165                        // an accepted/removed lang feature that way.
166                        let name = feature.as_str();
167                        name == "core_intrinsics" || name.ends_with("_internal") || name.ends_with("_internals")
168                    }
169                    _ => panic!("`{}` was not listed in `declare_features`", feature),
170                }
171            }
172        }
173    };
174}
175
176// See https://rustc-dev-guide.rust-lang.org/feature-gates.html#feature-gates for more
177// documentation about handling feature gates.
178//
179// If you change this, please modify `src/doc/unstable-book` as well.
180//
181// Don't ever remove anything from this list; move them to `accepted.rs` if
182// accepted or `removed.rs` if removed.
183//
184// The version numbers here correspond to the version in which the current status
185// was set.
186//
187// Note that the features are grouped into internal/user-facing and then
188// sorted alphabetically inside those groups. This is enforced with tidy.
189//
190// N.B., `tools/tidy/src/features.rs` parses this information directly out of the
191// source, so take care when modifying it.
192
193#[rustfmt::skip]
194/// Unstable language features that are being implemented or being
/// considered for acceptance (stabilization) or removal.
pub static UNSTABLE_LANG_FEATURES: &[Feature] =
    &[Feature {
                    name: sym::abi_unadjusted,
                    since: "1.16.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::allocator_internals,
                    since: "1.20.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::allow_internal_unsafe,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::allow_internal_unstable,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::anonymous_lifetime_in_impl_trait,
                    since: "1.63.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::cfg_emscripten_wasm_eh,
                    since: "1.86.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::cfg_target_has_reliable_f16_f128,
                    since: "1.88.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::compiler_builtins,
                    since: "1.13.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::custom_mir,
                    since: "1.65.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::eii_internals,
                    since: "1.94.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::generic_assert,
                    since: "1.63.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::intrinsics,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::lang_items,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::link_cfg,
                    since: "1.14.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::more_maybe_bounds,
                    since: "1.82.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::negative_bounds,
                    since: "1.71.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::pattern_complexity_limit,
                    since: "1.78.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::prelude_import,
                    since: "1.2.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::profiler_runtime,
                    since: "1.18.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::rustc_attrs,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::staged_api,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::test_unstable_lint,
                    since: "1.60.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::with_negative_coherence,
                    since: "1.60.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::abi_vectorcall,
                    since: "1.7.0",
                    issue: to_nonzero(Some(124485)),
                },
                Feature {
                    name: sym::auto_traits,
                    since: "1.50.0",
                    issue: to_nonzero(Some(13231)),
                },
                Feature {
                    name: sym::box_patterns,
                    since: "1.0.0",
                    issue: to_nonzero(Some(29641)),
                },
                Feature {
                    name: sym::builtin_syntax,
                    since: "1.71.0",
                    issue: to_nonzero(Some(110680)),
                },
                Feature {
                    name: sym::doc_notable_trait,
                    since: "1.52.0",
                    issue: to_nonzero(Some(45040)),
                },
                Feature {
                    name: sym::dropck_eyepatch,
                    since: "1.10.0",
                    issue: to_nonzero(Some(34761)),
                },
                Feature {
                    name: sym::fundamental,
                    since: "1.0.0",
                    issue: to_nonzero(Some(29635)),
                },
                Feature {
                    name: sym::link_llvm_intrinsics,
                    since: "1.0.0",
                    issue: to_nonzero(Some(29602)),
                },
                Feature {
                    name: sym::linkage,
                    since: "1.0.0",
                    issue: to_nonzero(Some(29603)),
                },
                Feature {
                    name: sym::needs_panic_runtime,
                    since: "1.10.0",
                    issue: to_nonzero(Some(32837)),
                },
                Feature {
                    name: sym::panic_runtime,
                    since: "1.10.0",
                    issue: to_nonzero(Some(32837)),
                },
                Feature {
                    name: sym::pattern_types,
                    since: "1.79.0",
                    issue: to_nonzero(Some(123646)),
                },
                Feature {
                    name: sym::rustc_allow_const_fn_unstable,
                    since: "1.49.0",
                    issue: to_nonzero(Some(69399)),
                },
                Feature {
                    name: sym::rustc_private,
                    since: "1.0.0",
                    issue: to_nonzero(Some(27812)),
                },
                Feature {
                    name: sym::rustdoc_internals,
                    since: "1.58.0",
                    issue: to_nonzero(Some(90418)),
                },
                Feature {
                    name: sym::rustdoc_missing_doc_code_examples,
                    since: "1.31.0",
                    issue: to_nonzero(Some(101730)),
                },
                Feature {
                    name: sym::sized_hierarchy,
                    since: "1.89.0",
                    issue: to_nonzero(Some(144404)),
                },
                Feature {
                    name: sym::structural_match,
                    since: "1.8.0",
                    issue: to_nonzero(Some(31434)),
                },
                Feature {
                    name: sym::unboxed_closures,
                    since: "1.0.0",
                    issue: to_nonzero(Some(29625)),
                },
                Feature {
                    name: sym::unqualified_local_imports,
                    since: "1.83.0",
                    issue: to_nonzero(Some(138299)),
                },
                Feature {
                    name: sym::aarch64_unstable_target_feature,
                    since: "1.82.0",
                    issue: to_nonzero(Some(150244)),
                },
                Feature {
                    name: sym::aarch64_ver_target_feature,
                    since: "1.27.0",
                    issue: to_nonzero(Some(150245)),
                },
                Feature {
                    name: sym::abi_avr_interrupt,
                    since: "1.45.0",
                    issue: to_nonzero(Some(69664)),
                },
                Feature {
                    name: sym::abi_cmse_nonsecure_call,
                    since: "1.90.0",
                    issue: to_nonzero(Some(81391)),
                },
                Feature {
                    name: sym::abi_custom,
                    since: "1.89.0",
                    issue: to_nonzero(Some(140829)),
                },
                Feature {
                    name: sym::abi_gpu_kernel,
                    since: "1.86.0",
                    issue: to_nonzero(Some(135467)),
                },
                Feature {
                    name: sym::abi_msp430_interrupt,
                    since: "1.16.0",
                    issue: to_nonzero(Some(38487)),
                },
                Feature {
                    name: sym::abi_ptx,
                    since: "1.15.0",
                    issue: to_nonzero(Some(38788)),
                },
                Feature {
                    name: sym::abi_riscv_interrupt,
                    since: "1.73.0",
                    issue: to_nonzero(Some(111889)),
                },
                Feature {
                    name: sym::abi_x86_interrupt,
                    since: "1.17.0",
                    issue: to_nonzero(Some(40180)),
                },
                Feature {
                    name: sym::adt_const_params,
                    since: "1.56.0",
                    issue: to_nonzero(Some(95174)),
                },
                Feature {
                    name: sym::alloc_error_handler,
                    since: "1.29.0",
                    issue: to_nonzero(Some(51540)),
                },
                Feature {
                    name: sym::apx_target_feature,
                    since: "1.88.0",
                    issue: to_nonzero(Some(139284)),
                },
                Feature {
                    name: sym::arbitrary_self_types,
                    since: "1.23.0",
                    issue: to_nonzero(Some(44874)),
                },
                Feature {
                    name: sym::arbitrary_self_types_pointers,
                    since: "1.83.0",
                    issue: to_nonzero(Some(44874)),
                },
                Feature {
                    name: sym::arm_target_feature,
                    since: "1.27.0",
                    issue: to_nonzero(Some(150246)),
                },
                Feature {
                    name: sym::asm_experimental_arch,
                    since: "1.58.0",
                    issue: to_nonzero(Some(93335)),
                },
                Feature {
                    name: sym::asm_experimental_reg,
                    since: "1.85.0",
                    issue: to_nonzero(Some(133416)),
                },
                Feature {
                    name: sym::asm_goto_with_outputs,
                    since: "1.85.0",
                    issue: to_nonzero(Some(119364)),
                },
                Feature {
                    name: sym::asm_unwind,
                    since: "1.58.0",
                    issue: to_nonzero(Some(93334)),
                },
                Feature {
                    name: sym::associated_type_defaults,
                    since: "1.2.0",
                    issue: to_nonzero(Some(29661)),
                },
                Feature {
                    name: sym::async_drop,
                    since: "1.88.0",
                    issue: to_nonzero(Some(126482)),
                },
                Feature {
                    name: sym::async_fn_in_dyn_trait,
                    since: "1.85.0",
                    issue: to_nonzero(Some(133119)),
                },
                Feature {
                    name: sym::async_fn_track_caller,
                    since: "1.73.0",
                    issue: to_nonzero(Some(110011)),
                },
                Feature {
                    name: sym::async_for_loop,
                    since: "1.77.0",
                    issue: to_nonzero(Some(118898)),
                },
                Feature {
                    name: sym::async_trait_bounds,
                    since: "1.85.0",
                    issue: to_nonzero(Some(62290)),
                },
                Feature {
                    name: sym::avx10_target_feature,
                    since: "1.88.0",
                    issue: to_nonzero(Some(138843)),
                },
                Feature {
                    name: sym::bpf_target_feature,
                    since: "1.54.0",
                    issue: to_nonzero(Some(150247)),
                },
                Feature {
                    name: sym::c_variadic,
                    since: "1.34.0",
                    issue: to_nonzero(Some(44930)),
                },
                Feature {
                    name: sym::c_variadic_naked_functions,
                    since: "1.93.0",
                    issue: to_nonzero(Some(148767)),
                },
                Feature {
                    name: sym::cfg_contract_checks,
                    since: "1.86.0",
                    issue: to_nonzero(Some(128044)),
                },
                Feature {
                    name: sym::cfg_overflow_checks,
                    since: "1.71.0",
                    issue: to_nonzero(Some(111466)),
                },
                Feature {
                    name: sym::cfg_relocation_model,
                    since: "1.73.0",
                    issue: to_nonzero(Some(114929)),
                },
                Feature {
                    name: sym::cfg_sanitize,
                    since: "1.41.0",
                    issue: to_nonzero(Some(39699)),
                },
                Feature {
                    name: sym::cfg_sanitizer_cfi,
                    since: "1.77.0",
                    issue: to_nonzero(Some(89653)),
                },
                Feature {
                    name: sym::cfg_target_compact,
                    since: "1.63.0",
                    issue: to_nonzero(Some(96901)),
                },
                Feature {
                    name: sym::cfg_target_has_atomic,
                    since: "1.60.0",
                    issue: to_nonzero(Some(94039)),
                },
                Feature {
                    name: sym::cfg_target_has_atomic_equal_alignment,
                    since: "1.60.0",
                    issue: to_nonzero(Some(93822)),
                },
                Feature {
                    name: sym::cfg_target_thread_local,
                    since: "1.7.0",
                    issue: to_nonzero(Some(29594)),
                },
                Feature {
                    name: sym::cfg_ub_checks,
                    since: "1.79.0",
                    issue: to_nonzero(Some(123499)),
                },
                Feature {
                    name: sym::cfg_version,
                    since: "1.45.0",
                    issue: to_nonzero(Some(64796)),
                },
                Feature {
                    name: sym::cfi_encoding,
                    since: "1.71.0",
                    issue: to_nonzero(Some(89653)),
                },
                Feature {
                    name: sym::closure_lifetime_binder,
                    since: "1.64.0",
                    issue: to_nonzero(Some(97362)),
                },
                Feature {
                    name: sym::closure_track_caller,
                    since: "1.57.0",
                    issue: to_nonzero(Some(87417)),
                },
                Feature {
                    name: sym::cmse_nonsecure_entry,
                    since: "1.48.0",
                    issue: to_nonzero(Some(75835)),
                },
                Feature {
                    name: sym::const_async_blocks,
                    since: "1.53.0",
                    issue: to_nonzero(Some(85368)),
                },
                Feature {
                    name: sym::const_block_items,
                    since: "CURRENT_RUSTC_VERSION",
                    issue: to_nonzero(Some(149226)),
                },
                Feature {
                    name: sym::const_closures,
                    since: "1.68.0",
                    issue: to_nonzero(Some(106003)),
                },
                Feature {
                    name: sym::const_destruct,
                    since: "1.85.0",
                    issue: to_nonzero(Some(133214)),
                },
                Feature {
                    name: sym::const_for,
                    since: "1.56.0",
                    issue: to_nonzero(Some(87575)),
                },
                Feature {
                    name: sym::const_precise_live_drops,
                    since: "1.46.0",
                    issue: to_nonzero(Some(73255)),
                },
                Feature {
                    name: sym::const_trait_impl,
                    since: "1.42.0",
                    issue: to_nonzero(Some(143874)),
                },
                Feature {
                    name: sym::const_try,
                    since: "1.56.0",
                    issue: to_nonzero(Some(74935)),
                },
                Feature {
                    name: sym::contracts,
                    since: "1.86.0",
                    issue: to_nonzero(Some(128044)),
                },
                Feature {
                    name: sym::contracts_internals,
                    since: "1.86.0",
                    issue: to_nonzero(Some(128044)),
                },
                Feature {
                    name: sym::coroutine_clone,
                    since: "1.65.0",
                    issue: to_nonzero(Some(95360)),
                },
                Feature {
                    name: sym::coroutines,
                    since: "1.21.0",
                    issue: to_nonzero(Some(43122)),
                },
                Feature {
                    name: sym::coverage_attribute,
                    since: "1.74.0",
                    issue: to_nonzero(Some(84605)),
                },
                Feature {
                    name: sym::csky_target_feature,
                    since: "1.73.0",
                    issue: to_nonzero(Some(150248)),
                },
                Feature {
                    name: sym::custom_inner_attributes,
                    since: "1.30.0",
                    issue: to_nonzero(Some(54726)),
                },
                Feature {
                    name: sym::custom_test_frameworks,
                    since: "1.30.0",
                    issue: to_nonzero(Some(50297)),
                },
                Feature {
                    name: sym::decl_macro,
                    since: "1.17.0",
                    issue: to_nonzero(Some(39412)),
                },
                Feature {
                    name: sym::default_field_values,
                    since: "1.85.0",
                    issue: to_nonzero(Some(132162)),
                },
                Feature {
                    name: sym::deprecated_safe,
                    since: "1.61.0",
                    issue: to_nonzero(Some(94978)),
                },
                Feature {
                    name: sym::deprecated_suggestion,
                    since: "1.61.0",
                    issue: to_nonzero(Some(94785)),
                },
                Feature {
                    name: sym::deref_patterns,
                    since: "1.79.0",
                    issue: to_nonzero(Some(87121)),
                },
                Feature {
                    name: sym::derive_from,
                    since: "1.91.0",
                    issue: to_nonzero(Some(144889)),
                },
                Feature {
                    name: sym::diagnostic_on_const,
                    since: "1.93.0",
                    issue: to_nonzero(Some(143874)),
                },
                Feature {
                    name: sym::doc_cfg,
                    since: "1.21.0",
                    issue: to_nonzero(Some(43781)),
                },
                Feature {
                    name: sym::doc_masked,
                    since: "1.21.0",
                    issue: to_nonzero(Some(44027)),
                },
                Feature {
                    name: sym::effective_target_features,
                    since: "1.91.0",
                    issue: to_nonzero(Some(143352)),
                },
                Feature {
                    name: sym::ergonomic_clones,
                    since: "1.87.0",
                    issue: to_nonzero(Some(132290)),
                },
                Feature {
                    name: sym::ermsb_target_feature,
                    since: "1.49.0",
                    issue: to_nonzero(Some(150249)),
                },
                Feature {
                    name: sym::exhaustive_patterns,
                    since: "1.13.0",
                    issue: to_nonzero(Some(51085)),
                },
                Feature {
                    name: sym::explicit_extern_abis,
                    since: "1.88.0",
                    issue: to_nonzero(Some(134986)),
                },
                Feature {
                    name: sym::explicit_tail_calls,
                    since: "1.72.0",
                    issue: to_nonzero(Some(112788)),
                },
                Feature {
                    name: sym::export_stable,
                    since: "1.88.0",
                    issue: to_nonzero(Some(139939)),
                },
                Feature {
                    name: sym::extern_item_impls,
                    since: "1.94.0",
                    issue: to_nonzero(Some(125418)),
                },
                Feature {
                    name: sym::extern_types,
                    since: "1.23.0",
                    issue: to_nonzero(Some(43467)),
                },
                Feature {
                    name: sym::f128,
                    since: "1.78.0",
                    issue: to_nonzero(Some(116909)),
                },
                Feature {
                    name: sym::f16,
                    since: "1.78.0",
                    issue: to_nonzero(Some(116909)),
                },
                Feature {
                    name: sym::ffi_const,
                    since: "1.45.0",
                    issue: to_nonzero(Some(58328)),
                },
                Feature {
                    name: sym::ffi_pure,
                    since: "1.45.0",
                    issue: to_nonzero(Some(58329)),
                },
                Feature {
                    name: sym::fmt_debug,
                    since: "1.82.0",
                    issue: to_nonzero(Some(129709)),
                },
                Feature {
                    name: sym::fn_align,
                    since: "1.53.0",
                    issue: to_nonzero(Some(82232)),
                },
                Feature {
                    name: sym::fn_delegation,
                    since: "1.76.0",
                    issue: to_nonzero(Some(118212)),
                },
                Feature {
                    name: sym::freeze_impls,
                    since: "1.78.0",
                    issue: to_nonzero(Some(121675)),
                },
                Feature {
                    name: sym::frontmatter,
                    since: "1.88.0",
                    issue: to_nonzero(Some(136889)),
                },
                Feature {
                    name: sym::gen_blocks,
                    since: "1.75.0",
                    issue: to_nonzero(Some(117078)),
                },
                Feature {
                    name: sym::generic_const_exprs,
                    since: "1.56.0",
                    issue: to_nonzero(Some(76560)),
                },
                Feature {
                    name: sym::generic_const_items,
                    since: "1.73.0",
                    issue: to_nonzero(Some(113521)),
                },
                Feature {
                    name: sym::generic_const_parameter_types,
                    since: "1.87.0",
                    issue: to_nonzero(Some(137626)),
                },
                Feature {
                    name: sym::generic_pattern_types,
                    since: "1.86.0",
                    issue: to_nonzero(Some(136574)),
                },
                Feature {
                    name: sym::global_registration,
                    since: "1.80.0",
                    issue: to_nonzero(Some(125119)),
                },
                Feature {
                    name: sym::guard_patterns,
                    since: "1.85.0",
                    issue: to_nonzero(Some(129967)),
                },
                Feature {
                    name: sym::half_open_range_patterns_in_slices,
                    since: "1.66.0",
                    issue: to_nonzero(Some(67264)),
                },
                Feature {
                    name: sym::hexagon_target_feature,
                    since: "1.27.0",
                    issue: to_nonzero(Some(150250)),
                },
                Feature {
                    name: sym::if_let_guard,
                    since: "1.47.0",
                    issue: to_nonzero(Some(51114)),
                },
                Feature {
                    name: sym::impl_trait_in_assoc_type,
                    since: "1.70.0",
                    issue: to_nonzero(Some(63063)),
                },
                Feature {
                    name: sym::impl_trait_in_bindings,
                    since: "1.64.0",
                    issue: to_nonzero(Some(63065)),
                },
                Feature {
                    name: sym::impl_trait_in_fn_trait_return,
                    since: "1.64.0",
                    issue: to_nonzero(Some(99697)),
                },
                Feature {
                    name: sym::import_trait_associated_functions,
                    since: "1.86.0",
                    issue: to_nonzero(Some(134691)),
                },
                Feature {
                    name: sym::inherent_associated_types,
                    since: "1.52.0",
                    issue: to_nonzero(Some(8995)),
                },
                Feature {
                    name: sym::intra_doc_pointers,
                    since: "1.51.0",
                    issue: to_nonzero(Some(80896)),
                },
                Feature {
                    name: sym::lahfsahf_target_feature,
                    since: "1.78.0",
                    issue: to_nonzero(Some(150251)),
                },
                Feature {
                    name: sym::large_assignments,
                    since: "1.52.0",
                    issue: to_nonzero(Some(83518)),
                },
                Feature {
                    name: sym::lazy_type_alias,
                    since: "1.72.0",
                    issue: to_nonzero(Some(112792)),
                },
                Feature {
                    name: sym::link_arg_attribute,
                    since: "1.76.0",
                    issue: to_nonzero(Some(99427)),
                },
                Feature {
                    name: sym::loongarch_target_feature,
                    since: "1.73.0",
                    issue: to_nonzero(Some(150252)),
                },
                Feature {
                    name: sym::loop_match,
                    since: "1.90.0",
                    issue: to_nonzero(Some(132306)),
                },
                Feature {
                    name: sym::m68k_target_feature,
                    since: "1.85.0",
                    issue: to_nonzero(Some(134328)),
                },
                Feature {
                    name: sym::macro_attr,
                    since: "1.91.0",
                    issue: to_nonzero(Some(143547)),
                },
                Feature {
                    name: sym::macro_derive,
                    since: "1.91.0",
                    issue: to_nonzero(Some(143549)),
                },
                Feature {
                    name: sym::macro_metavar_expr,
                    since: "1.61.0",
                    issue: to_nonzero(Some(83527)),
                },
                Feature {
                    name: sym::macro_metavar_expr_concat,
                    since: "1.81.0",
                    issue: to_nonzero(Some(124225)),
                },
                Feature {
                    name: sym::marker_trait_attr,
                    since: "1.30.0",
                    issue: to_nonzero(Some(29864)),
                },
                Feature {
                    name: sym::min_generic_const_args,
                    since: "1.84.0",
                    issue: to_nonzero(Some(132980)),
                },
                Feature {
                    name: sym::min_specialization,
                    since: "1.7.0",
                    issue: to_nonzero(Some(31844)),
                },
                Feature {
                    name: sym::mips_target_feature,
                    since: "1.27.0",
                    issue: to_nonzero(Some(150253)),
                },
                Feature {
                    name: sym::more_qualified_paths,
                    since: "1.54.0",
                    issue: to_nonzero(Some(86935)),
                },
                Feature {
                    name: sym::movrs_target_feature,
                    since: "1.88.0",
                    issue: to_nonzero(Some(137976)),
                },
                Feature {
                    name: sym::multiple_supertrait_upcastable,
                    since: "1.69.0",
                    issue: to_nonzero(Some(150833)),
                },
                Feature {
                    name: sym::must_not_suspend,
                    since: "1.57.0",
                    issue: to_nonzero(Some(83310)),
                },
                Feature {
                    name: sym::mut_ref,
                    since: "1.79.0",
                    issue: to_nonzero(Some(123076)),
                },
                Feature {
                    name: sym::naked_functions_rustic_abi,
                    since: "1.88.0",
                    issue: to_nonzero(Some(138997)),
                },
                Feature {
                    name: sym::naked_functions_target_feature,
                    since: "1.86.0",
                    issue: to_nonzero(Some(138568)),
                },
                Feature {
                    name: sym::native_link_modifiers_as_needed,
                    since: "1.53.0",
                    issue: to_nonzero(Some(81490)),
                },
                Feature {
                    name: sym::negative_impls,
                    since: "1.44.0",
                    issue: to_nonzero(Some(68318)),
                },
                Feature {
                    name: sym::never_patterns,
                    since: "1.76.0",
                    issue: to_nonzero(Some(118155)),
                },
                Feature {
                    name: sym::never_type,
                    since: "1.13.0",
                    issue: to_nonzero(Some(35121)),
                },
                Feature {
                    name: sym::new_range,
                    since: "1.86.0",
                    issue: to_nonzero(Some(123741)),
                },
                Feature {
                    name: sym::no_core,
                    since: "1.3.0",
                    issue: to_nonzero(Some(29639)),
                },
                Feature {
                    name: sym::non_exhaustive_omitted_patterns_lint,
                    since: "1.57.0",
                    issue: to_nonzero(Some(89554)),
                },
                Feature {
                    name: sym::non_lifetime_binders,
                    since: "1.69.0",
                    issue: to_nonzero(Some(108185)),
                },
                Feature {
                    name: sym::nvptx_target_feature,
                    since: "1.91.0",
                    issue: to_nonzero(Some(150254)),
                },
                Feature {
                    name: sym::offset_of_enum,
                    since: "1.75.0",
                    issue: to_nonzero(Some(120141)),
                },
                Feature {
                    name: sym::offset_of_slice,
                    since: "1.81.0",
                    issue: to_nonzero(Some(126151)),
                },
                Feature {
                    name: sym::optimize_attribute,
                    since: "1.34.0",
                    issue: to_nonzero(Some(54882)),
                },
                Feature {
                    name: sym::patchable_function_entry,
                    since: "1.81.0",
                    issue: to_nonzero(Some(123115)),
                },
                Feature {
                    name: sym::pin_ergonomics,
                    since: "1.83.0",
                    issue: to_nonzero(Some(130494)),
                },
                Feature {
                    name: sym::postfix_match,
                    since: "1.79.0",
                    issue: to_nonzero(Some(121618)),
                },
                Feature {
                    name: sym::powerpc_target_feature,
                    since: "1.27.0",
                    issue: to_nonzero(Some(150255)),
                },
                Feature {
                    name: sym::prfchw_target_feature,
                    since: "1.78.0",
                    issue: to_nonzero(Some(150256)),
                },
                Feature {
                    name: sym::proc_macro_hygiene,
                    since: "1.30.0",
                    issue: to_nonzero(Some(54727)),
                },
                Feature {
                    name: sym::raw_dylib_elf,
                    since: "1.87.0",
                    issue: to_nonzero(Some(135694)),
                },
                Feature {
                    name: sym::reborrow,
                    since: "1.91.0",
                    issue: to_nonzero(Some(145612)),
                },
                Feature {
                    name: sym::ref_pat_eat_one_layer_2024,
                    since: "1.79.0",
                    issue: to_nonzero(Some(123076)),
                },
                Feature {
                    name: sym::ref_pat_eat_one_layer_2024_structural,
                    since: "1.81.0",
                    issue: to_nonzero(Some(123076)),
                },
                Feature {
                    name: sym::register_tool,
                    since: "1.41.0",
                    issue: to_nonzero(Some(66079)),
                },
                Feature {
                    name: sym::repr_simd,
                    since: "1.4.0",
                    issue: to_nonzero(Some(27731)),
                },
                Feature {
                    name: sym::return_type_notation,
                    since: "1.70.0",
                    issue: to_nonzero(Some(109417)),
                },
                Feature {
                    name: sym::riscv_target_feature,
                    since: "1.45.0",
                    issue: to_nonzero(Some(150257)),
                },
                Feature {
                    name: sym::rtm_target_feature,
                    since: "1.35.0",
                    issue: to_nonzero(Some(150258)),
                },
                Feature {
                    name: sym::rust_cold_cc,
                    since: "1.63.0",
                    issue: to_nonzero(Some(97544)),
                },
                Feature {
                    name: sym::rust_preserve_none_cc,
                    since: "CURRENT_RUSTC_VERSION",
                    issue: to_nonzero(Some(151401)),
                },
                Feature {
                    name: sym::s390x_target_feature,
                    since: "1.82.0",
                    issue: to_nonzero(Some(150259)),
                },
                Feature {
                    name: sym::sanitize,
                    since: "1.91.0",
                    issue: to_nonzero(Some(39699)),
                },
                Feature {
                    name: sym::simd_ffi,
                    since: "1.0.0",
                    issue: to_nonzero(Some(27731)),
                },
                Feature {
                    name: sym::sparc_target_feature,
                    since: "1.84.0",
                    issue: to_nonzero(Some(132783)),
                },
                Feature {
                    name: sym::specialization,
                    since: "1.7.0",
                    issue: to_nonzero(Some(31844)),
                },
                Feature {
                    name: sym::static_align,
                    since: "1.91.0",
                    issue: to_nonzero(Some(146177)),
                },
                Feature {
                    name: sym::stmt_expr_attributes,
                    since: "1.6.0",
                    issue: to_nonzero(Some(15701)),
                },
                Feature {
                    name: sym::strict_provenance_lints,
                    since: "1.61.0",
                    issue: to_nonzero(Some(130351)),
                },
                Feature {
                    name: sym::super_let,
                    since: "1.88.0",
                    issue: to_nonzero(Some(139076)),
                },
                Feature {
                    name: sym::supertrait_item_shadowing,
                    since: "1.86.0",
                    issue: to_nonzero(Some(89151)),
                },
                Feature {
                    name: sym::target_feature_inline_always,
                    since: "1.91.0",
                    issue: to_nonzero(Some(145574)),
                },
                Feature {
                    name: sym::thread_local,
                    since: "1.0.0",
                    issue: to_nonzero(Some(29594)),
                },
                Feature {
                    name: sym::trait_alias,
                    since: "1.24.0",
                    issue: to_nonzero(Some(41517)),
                },
                Feature {
                    name: sym::transmute_generic_consts,
                    since: "1.70.0",
                    issue: to_nonzero(Some(109929)),
                },
                Feature {
                    name: sym::transparent_unions,
                    since: "1.37.0",
                    issue: to_nonzero(Some(60405)),
                },
                Feature {
                    name: sym::trivial_bounds,
                    since: "1.28.0",
                    issue: to_nonzero(Some(48214)),
                },
                Feature {
                    name: sym::try_blocks,
                    since: "1.29.0",
                    issue: to_nonzero(Some(31436)),
                },
                Feature {
                    name: sym::try_blocks_heterogeneous,
                    since: "1.94.0",
                    issue: to_nonzero(Some(149488)),
                },
                Feature {
                    name: sym::type_alias_impl_trait,
                    since: "1.38.0",
                    issue: to_nonzero(Some(63063)),
                },
                Feature {
                    name: sym::type_changing_struct_update,
                    since: "1.58.0",
                    issue: to_nonzero(Some(86555)),
                },
                Feature {
                    name: sym::unsafe_binders,
                    since: "1.85.0",
                    issue: to_nonzero(Some(130516)),
                },
                Feature {
                    name: sym::unsafe_fields,
                    since: "1.85.0",
                    issue: to_nonzero(Some(132922)),
                },
                Feature {
                    name: sym::unsized_const_params,
                    since: "1.82.0",
                    issue: to_nonzero(Some(95174)),
                },
                Feature {
                    name: sym::unsized_fn_params,
                    since: "1.49.0",
                    issue: to_nonzero(Some(48055)),
                },
                Feature {
                    name: sym::used_with_arg,
                    since: "1.60.0",
                    issue: to_nonzero(Some(93798)),
                },
                Feature {
                    name: sym::wasm_target_feature,
                    since: "1.30.0",
                    issue: to_nonzero(Some(150260)),
                },
                Feature {
                    name: sym::where_clause_attrs,
                    since: "1.87.0",
                    issue: to_nonzero(Some(115590)),
                },
                Feature {
                    name: sym::x86_amx_intrinsics,
                    since: "1.81.0",
                    issue: to_nonzero(Some(126622)),
                },
                Feature {
                    name: sym::x87_target_feature,
                    since: "1.85.0",
                    issue: to_nonzero(Some(150261)),
                },
                Feature {
                    name: sym::xop_target_feature,
                    since: "1.81.0",
                    issue: to_nonzero(Some(127208)),
                },
                Feature {
                    name: sym::yeet_expr,
                    since: "1.62.0",
                    issue: to_nonzero(Some(96373)),
                },
                Feature {
                    name: sym::yield_expr,
                    since: "1.87.0",
                    issue: to_nonzero(Some(43122)),
                }];
impl Features {
    pub fn abi_unadjusted(&self) -> bool {
        self.enabled_features.contains(&sym::abi_unadjusted)
    }
    pub fn allocator_internals(&self) -> bool {
        self.enabled_features.contains(&sym::allocator_internals)
    }
    pub fn allow_internal_unsafe(&self) -> bool {
        self.enabled_features.contains(&sym::allow_internal_unsafe)
    }
    pub fn allow_internal_unstable(&self) -> bool {
        self.enabled_features.contains(&sym::allow_internal_unstable)
    }
    pub fn anonymous_lifetime_in_impl_trait(&self) -> bool {
        self.enabled_features.contains(&sym::anonymous_lifetime_in_impl_trait)
    }
    pub fn cfg_emscripten_wasm_eh(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_emscripten_wasm_eh)
    }
    pub fn cfg_target_has_reliable_f16_f128(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_target_has_reliable_f16_f128)
    }
    pub fn compiler_builtins(&self) -> bool {
        self.enabled_features.contains(&sym::compiler_builtins)
    }
    pub fn custom_mir(&self) -> bool {
        self.enabled_features.contains(&sym::custom_mir)
    }
    pub fn eii_internals(&self) -> bool {
        self.enabled_features.contains(&sym::eii_internals)
    }
    pub fn generic_assert(&self) -> bool {
        self.enabled_features.contains(&sym::generic_assert)
    }
    pub fn intrinsics(&self) -> bool {
        self.enabled_features.contains(&sym::intrinsics)
    }
    pub fn lang_items(&self) -> bool {
        self.enabled_features.contains(&sym::lang_items)
    }
    pub fn link_cfg(&self) -> bool {
        self.enabled_features.contains(&sym::link_cfg)
    }
    pub fn more_maybe_bounds(&self) -> bool {
        self.enabled_features.contains(&sym::more_maybe_bounds)
    }
    pub fn negative_bounds(&self) -> bool {
        self.enabled_features.contains(&sym::negative_bounds)
    }
    pub fn pattern_complexity_limit(&self) -> bool {
        self.enabled_features.contains(&sym::pattern_complexity_limit)
    }
    pub fn prelude_import(&self) -> bool {
        self.enabled_features.contains(&sym::prelude_import)
    }
    pub fn profiler_runtime(&self) -> bool {
        self.enabled_features.contains(&sym::profiler_runtime)
    }
    pub fn rustc_attrs(&self) -> bool {
        self.enabled_features.contains(&sym::rustc_attrs)
    }
    pub fn staged_api(&self) -> bool {
        self.enabled_features.contains(&sym::staged_api)
    }
    pub fn test_unstable_lint(&self) -> bool {
        self.enabled_features.contains(&sym::test_unstable_lint)
    }
    pub fn with_negative_coherence(&self) -> bool {
        self.enabled_features.contains(&sym::with_negative_coherence)
    }
    pub fn abi_vectorcall(&self) -> bool {
        self.enabled_features.contains(&sym::abi_vectorcall)
    }
    pub fn auto_traits(&self) -> bool {
        self.enabled_features.contains(&sym::auto_traits)
    }
    pub fn box_patterns(&self) -> bool {
        self.enabled_features.contains(&sym::box_patterns)
    }
    pub fn builtin_syntax(&self) -> bool {
        self.enabled_features.contains(&sym::builtin_syntax)
    }
    pub fn doc_notable_trait(&self) -> bool {
        self.enabled_features.contains(&sym::doc_notable_trait)
    }
    pub fn dropck_eyepatch(&self) -> bool {
        self.enabled_features.contains(&sym::dropck_eyepatch)
    }
    pub fn fundamental(&self) -> bool {
        self.enabled_features.contains(&sym::fundamental)
    }
    pub fn link_llvm_intrinsics(&self) -> bool {
        self.enabled_features.contains(&sym::link_llvm_intrinsics)
    }
    pub fn linkage(&self) -> bool {
        self.enabled_features.contains(&sym::linkage)
    }
    pub fn needs_panic_runtime(&self) -> bool {
        self.enabled_features.contains(&sym::needs_panic_runtime)
    }
    pub fn panic_runtime(&self) -> bool {
        self.enabled_features.contains(&sym::panic_runtime)
    }
    pub fn pattern_types(&self) -> bool {
        self.enabled_features.contains(&sym::pattern_types)
    }
    pub fn rustc_allow_const_fn_unstable(&self) -> bool {
        self.enabled_features.contains(&sym::rustc_allow_const_fn_unstable)
    }
    pub fn rustc_private(&self) -> bool {
        self.enabled_features.contains(&sym::rustc_private)
    }
    pub fn rustdoc_internals(&self) -> bool {
        self.enabled_features.contains(&sym::rustdoc_internals)
    }
    pub fn rustdoc_missing_doc_code_examples(&self) -> bool {
        self.enabled_features.contains(&sym::rustdoc_missing_doc_code_examples)
    }
    pub fn sized_hierarchy(&self) -> bool {
        self.enabled_features.contains(&sym::sized_hierarchy)
    }
    pub fn structural_match(&self) -> bool {
        self.enabled_features.contains(&sym::structural_match)
    }
    pub fn unboxed_closures(&self) -> bool {
        self.enabled_features.contains(&sym::unboxed_closures)
    }
    pub fn unqualified_local_imports(&self) -> bool {
        self.enabled_features.contains(&sym::unqualified_local_imports)
    }
    pub fn aarch64_unstable_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::aarch64_unstable_target_feature)
    }
    pub fn aarch64_ver_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::aarch64_ver_target_feature)
    }
    pub fn abi_avr_interrupt(&self) -> bool {
        self.enabled_features.contains(&sym::abi_avr_interrupt)
    }
    pub fn abi_cmse_nonsecure_call(&self) -> bool {
        self.enabled_features.contains(&sym::abi_cmse_nonsecure_call)
    }
    pub fn abi_custom(&self) -> bool {
        self.enabled_features.contains(&sym::abi_custom)
    }
    pub fn abi_gpu_kernel(&self) -> bool {
        self.enabled_features.contains(&sym::abi_gpu_kernel)
    }
    pub fn abi_msp430_interrupt(&self) -> bool {
        self.enabled_features.contains(&sym::abi_msp430_interrupt)
    }
    pub fn abi_ptx(&self) -> bool {
        self.enabled_features.contains(&sym::abi_ptx)
    }
    pub fn abi_riscv_interrupt(&self) -> bool {
        self.enabled_features.contains(&sym::abi_riscv_interrupt)
    }
    pub fn abi_x86_interrupt(&self) -> bool {
        self.enabled_features.contains(&sym::abi_x86_interrupt)
    }
    pub fn adt_const_params(&self) -> bool {
        self.enabled_features.contains(&sym::adt_const_params)
    }
    pub fn alloc_error_handler(&self) -> bool {
        self.enabled_features.contains(&sym::alloc_error_handler)
    }
    pub fn apx_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::apx_target_feature)
    }
    pub fn arbitrary_self_types(&self) -> bool {
        self.enabled_features.contains(&sym::arbitrary_self_types)
    }
    pub fn arbitrary_self_types_pointers(&self) -> bool {
        self.enabled_features.contains(&sym::arbitrary_self_types_pointers)
    }
    pub fn arm_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::arm_target_feature)
    }
    pub fn asm_experimental_arch(&self) -> bool {
        self.enabled_features.contains(&sym::asm_experimental_arch)
    }
    pub fn asm_experimental_reg(&self) -> bool {
        self.enabled_features.contains(&sym::asm_experimental_reg)
    }
    pub fn asm_goto_with_outputs(&self) -> bool {
        self.enabled_features.contains(&sym::asm_goto_with_outputs)
    }
    pub fn asm_unwind(&self) -> bool {
        self.enabled_features.contains(&sym::asm_unwind)
    }
    pub fn associated_type_defaults(&self) -> bool {
        self.enabled_features.contains(&sym::associated_type_defaults)
    }
    pub fn async_drop(&self) -> bool {
        self.enabled_features.contains(&sym::async_drop)
    }
    pub fn async_fn_in_dyn_trait(&self) -> bool {
        self.enabled_features.contains(&sym::async_fn_in_dyn_trait)
    }
    pub fn async_fn_track_caller(&self) -> bool {
        self.enabled_features.contains(&sym::async_fn_track_caller)
    }
    pub fn async_for_loop(&self) -> bool {
        self.enabled_features.contains(&sym::async_for_loop)
    }
    pub fn async_trait_bounds(&self) -> bool {
        self.enabled_features.contains(&sym::async_trait_bounds)
    }
    pub fn avx10_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::avx10_target_feature)
    }
    pub fn bpf_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::bpf_target_feature)
    }
    pub fn c_variadic(&self) -> bool {
        self.enabled_features.contains(&sym::c_variadic)
    }
    pub fn c_variadic_naked_functions(&self) -> bool {
        self.enabled_features.contains(&sym::c_variadic_naked_functions)
    }
    pub fn cfg_contract_checks(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_contract_checks)
    }
    pub fn cfg_overflow_checks(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_overflow_checks)
    }
    pub fn cfg_relocation_model(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_relocation_model)
    }
    pub fn cfg_sanitize(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_sanitize)
    }
    pub fn cfg_sanitizer_cfi(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_sanitizer_cfi)
    }
    pub fn cfg_target_compact(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_target_compact)
    }
    pub fn cfg_target_has_atomic(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_target_has_atomic)
    }
    pub fn cfg_target_has_atomic_equal_alignment(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_target_has_atomic_equal_alignment)
    }
    pub fn cfg_target_thread_local(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_target_thread_local)
    }
    pub fn cfg_ub_checks(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_ub_checks)
    }
    pub fn cfg_version(&self) -> bool {
        self.enabled_features.contains(&sym::cfg_version)
    }
    pub fn cfi_encoding(&self) -> bool {
        self.enabled_features.contains(&sym::cfi_encoding)
    }
    pub fn closure_lifetime_binder(&self) -> bool {
        self.enabled_features.contains(&sym::closure_lifetime_binder)
    }
    pub fn closure_track_caller(&self) -> bool {
        self.enabled_features.contains(&sym::closure_track_caller)
    }
    pub fn cmse_nonsecure_entry(&self) -> bool {
        self.enabled_features.contains(&sym::cmse_nonsecure_entry)
    }
    pub fn const_async_blocks(&self) -> bool {
        self.enabled_features.contains(&sym::const_async_blocks)
    }
    pub fn const_block_items(&self) -> bool {
        self.enabled_features.contains(&sym::const_block_items)
    }
    pub fn const_closures(&self) -> bool {
        self.enabled_features.contains(&sym::const_closures)
    }
    pub fn const_destruct(&self) -> bool {
        self.enabled_features.contains(&sym::const_destruct)
    }
    pub fn const_for(&self) -> bool {
        self.enabled_features.contains(&sym::const_for)
    }
    pub fn const_precise_live_drops(&self) -> bool {
        self.enabled_features.contains(&sym::const_precise_live_drops)
    }
    pub fn const_trait_impl(&self) -> bool {
        self.enabled_features.contains(&sym::const_trait_impl)
    }
    pub fn const_try(&self) -> bool {
        self.enabled_features.contains(&sym::const_try)
    }
    pub fn contracts(&self) -> bool {
        self.enabled_features.contains(&sym::contracts)
    }
    pub fn contracts_internals(&self) -> bool {
        self.enabled_features.contains(&sym::contracts_internals)
    }
    pub fn coroutine_clone(&self) -> bool {
        self.enabled_features.contains(&sym::coroutine_clone)
    }
    pub fn coroutines(&self) -> bool {
        self.enabled_features.contains(&sym::coroutines)
    }
    pub fn coverage_attribute(&self) -> bool {
        self.enabled_features.contains(&sym::coverage_attribute)
    }
    pub fn csky_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::csky_target_feature)
    }
    pub fn custom_inner_attributes(&self) -> bool {
        self.enabled_features.contains(&sym::custom_inner_attributes)
    }
    pub fn custom_test_frameworks(&self) -> bool {
        self.enabled_features.contains(&sym::custom_test_frameworks)
    }
    pub fn decl_macro(&self) -> bool {
        self.enabled_features.contains(&sym::decl_macro)
    }
    pub fn default_field_values(&self) -> bool {
        self.enabled_features.contains(&sym::default_field_values)
    }
    pub fn deprecated_safe(&self) -> bool {
        self.enabled_features.contains(&sym::deprecated_safe)
    }
    pub fn deprecated_suggestion(&self) -> bool {
        self.enabled_features.contains(&sym::deprecated_suggestion)
    }
    pub fn deref_patterns(&self) -> bool {
        self.enabled_features.contains(&sym::deref_patterns)
    }
    pub fn derive_from(&self) -> bool {
        self.enabled_features.contains(&sym::derive_from)
    }
    pub fn diagnostic_on_const(&self) -> bool {
        self.enabled_features.contains(&sym::diagnostic_on_const)
    }
    pub fn doc_cfg(&self) -> bool {
        self.enabled_features.contains(&sym::doc_cfg)
    }
    pub fn doc_masked(&self) -> bool {
        self.enabled_features.contains(&sym::doc_masked)
    }
    pub fn effective_target_features(&self) -> bool {
        self.enabled_features.contains(&sym::effective_target_features)
    }
    pub fn ergonomic_clones(&self) -> bool {
        self.enabled_features.contains(&sym::ergonomic_clones)
    }
    pub fn ermsb_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::ermsb_target_feature)
    }
    pub fn exhaustive_patterns(&self) -> bool {
        self.enabled_features.contains(&sym::exhaustive_patterns)
    }
    pub fn explicit_extern_abis(&self) -> bool {
        self.enabled_features.contains(&sym::explicit_extern_abis)
    }
    pub fn explicit_tail_calls(&self) -> bool {
        self.enabled_features.contains(&sym::explicit_tail_calls)
    }
    pub fn export_stable(&self) -> bool {
        self.enabled_features.contains(&sym::export_stable)
    }
    pub fn extern_item_impls(&self) -> bool {
        self.enabled_features.contains(&sym::extern_item_impls)
    }
    pub fn extern_types(&self) -> bool {
        self.enabled_features.contains(&sym::extern_types)
    }
    pub fn f128(&self) -> bool { self.enabled_features.contains(&sym::f128) }
    pub fn f16(&self) -> bool { self.enabled_features.contains(&sym::f16) }
    pub fn ffi_const(&self) -> bool {
        self.enabled_features.contains(&sym::ffi_const)
    }
    pub fn ffi_pure(&self) -> bool {
        self.enabled_features.contains(&sym::ffi_pure)
    }
    pub fn fmt_debug(&self) -> bool {
        self.enabled_features.contains(&sym::fmt_debug)
    }
    pub fn fn_align(&self) -> bool {
        self.enabled_features.contains(&sym::fn_align)
    }
    pub fn fn_delegation(&self) -> bool {
        self.enabled_features.contains(&sym::fn_delegation)
    }
    pub fn freeze_impls(&self) -> bool {
        self.enabled_features.contains(&sym::freeze_impls)
    }
    pub fn frontmatter(&self) -> bool {
        self.enabled_features.contains(&sym::frontmatter)
    }
    pub fn gen_blocks(&self) -> bool {
        self.enabled_features.contains(&sym::gen_blocks)
    }
    pub fn generic_const_exprs(&self) -> bool {
        self.enabled_features.contains(&sym::generic_const_exprs)
    }
    pub fn generic_const_items(&self) -> bool {
        self.enabled_features.contains(&sym::generic_const_items)
    }
    pub fn generic_const_parameter_types(&self) -> bool {
        self.enabled_features.contains(&sym::generic_const_parameter_types)
    }
    pub fn generic_pattern_types(&self) -> bool {
        self.enabled_features.contains(&sym::generic_pattern_types)
    }
    pub fn global_registration(&self) -> bool {
        self.enabled_features.contains(&sym::global_registration)
    }
    pub fn guard_patterns(&self) -> bool {
        self.enabled_features.contains(&sym::guard_patterns)
    }
    pub fn half_open_range_patterns_in_slices(&self) -> bool {
        self.enabled_features.contains(&sym::half_open_range_patterns_in_slices)
    }
    pub fn hexagon_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::hexagon_target_feature)
    }
    pub fn if_let_guard(&self) -> bool {
        self.enabled_features.contains(&sym::if_let_guard)
    }
    pub fn impl_trait_in_assoc_type(&self) -> bool {
        self.enabled_features.contains(&sym::impl_trait_in_assoc_type)
    }
    pub fn impl_trait_in_bindings(&self) -> bool {
        self.enabled_features.contains(&sym::impl_trait_in_bindings)
    }
    pub fn impl_trait_in_fn_trait_return(&self) -> bool {
        self.enabled_features.contains(&sym::impl_trait_in_fn_trait_return)
    }
    pub fn import_trait_associated_functions(&self) -> bool {
        self.enabled_features.contains(&sym::import_trait_associated_functions)
    }
    pub fn inherent_associated_types(&self) -> bool {
        self.enabled_features.contains(&sym::inherent_associated_types)
    }
    pub fn intra_doc_pointers(&self) -> bool {
        self.enabled_features.contains(&sym::intra_doc_pointers)
    }
    pub fn lahfsahf_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::lahfsahf_target_feature)
    }
    pub fn large_assignments(&self) -> bool {
        self.enabled_features.contains(&sym::large_assignments)
    }
    pub fn lazy_type_alias(&self) -> bool {
        self.enabled_features.contains(&sym::lazy_type_alias)
    }
    pub fn link_arg_attribute(&self) -> bool {
        self.enabled_features.contains(&sym::link_arg_attribute)
    }
    pub fn loongarch_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::loongarch_target_feature)
    }
    pub fn loop_match(&self) -> bool {
        self.enabled_features.contains(&sym::loop_match)
    }
    pub fn m68k_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::m68k_target_feature)
    }
    pub fn macro_attr(&self) -> bool {
        self.enabled_features.contains(&sym::macro_attr)
    }
    pub fn macro_derive(&self) -> bool {
        self.enabled_features.contains(&sym::macro_derive)
    }
    pub fn macro_metavar_expr(&self) -> bool {
        self.enabled_features.contains(&sym::macro_metavar_expr)
    }
    pub fn macro_metavar_expr_concat(&self) -> bool {
        self.enabled_features.contains(&sym::macro_metavar_expr_concat)
    }
    pub fn marker_trait_attr(&self) -> bool {
        self.enabled_features.contains(&sym::marker_trait_attr)
    }
    pub fn min_generic_const_args(&self) -> bool {
        self.enabled_features.contains(&sym::min_generic_const_args)
    }
    pub fn min_specialization(&self) -> bool {
        self.enabled_features.contains(&sym::min_specialization)
    }
    pub fn mips_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::mips_target_feature)
    }
    pub fn more_qualified_paths(&self) -> bool {
        self.enabled_features.contains(&sym::more_qualified_paths)
    }
    pub fn movrs_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::movrs_target_feature)
    }
    pub fn multiple_supertrait_upcastable(&self) -> bool {
        self.enabled_features.contains(&sym::multiple_supertrait_upcastable)
    }
    pub fn must_not_suspend(&self) -> bool {
        self.enabled_features.contains(&sym::must_not_suspend)
    }
    pub fn mut_ref(&self) -> bool {
        self.enabled_features.contains(&sym::mut_ref)
    }
    pub fn naked_functions_rustic_abi(&self) -> bool {
        self.enabled_features.contains(&sym::naked_functions_rustic_abi)
    }
    pub fn naked_functions_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::naked_functions_target_feature)
    }
    pub fn native_link_modifiers_as_needed(&self) -> bool {
        self.enabled_features.contains(&sym::native_link_modifiers_as_needed)
    }
    pub fn negative_impls(&self) -> bool {
        self.enabled_features.contains(&sym::negative_impls)
    }
    pub fn never_patterns(&self) -> bool {
        self.enabled_features.contains(&sym::never_patterns)
    }
    pub fn never_type(&self) -> bool {
        self.enabled_features.contains(&sym::never_type)
    }
    pub fn new_range(&self) -> bool {
        self.enabled_features.contains(&sym::new_range)
    }
    pub fn no_core(&self) -> bool {
        self.enabled_features.contains(&sym::no_core)
    }
    pub fn non_exhaustive_omitted_patterns_lint(&self) -> bool {
        self.enabled_features.contains(&sym::non_exhaustive_omitted_patterns_lint)
    }
    pub fn non_lifetime_binders(&self) -> bool {
        self.enabled_features.contains(&sym::non_lifetime_binders)
    }
    pub fn nvptx_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::nvptx_target_feature)
    }
    pub fn offset_of_enum(&self) -> bool {
        self.enabled_features.contains(&sym::offset_of_enum)
    }
    pub fn offset_of_slice(&self) -> bool {
        self.enabled_features.contains(&sym::offset_of_slice)
    }
    pub fn optimize_attribute(&self) -> bool {
        self.enabled_features.contains(&sym::optimize_attribute)
    }
    pub fn patchable_function_entry(&self) -> bool {
        self.enabled_features.contains(&sym::patchable_function_entry)
    }
    pub fn pin_ergonomics(&self) -> bool {
        self.enabled_features.contains(&sym::pin_ergonomics)
    }
    pub fn postfix_match(&self) -> bool {
        self.enabled_features.contains(&sym::postfix_match)
    }
    pub fn powerpc_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::powerpc_target_feature)
    }
    pub fn prfchw_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::prfchw_target_feature)
    }
    pub fn proc_macro_hygiene(&self) -> bool {
        self.enabled_features.contains(&sym::proc_macro_hygiene)
    }
    pub fn raw_dylib_elf(&self) -> bool {
        self.enabled_features.contains(&sym::raw_dylib_elf)
    }
    pub fn reborrow(&self) -> bool {
        self.enabled_features.contains(&sym::reborrow)
    }
    pub fn ref_pat_eat_one_layer_2024(&self) -> bool {
        self.enabled_features.contains(&sym::ref_pat_eat_one_layer_2024)
    }
    pub fn ref_pat_eat_one_layer_2024_structural(&self) -> bool {
        self.enabled_features.contains(&sym::ref_pat_eat_one_layer_2024_structural)
    }
    pub fn register_tool(&self) -> bool {
        self.enabled_features.contains(&sym::register_tool)
    }
    pub fn repr_simd(&self) -> bool {
        self.enabled_features.contains(&sym::repr_simd)
    }
    pub fn return_type_notation(&self) -> bool {
        self.enabled_features.contains(&sym::return_type_notation)
    }
    pub fn riscv_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::riscv_target_feature)
    }
    pub fn rtm_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::rtm_target_feature)
    }
    pub fn rust_cold_cc(&self) -> bool {
        self.enabled_features.contains(&sym::rust_cold_cc)
    }
    pub fn rust_preserve_none_cc(&self) -> bool {
        self.enabled_features.contains(&sym::rust_preserve_none_cc)
    }
    pub fn s390x_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::s390x_target_feature)
    }
    pub fn sanitize(&self) -> bool {
        self.enabled_features.contains(&sym::sanitize)
    }
    pub fn simd_ffi(&self) -> bool {
        self.enabled_features.contains(&sym::simd_ffi)
    }
    pub fn sparc_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::sparc_target_feature)
    }
    pub fn specialization(&self) -> bool {
        self.enabled_features.contains(&sym::specialization)
    }
    pub fn static_align(&self) -> bool {
        self.enabled_features.contains(&sym::static_align)
    }
    pub fn stmt_expr_attributes(&self) -> bool {
        self.enabled_features.contains(&sym::stmt_expr_attributes)
    }
    pub fn strict_provenance_lints(&self) -> bool {
        self.enabled_features.contains(&sym::strict_provenance_lints)
    }
    pub fn super_let(&self) -> bool {
        self.enabled_features.contains(&sym::super_let)
    }
    pub fn supertrait_item_shadowing(&self) -> bool {
        self.enabled_features.contains(&sym::supertrait_item_shadowing)
    }
    pub fn target_feature_inline_always(&self) -> bool {
        self.enabled_features.contains(&sym::target_feature_inline_always)
    }
    pub fn thread_local(&self) -> bool {
        self.enabled_features.contains(&sym::thread_local)
    }
    pub fn trait_alias(&self) -> bool {
        self.enabled_features.contains(&sym::trait_alias)
    }
    pub fn transmute_generic_consts(&self) -> bool {
        self.enabled_features.contains(&sym::transmute_generic_consts)
    }
    pub fn transparent_unions(&self) -> bool {
        self.enabled_features.contains(&sym::transparent_unions)
    }
    pub fn trivial_bounds(&self) -> bool {
        self.enabled_features.contains(&sym::trivial_bounds)
    }
    pub fn try_blocks(&self) -> bool {
        self.enabled_features.contains(&sym::try_blocks)
    }
    pub fn try_blocks_heterogeneous(&self) -> bool {
        self.enabled_features.contains(&sym::try_blocks_heterogeneous)
    }
    pub fn type_alias_impl_trait(&self) -> bool {
        self.enabled_features.contains(&sym::type_alias_impl_trait)
    }
    pub fn type_changing_struct_update(&self) -> bool {
        self.enabled_features.contains(&sym::type_changing_struct_update)
    }
    pub fn unsafe_binders(&self) -> bool {
        self.enabled_features.contains(&sym::unsafe_binders)
    }
    pub fn unsafe_fields(&self) -> bool {
        self.enabled_features.contains(&sym::unsafe_fields)
    }
    pub fn unsized_const_params(&self) -> bool {
        self.enabled_features.contains(&sym::unsized_const_params)
    }
    pub fn unsized_fn_params(&self) -> bool {
        self.enabled_features.contains(&sym::unsized_fn_params)
    }
    pub fn used_with_arg(&self) -> bool {
        self.enabled_features.contains(&sym::used_with_arg)
    }
    pub fn wasm_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::wasm_target_feature)
    }
    pub fn where_clause_attrs(&self) -> bool {
        self.enabled_features.contains(&sym::where_clause_attrs)
    }
    pub fn x86_amx_intrinsics(&self) -> bool {
        self.enabled_features.contains(&sym::x86_amx_intrinsics)
    }
    pub fn x87_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::x87_target_feature)
    }
    pub fn xop_target_feature(&self) -> bool {
        self.enabled_features.contains(&sym::xop_target_feature)
    }
    pub fn yeet_expr(&self) -> bool {
        self.enabled_features.contains(&sym::yeet_expr)
    }
    pub fn yield_expr(&self) -> bool {
        self.enabled_features.contains(&sym::yield_expr)
    }
    /// Some features are known to be incomplete and using them is likely to have
    /// unanticipated results, such as compiler crashes. We warn the user about these
    /// to alert them.
    pub fn incomplete(&self, feature: Symbol) -> bool {
        match feature {
            sym::abi_unadjusted =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::allocator_internals =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::allow_internal_unsafe =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::allow_internal_unstable =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::anonymous_lifetime_in_impl_trait =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_emscripten_wasm_eh =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::cfg_target_has_reliable_f16_f128 =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::compiler_builtins =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::custom_mir =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::eii_internals =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::generic_assert =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::intrinsics =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::lang_items =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::link_cfg =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::more_maybe_bounds =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::negative_bounds =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::pattern_complexity_limit =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::prelude_import =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::profiler_runtime =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::rustc_attrs =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::staged_api =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::test_unstable_lint =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::with_negative_coherence =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_vectorcall =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::auto_traits =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::box_patterns =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::builtin_syntax =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::doc_notable_trait =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::dropck_eyepatch =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::fundamental =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::link_llvm_intrinsics =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::linkage =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::needs_panic_runtime =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::panic_runtime =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::pattern_types =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::rustc_allow_const_fn_unstable =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::rustc_private =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::rustdoc_internals =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::rustdoc_missing_doc_code_examples =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::sized_hierarchy =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::structural_match =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::unboxed_closures =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::unqualified_local_imports =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::aarch64_unstable_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::aarch64_ver_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_avr_interrupt =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_cmse_nonsecure_call =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_custom =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_gpu_kernel =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_msp430_interrupt =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_ptx =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_riscv_interrupt =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::abi_x86_interrupt =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::adt_const_params =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::alloc_error_handler =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::apx_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::arbitrary_self_types =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::arbitrary_self_types_pointers =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::arm_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::asm_experimental_arch =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::asm_experimental_reg =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::asm_goto_with_outputs =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::asm_unwind =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::associated_type_defaults =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::async_drop =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::async_fn_in_dyn_trait =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::async_fn_track_caller =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::async_for_loop =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::async_trait_bounds =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::avx10_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::bpf_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::c_variadic =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::c_variadic_naked_functions =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_contract_checks =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_overflow_checks =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_relocation_model =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_sanitize =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_sanitizer_cfi =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_target_compact =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_target_has_atomic =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_target_has_atomic_equal_alignment =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_target_thread_local =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_ub_checks =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfg_version =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cfi_encoding =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::closure_lifetime_binder =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::closure_track_caller =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::cmse_nonsecure_entry =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::const_async_blocks =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::const_block_items =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::const_closures =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::const_destruct =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::const_for =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::const_precise_live_drops =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::const_trait_impl =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::const_try =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::contracts =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::contracts_internals =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::coroutine_clone =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::coroutines =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::coverage_attribute =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::csky_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::custom_inner_attributes =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::custom_test_frameworks =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::decl_macro =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::default_field_values =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::deprecated_safe =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::deprecated_suggestion =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::deref_patterns =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::derive_from =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::diagnostic_on_const =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::doc_cfg =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::doc_masked =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::effective_target_features =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::ergonomic_clones =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::ermsb_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::exhaustive_patterns =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::explicit_extern_abis =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::explicit_tail_calls =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::export_stable =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::extern_item_impls =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::extern_types =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::f128 => FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::f16 => FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::ffi_const =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::ffi_pure =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::fmt_debug =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::fn_align =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::fn_delegation =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::freeze_impls =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::frontmatter =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::gen_blocks =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::generic_const_exprs =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::generic_const_items =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::generic_const_parameter_types =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::generic_pattern_types =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::global_registration =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::guard_patterns =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::half_open_range_patterns_in_slices =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::hexagon_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::if_let_guard =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::impl_trait_in_assoc_type =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::impl_trait_in_bindings =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::impl_trait_in_fn_trait_return =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::import_trait_associated_functions =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::inherent_associated_types =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::intra_doc_pointers =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::lahfsahf_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::large_assignments =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::lazy_type_alias =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::link_arg_attribute =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::loongarch_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::loop_match =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::m68k_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::macro_attr =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::macro_derive =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::macro_metavar_expr =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::macro_metavar_expr_concat =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::marker_trait_attr =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::min_generic_const_args =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::min_specialization =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::mips_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::more_qualified_paths =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::movrs_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::multiple_supertrait_upcastable =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::must_not_suspend =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::mut_ref =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::naked_functions_rustic_abi =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::naked_functions_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::native_link_modifiers_as_needed =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::negative_impls =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::never_patterns =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::never_type =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::new_range =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::no_core =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::non_exhaustive_omitted_patterns_lint =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::non_lifetime_binders =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::nvptx_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::offset_of_enum =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::offset_of_slice =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::optimize_attribute =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::patchable_function_entry =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::pin_ergonomics =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::postfix_match =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::powerpc_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::prfchw_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::proc_macro_hygiene =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::raw_dylib_elf =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::reborrow =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::ref_pat_eat_one_layer_2024 =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::ref_pat_eat_one_layer_2024_structural =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::register_tool =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::repr_simd =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::return_type_notation =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::riscv_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::rtm_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::rust_cold_cc =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::rust_preserve_none_cc =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::s390x_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::sanitize =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::simd_ffi =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::sparc_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::specialization =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::static_align =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::stmt_expr_attributes =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::strict_provenance_lints =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::super_let =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::supertrait_item_shadowing =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::target_feature_inline_always =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::thread_local =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::trait_alias =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::transmute_generic_consts =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::transparent_unions =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::trivial_bounds =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::try_blocks =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::try_blocks_heterogeneous =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::type_alias_impl_trait =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::type_changing_struct_update =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::unsafe_binders =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::unsafe_fields =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::unsized_const_params =>
                FeatureStatus::Incomplete == FeatureStatus::Incomplete,
            sym::unsized_fn_params =>
                FeatureStatus::Internal == FeatureStatus::Incomplete,
            sym::used_with_arg =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::wasm_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::where_clause_attrs =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::x86_amx_intrinsics =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::x87_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::xop_target_feature =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::yeet_expr =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            sym::yield_expr =>
                FeatureStatus::Default == FeatureStatus::Incomplete,
            _ if self.enabled_features.contains(&feature) => { false }
            _ => {
                ::core::panicking::panic_fmt(format_args!("`{0}` was not listed in `declare_features`",
                        feature));
            }
        }
    }
    /// Some features are internal to the compiler and standard library and should not
    /// be used in normal projects. We warn the user about these to alert them.
    pub fn internal(&self, feature: Symbol) -> bool {
        match feature {
            sym::abi_unadjusted =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::allocator_internals =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::allow_internal_unsafe =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::allow_internal_unstable =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::anonymous_lifetime_in_impl_trait =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_emscripten_wasm_eh =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::cfg_target_has_reliable_f16_f128 =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::compiler_builtins =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::custom_mir =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::eii_internals =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::generic_assert =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::intrinsics =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::lang_items =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::link_cfg =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::more_maybe_bounds =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::negative_bounds =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::pattern_complexity_limit =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::prelude_import =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::profiler_runtime =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::rustc_attrs =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::staged_api =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::test_unstable_lint =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::with_negative_coherence =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_vectorcall =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::auto_traits =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::box_patterns =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::builtin_syntax =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::doc_notable_trait =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::dropck_eyepatch =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::fundamental =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::link_llvm_intrinsics =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::linkage => FeatureStatus::Default == FeatureStatus::Internal,
            sym::needs_panic_runtime =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::panic_runtime =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::pattern_types =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::rustc_allow_const_fn_unstable =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::rustc_private =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::rustdoc_internals =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::rustdoc_missing_doc_code_examples =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::sized_hierarchy =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::structural_match =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::unboxed_closures =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::unqualified_local_imports =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::aarch64_unstable_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::aarch64_ver_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_avr_interrupt =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_cmse_nonsecure_call =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_custom =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_gpu_kernel =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_msp430_interrupt =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_ptx => FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_riscv_interrupt =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::abi_x86_interrupt =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::adt_const_params =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::alloc_error_handler =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::apx_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::arbitrary_self_types =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::arbitrary_self_types_pointers =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::arm_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::asm_experimental_arch =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::asm_experimental_reg =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::asm_goto_with_outputs =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::asm_unwind =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::associated_type_defaults =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::async_drop =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::async_fn_in_dyn_trait =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::async_fn_track_caller =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::async_for_loop =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::async_trait_bounds =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::avx10_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::bpf_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::c_variadic =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::c_variadic_naked_functions =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_contract_checks =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_overflow_checks =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_relocation_model =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_sanitize =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_sanitizer_cfi =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_target_compact =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_target_has_atomic =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_target_has_atomic_equal_alignment =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_target_thread_local =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_ub_checks =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfg_version =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cfi_encoding =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::closure_lifetime_binder =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::closure_track_caller =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::cmse_nonsecure_entry =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::const_async_blocks =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::const_block_items =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::const_closures =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::const_destruct =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::const_for =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::const_precise_live_drops =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::const_trait_impl =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::const_try =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::contracts =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::contracts_internals =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::coroutine_clone =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::coroutines =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::coverage_attribute =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::csky_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::custom_inner_attributes =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::custom_test_frameworks =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::decl_macro =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::default_field_values =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::deprecated_safe =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::deprecated_suggestion =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::deref_patterns =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::derive_from =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::diagnostic_on_const =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::doc_cfg => FeatureStatus::Default == FeatureStatus::Internal,
            sym::doc_masked =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::effective_target_features =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::ergonomic_clones =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::ermsb_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::exhaustive_patterns =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::explicit_extern_abis =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::explicit_tail_calls =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::export_stable =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::extern_item_impls =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::extern_types =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::f128 => FeatureStatus::Default == FeatureStatus::Internal,
            sym::f16 => FeatureStatus::Default == FeatureStatus::Internal,
            sym::ffi_const =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::ffi_pure =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::fmt_debug =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::fn_align =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::fn_delegation =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::freeze_impls =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::frontmatter =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::gen_blocks =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::generic_const_exprs =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::generic_const_items =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::generic_const_parameter_types =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::generic_pattern_types =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::global_registration =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::guard_patterns =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::half_open_range_patterns_in_slices =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::hexagon_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::if_let_guard =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::impl_trait_in_assoc_type =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::impl_trait_in_bindings =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::impl_trait_in_fn_trait_return =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::import_trait_associated_functions =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::inherent_associated_types =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::intra_doc_pointers =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::lahfsahf_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::large_assignments =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::lazy_type_alias =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::link_arg_attribute =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::loongarch_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::loop_match =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::m68k_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::macro_attr =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::macro_derive =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::macro_metavar_expr =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::macro_metavar_expr_concat =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::marker_trait_attr =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::min_generic_const_args =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::min_specialization =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::mips_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::more_qualified_paths =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::movrs_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::multiple_supertrait_upcastable =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::must_not_suspend =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::mut_ref =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::naked_functions_rustic_abi =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::naked_functions_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::native_link_modifiers_as_needed =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::negative_impls =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::never_patterns =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::never_type =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::new_range =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::no_core => FeatureStatus::Default == FeatureStatus::Internal,
            sym::non_exhaustive_omitted_patterns_lint =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::non_lifetime_binders =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::nvptx_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::offset_of_enum =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::offset_of_slice =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::optimize_attribute =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::patchable_function_entry =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::pin_ergonomics =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::postfix_match =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::powerpc_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::prfchw_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::proc_macro_hygiene =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::raw_dylib_elf =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::reborrow =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::ref_pat_eat_one_layer_2024 =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::ref_pat_eat_one_layer_2024_structural =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::register_tool =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::repr_simd =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::return_type_notation =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::riscv_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::rtm_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::rust_cold_cc =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::rust_preserve_none_cc =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::s390x_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::sanitize =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::simd_ffi =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::sparc_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::specialization =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::static_align =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::stmt_expr_attributes =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::strict_provenance_lints =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::super_let =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::supertrait_item_shadowing =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::target_feature_inline_always =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::thread_local =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::trait_alias =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::transmute_generic_consts =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::transparent_unions =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::trivial_bounds =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::try_blocks =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::try_blocks_heterogeneous =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::type_alias_impl_trait =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::type_changing_struct_update =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::unsafe_binders =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::unsafe_fields =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::unsized_const_params =>
                FeatureStatus::Incomplete == FeatureStatus::Internal,
            sym::unsized_fn_params =>
                FeatureStatus::Internal == FeatureStatus::Internal,
            sym::used_with_arg =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::wasm_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::where_clause_attrs =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::x86_amx_intrinsics =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::x87_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::xop_target_feature =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::yeet_expr =>
                FeatureStatus::Default == FeatureStatus::Internal,
            sym::yield_expr =>
                FeatureStatus::Default == FeatureStatus::Internal,
            _ if self.enabled_features.contains(&feature) => {
                let name = feature.as_str();
                name == "core_intrinsics" || name.ends_with("_internal") ||
                    name.ends_with("_internals")
            }
            _ => {
                ::core::panicking::panic_fmt(format_args!("`{0}` was not listed in `declare_features`",
                        feature));
            }
        }
    }
}declare_features! (
195    // -------------------------------------------------------------------------
196    // feature-group-start: internal feature gates (no tracking issue)
197    // -------------------------------------------------------------------------
198    // no-tracking-issue-start
199
200    /// Allows using the `unadjusted` ABI; perma-unstable.
201    (internal, abi_unadjusted, "1.16.0", None),
202    /// Allows using `#![needs_allocator]`, an implementation detail of `#[global_allocator]`.
203    (internal, allocator_internals, "1.20.0", None),
204    /// Allows using `#[allow_internal_unsafe]`. This is an
205    /// attribute on `macro_rules!` and can't use the attribute handling
206    /// below (it has to be checked before expansion possibly makes
207    /// macros disappear).
208    (internal, allow_internal_unsafe, "1.0.0", None),
209    /// Allows using `#[allow_internal_unstable]`. This is an
210    /// attribute on `macro_rules!` and can't use the attribute handling
211    /// below (it has to be checked before expansion possibly makes
212    /// macros disappear).
213    (internal, allow_internal_unstable, "1.0.0", None),
214    /// Allows using anonymous lifetimes in argument-position impl-trait.
215    (unstable, anonymous_lifetime_in_impl_trait, "1.63.0", None),
216    /// Allows access to the emscripten_wasm_eh config, used by panic_unwind and unwind
217    (internal, cfg_emscripten_wasm_eh, "1.86.0", None),
218    /// Allows checking whether or not the backend correctly supports unstable float types.
219    (internal, cfg_target_has_reliable_f16_f128, "1.88.0", None),
220    /// Allows identifying the `compiler_builtins` crate.
221    (internal, compiler_builtins, "1.13.0", None),
222    /// Allows writing custom MIR
223    (internal, custom_mir, "1.65.0", None),
224    /// Implementation details of externally implementable items
225    (internal, eii_internals, "1.94.0", None),
226    /// Outputs useful `assert!` messages
227    (unstable, generic_assert, "1.63.0", None),
228    /// Allows using the #[rustc_intrinsic] attribute.
229    (internal, intrinsics, "1.0.0", None),
230    /// Allows using `#[lang = ".."]` attribute for linking items to special compiler logic.
231    (internal, lang_items, "1.0.0", None),
232    /// Allows `#[link(..., cfg(..))]`; perma-unstable per #37406
233    (internal, link_cfg, "1.14.0", None),
234    /// Allows using `?Trait` trait bounds in more contexts.
235    (internal, more_maybe_bounds, "1.82.0", None),
236    /// Allow negative trait bounds. This is an internal-only feature for testing the trait solver!
237    (internal, negative_bounds, "1.71.0", None),
238    /// Set the maximum pattern complexity allowed (not limited by default).
239    (internal, pattern_complexity_limit, "1.78.0", None),
240    /// Allows using `#[prelude_import]` on glob `use` items.
241    (internal, prelude_import, "1.2.0", None),
242    /// Used to identify crates that contain the profiler runtime.
243    (internal, profiler_runtime, "1.18.0", None),
244    /// Allows using `rustc_*` attributes (RFC 572).
245    (internal, rustc_attrs, "1.0.0", None),
246    /// Allows using the `#[stable]` and `#[unstable]` attributes.
247    (internal, staged_api, "1.0.0", None),
248    /// Added for testing unstable lints; perma-unstable.
249    (internal, test_unstable_lint, "1.60.0", None),
250    /// Use for stable + negative coherence and strict coherence depending on trait's
251    /// rustc_strict_coherence value.
252    (unstable, with_negative_coherence, "1.60.0", None),
253    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
254    // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
255    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
256
257    // no-tracking-issue-end
258    // -------------------------------------------------------------------------
259    // feature-group-end: internal feature gates (no tracking issue)
260    // -------------------------------------------------------------------------
261
262    // -------------------------------------------------------------------------
263    // feature-group-start: internal feature gates
264    // -------------------------------------------------------------------------
265
266    /// Allows using the `vectorcall` ABI.
267    (unstable, abi_vectorcall, "1.7.0", Some(124485)),
268    /// Allows features specific to auto traits.
269    /// Renamed from `optin_builtin_traits`.
270    (unstable, auto_traits, "1.50.0", Some(13231)),
271    /// Allows using `box` in patterns (RFC 469).
272    (unstable, box_patterns, "1.0.0", Some(29641)),
273    /// Allows builtin # foo() syntax
274    (internal, builtin_syntax, "1.71.0", Some(110680)),
275    /// Allows `#[doc(notable_trait)]`.
276    /// Renamed from `doc_spotlight`.
277    (unstable, doc_notable_trait, "1.52.0", Some(45040)),
278    /// Allows using the `may_dangle` attribute (RFC 1327).
279    (unstable, dropck_eyepatch, "1.10.0", Some(34761)),
280    /// Allows using the `#[fundamental]` attribute.
281    (unstable, fundamental, "1.0.0", Some(29635)),
282    /// Allows using `#[link_name="llvm.*"]`.
283    (internal, link_llvm_intrinsics, "1.0.0", Some(29602)),
284    /// Allows using the `#[linkage = ".."]` attribute.
285    (unstable, linkage, "1.0.0", Some(29603)),
286    /// Allows declaring with `#![needs_panic_runtime]` that a panic runtime is needed.
287    (internal, needs_panic_runtime, "1.10.0", Some(32837)),
288    /// Allows using the `#![panic_runtime]` attribute.
289    (internal, panic_runtime, "1.10.0", Some(32837)),
290    /// Allows using pattern types.
291    (internal, pattern_types, "1.79.0", Some(123646)),
292    /// Allows using `#[rustc_allow_const_fn_unstable]`.
293    /// This is an attribute on `const fn` for the same
294    /// purpose as `#[allow_internal_unstable]`.
295    (internal, rustc_allow_const_fn_unstable, "1.49.0", Some(69399)),
296    /// Allows using compiler's own crates.
297    (unstable, rustc_private, "1.0.0", Some(27812)),
298    /// Allows using internal rustdoc features like `doc(keyword)`.
299    (internal, rustdoc_internals, "1.58.0", Some(90418)),
300    /// Allows using the `rustdoc::missing_doc_code_examples` lint
301    (unstable, rustdoc_missing_doc_code_examples, "1.31.0", Some(101730)),
302    /// Introduces a hierarchy of `Sized` traits (RFC 3729).
303    (unstable, sized_hierarchy, "1.89.0", Some(144404)),
304    /// Allows using `#[structural_match]` which indicates that a type is structurally matchable.
305    /// FIXME: Subsumed by trait `StructuralPartialEq`, cannot move to removed until a library
306    /// feature with the same name exists.
307    (unstable, structural_match, "1.8.0", Some(31434)),
308    /// Allows using the `rust-call` ABI.
309    (unstable, unboxed_closures, "1.0.0", Some(29625)),
310    /// Helps with formatting for `group_imports = "StdExternalCrate"`.
311    (unstable, unqualified_local_imports, "1.83.0", Some(138299)),
312    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
313    // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
314    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
315
316    // -------------------------------------------------------------------------
317    // feature-group-end: internal feature gates
318    // -------------------------------------------------------------------------
319
320    // -------------------------------------------------------------------------
321    // feature-group-start: actual feature gates
322    // -------------------------------------------------------------------------
323
324    /// The remaining unstable target features on aarch64.
325    (unstable, aarch64_unstable_target_feature, "1.82.0", Some(150244)),
326    /// Instruction set "version" target features on aarch64.
327    (unstable, aarch64_ver_target_feature, "1.27.0", Some(150245)),
328    /// Allows `extern "avr-interrupt" fn()` and `extern "avr-non-blocking-interrupt" fn()`.
329    (unstable, abi_avr_interrupt, "1.45.0", Some(69664)),
330    /// Allows `extern "cmse-nonsecure-call" fn()`.
331    (unstable, abi_cmse_nonsecure_call, "1.90.0", Some(81391)),
332    /// Allows `extern "custom" fn()`.
333    (unstable, abi_custom, "1.89.0", Some(140829)),
334    /// Allows `extern "gpu-kernel" fn()`.
335    (unstable, abi_gpu_kernel, "1.86.0", Some(135467)),
336    /// Allows `extern "msp430-interrupt" fn()`.
337    (unstable, abi_msp430_interrupt, "1.16.0", Some(38487)),
338    /// Allows `extern "ptx-*" fn()`.
339    (unstable, abi_ptx, "1.15.0", Some(38788)),
340    /// Allows `extern "riscv-interrupt-m" fn()` and `extern "riscv-interrupt-s" fn()`.
341    (unstable, abi_riscv_interrupt, "1.73.0", Some(111889)),
342    /// Allows `extern "x86-interrupt" fn()`.
343    (unstable, abi_x86_interrupt, "1.17.0", Some(40180)),
344    /// Allows additional const parameter types, such as `[u8; 10]` or user defined types
345    (unstable, adt_const_params, "1.56.0", Some(95174)),
346    /// Allows defining an `#[alloc_error_handler]`.
347    (unstable, alloc_error_handler, "1.29.0", Some(51540)),
348    /// The `apxf` target feature on x86
349    (unstable, apx_target_feature, "1.88.0", Some(139284)),
350    /// Allows inherent and trait methods with arbitrary self types.
351    (unstable, arbitrary_self_types, "1.23.0", Some(44874)),
352    /// Allows inherent and trait methods with arbitrary self types that are raw pointers.
353    (unstable, arbitrary_self_types_pointers, "1.83.0", Some(44874)),
354    /// Target features on arm.
355    (unstable, arm_target_feature, "1.27.0", Some(150246)),
356    /// Enables experimental inline assembly support for additional architectures.
357    (unstable, asm_experimental_arch, "1.58.0", Some(93335)),
358    /// Enables experimental register support in inline assembly.
359    (unstable, asm_experimental_reg, "1.85.0", Some(133416)),
360    /// Allows using `label` operands in inline assembly together with output operands.
361    (unstable, asm_goto_with_outputs, "1.85.0", Some(119364)),
362    /// Allows the `may_unwind` option in inline assembly.
363    (unstable, asm_unwind, "1.58.0", Some(93334)),
364    /// Allows associated type defaults.
365    (unstable, associated_type_defaults, "1.2.0", Some(29661)),
366    /// Allows implementing `AsyncDrop`.
367    (incomplete, async_drop, "1.88.0", Some(126482)),
368    /// Allows async functions to be called from `dyn Trait`.
369    (incomplete, async_fn_in_dyn_trait, "1.85.0", Some(133119)),
370    /// Allows `#[track_caller]` on async functions.
371    (unstable, async_fn_track_caller, "1.73.0", Some(110011)),
372    /// Allows `for await` loops.
373    (unstable, async_for_loop, "1.77.0", Some(118898)),
374    /// Allows `async` trait bound modifier.
375    (unstable, async_trait_bounds, "1.85.0", Some(62290)),
376    /// Allows using Intel AVX10 target features and intrinsics
377    (unstable, avx10_target_feature, "1.88.0", Some(138843)),
378    /// Target features on bpf.
379    (unstable, bpf_target_feature, "1.54.0", Some(150247)),
380    /// Allows using C-variadics.
381    (unstable, c_variadic, "1.34.0", Some(44930)),
382    /// Allows defining c-variadic naked functions with any extern ABI that is allowed
383    /// on c-variadic foreign functions.
384    (unstable, c_variadic_naked_functions, "1.93.0", Some(148767)),
385    /// Allows the use of `#[cfg(contract_checks)` to check if contract checks are enabled.
386    (unstable, cfg_contract_checks, "1.86.0", Some(128044)),
387    /// Allows the use of `#[cfg(overflow_checks)` to check if integer overflow behaviour.
388    (unstable, cfg_overflow_checks, "1.71.0", Some(111466)),
389    /// Provides the relocation model information as cfg entry
390    (unstable, cfg_relocation_model, "1.73.0", Some(114929)),
391    /// Allows the use of `#[cfg(sanitize = "option")]`; set when -Zsanitizer is used.
392    (unstable, cfg_sanitize, "1.41.0", Some(39699)),
393    /// Allows `cfg(sanitizer_cfi_generalize_pointers)` and `cfg(sanitizer_cfi_normalize_integers)`.
394    (unstable, cfg_sanitizer_cfi, "1.77.0", Some(89653)),
395    /// Allows `cfg(target(abi = "..."))`.
396    (unstable, cfg_target_compact, "1.63.0", Some(96901)),
397    /// Allows `cfg(target_has_atomic_load_store = "...")`.
398    (unstable, cfg_target_has_atomic, "1.60.0", Some(94039)),
399    /// Allows `cfg(target_has_atomic_equal_alignment = "...")`.
400    (unstable, cfg_target_has_atomic_equal_alignment, "1.60.0", Some(93822)),
401    /// Allows `cfg(target_thread_local)`.
402    (unstable, cfg_target_thread_local, "1.7.0", Some(29594)),
403    /// Allows the use of `#[cfg(ub_checks)` to check if UB checks are enabled.
404    (unstable, cfg_ub_checks, "1.79.0", Some(123499)),
405    /// Allow conditional compilation depending on rust version
406    (unstable, cfg_version, "1.45.0", Some(64796)),
407    /// Allows to use the `#[cfi_encoding = ""]` attribute.
408    (unstable, cfi_encoding, "1.71.0", Some(89653)),
409    /// Allows `for<...>` on closures and coroutines.
410    (unstable, closure_lifetime_binder, "1.64.0", Some(97362)),
411    /// Allows `#[track_caller]` on closures and coroutines.
412    (unstable, closure_track_caller, "1.57.0", Some(87417)),
413    /// Allows `extern "cmse-nonsecure-entry" fn()`.
414    (unstable, cmse_nonsecure_entry, "1.48.0", Some(75835)),
415    /// Allows `async {}` expressions in const contexts.
416    (unstable, const_async_blocks, "1.53.0", Some(85368)),
417    /// Allows `const { ... }` as a shorthand for `const _: () = const { ... };` for module items.
418    (unstable, const_block_items, "CURRENT_RUSTC_VERSION", Some(149226)),
419    /// Allows `const || {}` closures in const contexts.
420    (incomplete, const_closures, "1.68.0", Some(106003)),
421    /// Allows using `[const] Destruct` bounds and calling drop impls in const contexts.
422    (unstable, const_destruct, "1.85.0", Some(133214)),
423    /// Allows `for _ in _` loops in const contexts.
424    (unstable, const_for, "1.56.0", Some(87575)),
425    /// Be more precise when looking for live drops in a const context.
426    (unstable, const_precise_live_drops, "1.46.0", Some(73255)),
427    /// Allows `impl const Trait for T` syntax.
428    (unstable, const_trait_impl, "1.42.0", Some(143874)),
429    /// Allows the `?` operator in const contexts.
430    (unstable, const_try, "1.56.0", Some(74935)),
431    /// Allows use of contracts attributes.
432    (incomplete, contracts, "1.86.0", Some(128044)),
433    /// Allows access to internal machinery used to implement contracts.
434    (internal, contracts_internals, "1.86.0", Some(128044)),
435    /// Allows coroutines to be cloned.
436    (unstable, coroutine_clone, "1.65.0", Some(95360)),
437    /// Allows defining coroutines.
438    (unstable, coroutines, "1.21.0", Some(43122)),
439    /// Allows function attribute `#[coverage(on/off)]`, to control coverage
440    /// instrumentation of that function.
441    (unstable, coverage_attribute, "1.74.0", Some(84605)),
442    /// Target features on csky.
443    (unstable, csky_target_feature, "1.73.0", Some(150248)),
444    /// Allows non-builtin attributes in inner attribute position.
445    (unstable, custom_inner_attributes, "1.30.0", Some(54726)),
446    /// Allows custom test frameworks with `#![test_runner]` and `#[test_case]`.
447    (unstable, custom_test_frameworks, "1.30.0", Some(50297)),
448    /// Allows declarative macros 2.0 (`macro`).
449    (unstable, decl_macro, "1.17.0", Some(39412)),
450    /// Allows the use of default values on struct definitions and the construction of struct
451    /// literals with the functional update syntax without a base.
452    (unstable, default_field_values, "1.85.0", Some(132162)),
453    /// Allows using `#[deprecated_safe]` to deprecate the safeness of a function or trait
454    (unstable, deprecated_safe, "1.61.0", Some(94978)),
455    /// Allows having using `suggestion` in the `#[deprecated]` attribute.
456    (unstable, deprecated_suggestion, "1.61.0", Some(94785)),
457    /// Allows deref patterns.
458    (incomplete, deref_patterns, "1.79.0", Some(87121)),
459    /// Allows deriving the From trait on single-field structs.
460    (unstable, derive_from, "1.91.0", Some(144889)),
461    /// Allows giving non-const impls custom diagnostic messages if attempted to be used as const
462    (unstable, diagnostic_on_const, "1.93.0", Some(143874)),
463    /// Allows `#[doc(cfg(...))]`.
464    (unstable, doc_cfg, "1.21.0", Some(43781)),
465    /// Allows `#[doc(masked)]`.
466    (unstable, doc_masked, "1.21.0", Some(44027)),
467    /// Allows features to allow target_feature to better interact with traits.
468    (incomplete, effective_target_features, "1.91.0", Some(143352)),
469    /// Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
470    (incomplete, ergonomic_clones, "1.87.0", Some(132290)),
471    /// ermsb target feature on x86.
472    (unstable, ermsb_target_feature, "1.49.0", Some(150249)),
473    /// Allows exhaustive pattern matching on types that contain uninhabited types.
474    (unstable, exhaustive_patterns, "1.13.0", Some(51085)),
475    /// Disallows `extern` without an explicit ABI.
476    (unstable, explicit_extern_abis, "1.88.0", Some(134986)),
477    /// Allows explicit tail calls via `become` expression.
478    (incomplete, explicit_tail_calls, "1.72.0", Some(112788)),
479    /// Allows using `#[export_stable]` which indicates that an item is exportable.
480    (incomplete, export_stable, "1.88.0", Some(139939)),
481    /// Externally implementable items
482    (unstable, extern_item_impls, "1.94.0", Some(125418)),
483    /// Allows defining `extern type`s.
484    (unstable, extern_types, "1.23.0", Some(43467)),
485    /// Allow using 128-bit (quad precision) floating point numbers.
486    (unstable, f128, "1.78.0", Some(116909)),
487    /// Allow using 16-bit (half precision) floating point numbers.
488    (unstable, f16, "1.78.0", Some(116909)),
489    /// Allows the use of `#[ffi_const]` on foreign functions.
490    (unstable, ffi_const, "1.45.0", Some(58328)),
491    /// Allows the use of `#[ffi_pure]` on foreign functions.
492    (unstable, ffi_pure, "1.45.0", Some(58329)),
493    /// Controlling the behavior of fmt::Debug
494    (unstable, fmt_debug, "1.82.0", Some(129709)),
495    /// Allows using `#[align(...)]` on function items
496    (unstable, fn_align, "1.53.0", Some(82232)),
497    /// Support delegating implementation of functions to other already implemented functions.
498    (incomplete, fn_delegation, "1.76.0", Some(118212)),
499    /// Allows impls for the Freeze trait.
500    (internal, freeze_impls, "1.78.0", Some(121675)),
501    /// Frontmatter `---` blocks for use by external tools.
502    (unstable, frontmatter, "1.88.0", Some(136889)),
503    /// Allows defining gen blocks and `gen fn`.
504    (unstable, gen_blocks, "1.75.0", Some(117078)),
505    /// Allows non-trivial generic constants which have to have wfness manually propagated to callers
506    (incomplete, generic_const_exprs, "1.56.0", Some(76560)),
507    /// Allows generic parameters and where-clauses on free & associated const items.
508    (incomplete, generic_const_items, "1.73.0", Some(113521)),
509    /// Allows the type of const generics to depend on generic parameters
510    (incomplete, generic_const_parameter_types, "1.87.0", Some(137626)),
511    /// Allows any generic constants being used as pattern type range ends
512    (incomplete, generic_pattern_types, "1.86.0", Some(136574)),
513    /// Allows registering static items globally, possibly across crates, to iterate over at runtime.
514    (unstable, global_registration, "1.80.0", Some(125119)),
515    /// Allows using guards in patterns.
516    (incomplete, guard_patterns, "1.85.0", Some(129967)),
517    /// Allows using `..=X` as a patterns in slices.
518    (unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
519    /// Target features on hexagon.
520    (unstable, hexagon_target_feature, "1.27.0", Some(150250)),
521    /// Allows `if let` guard in match arms.
522    (unstable, if_let_guard, "1.47.0", Some(51114)),
523    /// Allows `impl Trait` to be used inside associated types (RFC 2515).
524    (unstable, impl_trait_in_assoc_type, "1.70.0", Some(63063)),
525    /// Allows `impl Trait` in bindings (`let`).
526    (unstable, impl_trait_in_bindings, "1.64.0", Some(63065)),
527    /// Allows `impl Trait` as output type in `Fn` traits in return position of functions.
528    (unstable, impl_trait_in_fn_trait_return, "1.64.0", Some(99697)),
529    /// Allows `use` associated functions from traits.
530    (unstable, import_trait_associated_functions, "1.86.0", Some(134691)),
531    /// Allows associated types in inherent impls.
532    (incomplete, inherent_associated_types, "1.52.0", Some(8995)),
533    /// Allows using `pointer` and `reference` in intra-doc links
534    (unstable, intra_doc_pointers, "1.51.0", Some(80896)),
535    /// lahfsahf target feature on x86.
536    (unstable, lahfsahf_target_feature, "1.78.0", Some(150251)),
537    /// Allows setting the threshold for the `large_assignments` lint.
538    (unstable, large_assignments, "1.52.0", Some(83518)),
539    /// Allow to have type alias types for inter-crate use.
540    (incomplete, lazy_type_alias, "1.72.0", Some(112792)),
541    /// Allows using `#[link(kind = "link-arg", name = "...")]`
542    /// to pass custom arguments to the linker.
543    (unstable, link_arg_attribute, "1.76.0", Some(99427)),
544    /// Target features on loongarch.
545    (unstable, loongarch_target_feature, "1.73.0", Some(150252)),
546    /// Allows fused `loop`/`match` for direct intraprocedural jumps.
547    (incomplete, loop_match, "1.90.0", Some(132306)),
548    /// Target features on m68k.
549    (unstable, m68k_target_feature, "1.85.0", Some(134328)),
550    /// Allow `macro_rules!` attribute rules
551    (unstable, macro_attr, "1.91.0", Some(143547)),
552    /// Allow `macro_rules!` derive rules
553    (unstable, macro_derive, "1.91.0", Some(143549)),
554    /// Give access to additional metadata about declarative macro meta-variables.
555    (unstable, macro_metavar_expr, "1.61.0", Some(83527)),
556    /// Provides a way to concatenate identifiers using metavariable expressions.
557    (unstable, macro_metavar_expr_concat, "1.81.0", Some(124225)),
558    /// Allows `#[marker]` on certain traits allowing overlapping implementations.
559    (unstable, marker_trait_attr, "1.30.0", Some(29864)),
560    /// Enables the generic const args MVP (only bare paths, not arbitrary computation).
561    (incomplete, min_generic_const_args, "1.84.0", Some(132980)),
562    /// A minimal, sound subset of specialization intended to be used by the
563    /// standard library until the soundness issues with specialization
564    /// are fixed.
565    (unstable, min_specialization, "1.7.0", Some(31844)),
566    /// Target features on mips.
567    (unstable, mips_target_feature, "1.27.0", Some(150253)),
568    /// Allows qualified paths in struct expressions, struct patterns and tuple struct patterns.
569    (unstable, more_qualified_paths, "1.54.0", Some(86935)),
570    /// The `movrs` target feature on x86.
571    (unstable, movrs_target_feature, "1.88.0", Some(137976)),
572    /// Allows the `multiple_supertrait_upcastable` lint.
573    (unstable, multiple_supertrait_upcastable, "1.69.0", Some(150833)),
574    /// Allows the `#[must_not_suspend]` attribute.
575    (unstable, must_not_suspend, "1.57.0", Some(83310)),
576    /// Allows `mut ref` and `mut ref mut` identifier patterns.
577    (incomplete, mut_ref, "1.79.0", Some(123076)),
578    /// Allows using `#[naked]` on `extern "Rust"` functions.
579    (unstable, naked_functions_rustic_abi, "1.88.0", Some(138997)),
580    /// Allows using `#[target_feature(enable = "...")]` on `#[naked]` on functions.
581    (unstable, naked_functions_target_feature, "1.86.0", Some(138568)),
582    /// Allows specifying the as-needed link modifier
583    (unstable, native_link_modifiers_as_needed, "1.53.0", Some(81490)),
584    /// Allow negative trait implementations.
585    (unstable, negative_impls, "1.44.0", Some(68318)),
586    /// Allows the `!` pattern.
587    (incomplete, never_patterns, "1.76.0", Some(118155)),
588    /// Allows the `!` type. Does not imply 'exhaustive_patterns' (below) any more.
589    (unstable, never_type, "1.13.0", Some(35121)),
590    /// Switch `..` syntax to use the new (`Copy + IntoIterator`) range types.
591    (unstable, new_range, "1.86.0", Some(123741)),
592    /// Allows `#![no_core]`.
593    (unstable, no_core, "1.3.0", Some(29639)),
594    /// Allows using the `non_exhaustive_omitted_patterns` lint.
595    (unstable, non_exhaustive_omitted_patterns_lint, "1.57.0", Some(89554)),
596    /// Allows `for<T>` binders in where-clauses
597    (incomplete, non_lifetime_binders, "1.69.0", Some(108185)),
598    /// Target feaures on nvptx.
599    (unstable, nvptx_target_feature, "1.91.0", Some(150254)),
600    /// Allows using enums in offset_of!
601    (unstable, offset_of_enum, "1.75.0", Some(120141)),
602    /// Allows using fields with slice type in offset_of!
603    (unstable, offset_of_slice, "1.81.0", Some(126151)),
604    /// Allows using `#[optimize(X)]`.
605    (unstable, optimize_attribute, "1.34.0", Some(54882)),
606    /// Allows specifying nop padding on functions for dynamic patching.
607    (unstable, patchable_function_entry, "1.81.0", Some(123115)),
608    /// Experimental features that make `Pin` more ergonomic.
609    (incomplete, pin_ergonomics, "1.83.0", Some(130494)),
610    /// Allows postfix match `expr.match { ... }`
611    (unstable, postfix_match, "1.79.0", Some(121618)),
612    /// Target features on powerpc.
613    (unstable, powerpc_target_feature, "1.27.0", Some(150255)),
614    /// The prfchw target feature on x86.
615    (unstable, prfchw_target_feature, "1.78.0", Some(150256)),
616    /// Allows macro attributes on expressions, statements and non-inline modules.
617    (unstable, proc_macro_hygiene, "1.30.0", Some(54727)),
618    /// Allows the use of raw-dylibs on ELF platforms
619    (incomplete, raw_dylib_elf, "1.87.0", Some(135694)),
620    (unstable, reborrow, "1.91.0", Some(145612)),
621    /// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024.
622    (incomplete, ref_pat_eat_one_layer_2024, "1.79.0", Some(123076)),
623    /// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024—structural variant
624    (incomplete, ref_pat_eat_one_layer_2024_structural, "1.81.0", Some(123076)),
625    /// Allows using the `#[register_tool]` attribute.
626    (unstable, register_tool, "1.41.0", Some(66079)),
627    /// Allows `repr(simd)` and importing the various simd intrinsics.
628    (unstable, repr_simd, "1.4.0", Some(27731)),
629    /// Allows bounding the return type of AFIT/RPITIT.
630    (unstable, return_type_notation, "1.70.0", Some(109417)),
631    /// Target features on riscv.
632    (unstable, riscv_target_feature, "1.45.0", Some(150257)),
633    /// The rtm target feature on x86.
634    (unstable, rtm_target_feature, "1.35.0", Some(150258)),
635    /// Allows `extern "rust-cold"`.
636    (unstable, rust_cold_cc, "1.63.0", Some(97544)),
637    /// Allows `extern "rust-preserve-none"`.
638    (unstable, rust_preserve_none_cc, "CURRENT_RUSTC_VERSION", Some(151401)),
639    /// Target features on s390x.
640    (unstable, s390x_target_feature, "1.82.0", Some(150259)),
641    /// Allows the use of the `sanitize` attribute.
642    (unstable, sanitize, "1.91.0", Some(39699)),
643    /// Allows the use of SIMD types in functions declared in `extern` blocks.
644    (unstable, simd_ffi, "1.0.0", Some(27731)),
645    /// Target features on sparc.
646    (unstable, sparc_target_feature, "1.84.0", Some(132783)),
647    /// Allows specialization of implementations (RFC 1210).
648    (incomplete, specialization, "1.7.0", Some(31844)),
649    /// Allows using `#[rustc_align_static(...)]` on static items.
650    (unstable, static_align, "1.91.0", Some(146177)),
651    /// Allows attributes on expressions and non-item statements.
652    (unstable, stmt_expr_attributes, "1.6.0", Some(15701)),
653    /// Allows lints part of the strict provenance effort.
654    (unstable, strict_provenance_lints, "1.61.0", Some(130351)),
655    /// Allows `super let` statements.
656    (unstable, super_let, "1.88.0", Some(139076)),
657    /// Allows subtrait items to shadow supertrait items.
658    (unstable, supertrait_item_shadowing, "1.86.0", Some(89151)),
659    /// Allows the use of target_feature when a function is marked inline(always).
660    (unstable, target_feature_inline_always, "1.91.0", Some(145574)),
661    /// Allows using `#[thread_local]` on `static` items.
662    (unstable, thread_local, "1.0.0", Some(29594)),
663    /// Allows defining `trait X = A + B;` alias items.
664    (unstable, trait_alias, "1.24.0", Some(41517)),
665    /// Allows for transmuting between arrays with sizes that contain generic consts.
666    (unstable, transmute_generic_consts, "1.70.0", Some(109929)),
667    /// Allows #[repr(transparent)] on unions (RFC 2645).
668    (unstable, transparent_unions, "1.37.0", Some(60405)),
669    /// Allows inconsistent bounds in where clauses.
670    (unstable, trivial_bounds, "1.28.0", Some(48214)),
671    /// Allows using `try {...}` expressions.
672    (unstable, try_blocks, "1.29.0", Some(31436)),
673    /// Allows using `try bikeshed TargetType {...}` expressions.
674    (unstable, try_blocks_heterogeneous, "1.94.0", Some(149488)),
675    /// Allows `impl Trait` to be used inside type aliases (RFC 2515).
676    (unstable, type_alias_impl_trait, "1.38.0", Some(63063)),
677    /// Allows creation of instances of a struct by moving fields that have
678    /// not changed from prior instances of the same struct (RFC #2528)
679    (unstable, type_changing_struct_update, "1.58.0", Some(86555)),
680    /// Allows using `unsafe<'a> &'a T` unsafe binder types.
681    (incomplete, unsafe_binders, "1.85.0", Some(130516)),
682    /// Allows declaring fields `unsafe`.
683    (incomplete, unsafe_fields, "1.85.0", Some(132922)),
684    /// Allows const generic parameters to be defined with types that
685    /// are not `Sized`, e.g. `fn foo<const N: [u8]>() {`.
686    (incomplete, unsized_const_params, "1.82.0", Some(95174)),
687    /// Allows unsized fn parameters.
688    (internal, unsized_fn_params, "1.49.0", Some(48055)),
689    /// Allows using the `#[used(linker)]` (or `#[used(compiler)]`) attribute.
690    (unstable, used_with_arg, "1.60.0", Some(93798)),
691    /// Target features on wasm.
692    (unstable, wasm_target_feature, "1.30.0", Some(150260)),
693    /// Allows use of attributes in `where` clauses.
694    (unstable, where_clause_attrs, "1.87.0", Some(115590)),
695    /// Allows use of x86 `AMX` target-feature attributes and intrinsics
696    (unstable, x86_amx_intrinsics, "1.81.0", Some(126622)),
697    /// The x87 target feature on x86.
698    (unstable, x87_target_feature, "1.85.0", Some(150261)),
699    /// Allows use of the `xop` target-feature
700    (unstable, xop_target_feature, "1.81.0", Some(127208)),
701    /// Allows `do yeet` expressions
702    (unstable, yeet_expr, "1.62.0", Some(96373)),
703    (unstable, yield_expr, "1.87.0", Some(43122)),
704    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
705    // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
706    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
707
708    // -------------------------------------------------------------------------
709    // feature-group-end: actual feature gates
710    // -------------------------------------------------------------------------
711);
712
713impl Features {
714    pub fn dump_feature_usage_metrics(
715        &self,
716        metrics_path: PathBuf,
717    ) -> Result<(), Box<dyn std::error::Error>> {
718        #[derive(#[doc(hidden)]
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications,
clippy :: absolute_paths,)]
const _: () =
    {
        #[allow(unused_extern_crates, clippy :: useless_attribute)]
        extern crate serde as _serde;
        ;
        #[automatically_derived]
        impl _serde::Serialize for LibFeature {
            fn serialize<__S>(&self, __serializer: __S)
                -> _serde::__private228::Result<__S::Ok, __S::Error> where
                __S: _serde::Serializer {
                let mut __serde_state =
                    _serde::Serializer::serialize_struct(__serializer,
                            "LibFeature", false as usize + 1 + 1)?;
                _serde::ser::SerializeStruct::serialize_field(&mut __serde_state,
                        "timestamp", &self.timestamp)?;
                _serde::ser::SerializeStruct::serialize_field(&mut __serde_state,
                        "symbol", &self.symbol)?;
                _serde::ser::SerializeStruct::end(__serde_state)
            }
        }
    };serde::Serialize)]
719        struct LibFeature {
720            timestamp: u128,
721            symbol: String,
722        }
723
724        #[derive(#[doc(hidden)]
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications,
clippy :: absolute_paths,)]
const _: () =
    {
        #[allow(unused_extern_crates, clippy :: useless_attribute)]
        extern crate serde as _serde;
        ;
        #[automatically_derived]
        impl _serde::Serialize for LangFeature {
            fn serialize<__S>(&self, __serializer: __S)
                -> _serde::__private228::Result<__S::Ok, __S::Error> where
                __S: _serde::Serializer {
                let mut __serde_state =
                    _serde::Serializer::serialize_struct(__serializer,
                            "LangFeature", false as usize + 1 + 1 + 1)?;
                _serde::ser::SerializeStruct::serialize_field(&mut __serde_state,
                        "timestamp", &self.timestamp)?;
                _serde::ser::SerializeStruct::serialize_field(&mut __serde_state,
                        "symbol", &self.symbol)?;
                _serde::ser::SerializeStruct::serialize_field(&mut __serde_state,
                        "since", &self.since)?;
                _serde::ser::SerializeStruct::end(__serde_state)
            }
        }
    };serde::Serialize)]
725        struct LangFeature {
726            timestamp: u128,
727            symbol: String,
728            since: Option<String>,
729        }
730
731        #[derive(#[doc(hidden)]
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications,
clippy :: absolute_paths,)]
const _: () =
    {
        #[allow(unused_extern_crates, clippy :: useless_attribute)]
        extern crate serde as _serde;
        ;
        #[automatically_derived]
        impl _serde::Serialize for FeatureUsage {
            fn serialize<__S>(&self, __serializer: __S)
                -> _serde::__private228::Result<__S::Ok, __S::Error> where
                __S: _serde::Serializer {
                let mut __serde_state =
                    _serde::Serializer::serialize_struct(__serializer,
                            "FeatureUsage", false as usize + 1 + 1)?;
                _serde::ser::SerializeStruct::serialize_field(&mut __serde_state,
                        "lib_features", &self.lib_features)?;
                _serde::ser::SerializeStruct::serialize_field(&mut __serde_state,
                        "lang_features", &self.lang_features)?;
                _serde::ser::SerializeStruct::end(__serde_state)
            }
        }
    };serde::Serialize)]
732        struct FeatureUsage {
733            lib_features: Vec<LibFeature>,
734            lang_features: Vec<LangFeature>,
735        }
736
737        let metrics_file = std::fs::File::create(metrics_path)?;
738        let metrics_file = std::io::BufWriter::new(metrics_file);
739
740        let now = || {
741            SystemTime::now()
742                .duration_since(UNIX_EPOCH)
743                .expect("system time should always be greater than the unix epoch")
744                .as_nanos()
745        };
746
747        let lib_features = self
748            .enabled_lib_features
749            .iter()
750            .map(|EnabledLibFeature { gate_name, .. }| LibFeature {
751                symbol: gate_name.to_string(),
752                timestamp: now(),
753            })
754            .collect();
755
756        let lang_features = self
757            .enabled_lang_features
758            .iter()
759            .map(|EnabledLangFeature { gate_name, stable_since, .. }| LangFeature {
760                symbol: gate_name.to_string(),
761                since: stable_since.map(|since| since.to_string()),
762                timestamp: now(),
763            })
764            .collect();
765
766        let feature_usage = FeatureUsage { lib_features, lang_features };
767
768        serde_json::to_writer(metrics_file, &feature_usage)?;
769
770        Ok(())
771    }
772}
773
774/// Some features are not allowed to be used together at the same time, if
775/// the two are present, produce an error.
776pub const INCOMPATIBLE_FEATURES: &[(Symbol, Symbol)] = &[
777    // Experimental match ergonomics rulesets are incompatible with each other, to simplify the
778    // boolean logic required to tell which typing rules to use.
779    (sym::ref_pat_eat_one_layer_2024, sym::ref_pat_eat_one_layer_2024_structural),
780];