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