Skip to main content

rustc_feature/
accepted.rs

1//! List of the accepted feature gates.
2
3use rustc_span::sym;
4
5use super::{Feature, to_nonzero};
6
7macro_rules! declare_features {
8    ($(
9        $(#[doc = $doc:tt])* (accepted, $feature:ident, $ver:expr, $issue:expr),
10    )+) => {
11        /// Formerly unstable features that have now been accepted (stabilized).
12        pub static ACCEPTED_LANG_FEATURES: &[Feature] = &[
13            $(Feature {
14                name: sym::$feature,
15                since: $ver,
16                issue: to_nonzero($issue),
17            }),+
18        ];
19    }
20}
21
22#[rustfmt::skip]
23/// Formerly unstable features that have now been accepted (stabilized).
pub static ACCEPTED_LANG_FEATURES: &[Feature] =
    &[Feature {
                    name: sym::test_accepted_feature,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::aarch64_target_feature,
                    since: "1.61.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::abi_efiapi,
                    since: "1.68.0",
                    issue: to_nonzero(Some(65815)),
                },
                Feature {
                    name: sym::abi_sysv64,
                    since: "1.24.0",
                    issue: to_nonzero(Some(36167)),
                },
                Feature {
                    name: sym::abi_thiscall,
                    since: "1.73.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::adx_target_feature,
                    since: "1.61.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::arbitrary_enum_discriminant,
                    since: "1.66.0",
                    issue: to_nonzero(Some(60553)),
                },
                Feature {
                    name: sym::asm_cfg,
                    since: "1.93.0",
                    issue: to_nonzero(Some(140364)),
                },
                Feature {
                    name: sym::asm_const,
                    since: "1.82.0",
                    issue: to_nonzero(Some(93332)),
                },
                Feature {
                    name: sym::asm_goto,
                    since: "1.87.0",
                    issue: to_nonzero(Some(119364)),
                },
                Feature {
                    name: sym::asm_sym,
                    since: "1.66.0",
                    issue: to_nonzero(Some(93333)),
                },
                Feature {
                    name: sym::associated_consts,
                    since: "1.20.0",
                    issue: to_nonzero(Some(29646)),
                },
                Feature {
                    name: sym::associated_type_bounds,
                    since: "1.79.0",
                    issue: to_nonzero(Some(52662)),
                },
                Feature {
                    name: sym::associated_types,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::async_await,
                    since: "1.39.0",
                    issue: to_nonzero(Some(50547)),
                },
                Feature {
                    name: sym::async_closure,
                    since: "1.85.0",
                    issue: to_nonzero(Some(62290)),
                },
                Feature {
                    name: sym::async_fn_in_trait,
                    since: "1.75.0",
                    issue: to_nonzero(Some(91611)),
                },
                Feature {
                    name: sym::attr_literals,
                    since: "1.30.0",
                    issue: to_nonzero(Some(34981)),
                },
                Feature {
                    name: sym::augmented_assignments,
                    since: "1.8.0",
                    issue: to_nonzero(Some(28235)),
                },
                Feature {
                    name: sym::avx512_target_feature,
                    since: "1.89.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::bind_by_move_pattern_guards,
                    since: "1.39.0",
                    issue: to_nonzero(Some(15287)),
                },
                Feature {
                    name: sym::bindings_after_at,
                    since: "1.56.0",
                    issue: to_nonzero(Some(65490)),
                },
                Feature {
                    name: sym::braced_empty_structs,
                    since: "1.8.0",
                    issue: to_nonzero(Some(29720)),
                },
                Feature {
                    name: sym::c_str_literals,
                    since: "1.77.0",
                    issue: to_nonzero(Some(105723)),
                },
                Feature {
                    name: sym::c_unwind,
                    since: "1.81.0",
                    issue: to_nonzero(Some(74990)),
                },
                Feature {
                    name: sym::cfg_attr_multi,
                    since: "1.33.0",
                    issue: to_nonzero(Some(54881)),
                },
                Feature {
                    name: sym::cfg_boolean_literals,
                    since: "1.88.0",
                    issue: to_nonzero(Some(131204)),
                },
                Feature {
                    name: sym::cfg_doctest,
                    since: "1.40.0",
                    issue: to_nonzero(Some(62210)),
                },
                Feature {
                    name: sym::cfg_panic,
                    since: "1.60.0",
                    issue: to_nonzero(Some(77443)),
                },
                Feature {
                    name: sym::cfg_select,
                    since: "1.95.0",
                    issue: to_nonzero(Some(115585)),
                },
                Feature {
                    name: sym::cfg_target_abi,
                    since: "1.78.0",
                    issue: to_nonzero(Some(80970)),
                },
                Feature {
                    name: sym::cfg_target_feature,
                    since: "1.27.0",
                    issue: to_nonzero(Some(29717)),
                },
                Feature {
                    name: sym::cfg_target_vendor,
                    since: "1.33.0",
                    issue: to_nonzero(Some(29718)),
                },
                Feature {
                    name: sym::clone_closures,
                    since: "1.26.0",
                    issue: to_nonzero(Some(44490)),
                },
                Feature {
                    name: sym::closure_to_fn_coercion,
                    since: "1.19.0",
                    issue: to_nonzero(Some(39817)),
                },
                Feature {
                    name: sym::cmpxchg16b_target_feature,
                    since: "1.69.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::collapse_debuginfo,
                    since: "1.79.0",
                    issue: to_nonzero(Some(100758)),
                },
                Feature {
                    name: sym::compile_error,
                    since: "1.20.0",
                    issue: to_nonzero(Some(40872)),
                },
                Feature {
                    name: sym::conservative_impl_trait,
                    since: "1.26.0",
                    issue: to_nonzero(Some(34511)),
                },
                Feature {
                    name: sym::const_constructor,
                    since: "1.40.0",
                    issue: to_nonzero(Some(61456)),
                },
                Feature {
                    name: sym::const_extern_fn,
                    since: "1.83.0",
                    issue: to_nonzero(Some(64926)),
                },
                Feature {
                    name: sym::const_fn_floating_point_arithmetic,
                    since: "1.82.0",
                    issue: to_nonzero(Some(57241)),
                },
                Feature {
                    name: sym::const_fn_fn_ptr_basics,
                    since: "1.61.0",
                    issue: to_nonzero(Some(57563)),
                },
                Feature {
                    name: sym::const_fn_trait_bound,
                    since: "1.61.0",
                    issue: to_nonzero(Some(93706)),
                },
                Feature {
                    name: sym::const_fn_transmute,
                    since: "1.56.0",
                    issue: to_nonzero(Some(53605)),
                },
                Feature {
                    name: sym::const_fn_union,
                    since: "1.56.0",
                    issue: to_nonzero(Some(51909)),
                },
                Feature {
                    name: sym::const_fn_unsize,
                    since: "1.54.0",
                    issue: to_nonzero(Some(64992)),
                },
                Feature {
                    name: sym::const_generics_defaults,
                    since: "1.59.0",
                    issue: to_nonzero(Some(44580)),
                },
                Feature {
                    name: sym::const_if_match,
                    since: "1.46.0",
                    issue: to_nonzero(Some(49146)),
                },
                Feature {
                    name: sym::const_impl_trait,
                    since: "1.61.0",
                    issue: to_nonzero(Some(77463)),
                },
                Feature {
                    name: sym::const_indexing,
                    since: "1.26.0",
                    issue: to_nonzero(Some(29947)),
                },
                Feature {
                    name: sym::const_let,
                    since: "1.33.0",
                    issue: to_nonzero(Some(48821)),
                },
                Feature {
                    name: sym::const_loop,
                    since: "1.46.0",
                    issue: to_nonzero(Some(52000)),
                },
                Feature {
                    name: sym::const_mut_refs,
                    since: "1.83.0",
                    issue: to_nonzero(Some(57349)),
                },
                Feature {
                    name: sym::const_panic,
                    since: "1.57.0",
                    issue: to_nonzero(Some(51999)),
                },
                Feature {
                    name: sym::const_raw_ptr_deref,
                    since: "1.58.0",
                    issue: to_nonzero(Some(51911)),
                },
                Feature {
                    name: sym::const_refs_to_cell,
                    since: "1.83.0",
                    issue: to_nonzero(Some(80384)),
                },
                Feature {
                    name: sym::const_refs_to_static,
                    since: "1.83.0",
                    issue: to_nonzero(Some(119618)),
                },
                Feature {
                    name: sym::copy_closures,
                    since: "1.26.0",
                    issue: to_nonzero(Some(44490)),
                },
                Feature {
                    name: sym::crate_in_paths,
                    since: "1.30.0",
                    issue: to_nonzero(Some(45477)),
                },
                Feature {
                    name: sym::custom_code_classes_in_docs,
                    since: "1.80.0",
                    issue: to_nonzero(Some(79483)),
                },
                Feature {
                    name: sym::debugger_visualizer,
                    since: "1.71.0",
                    issue: to_nonzero(Some(95939)),
                },
                Feature {
                    name: sym::default_alloc_error_handler,
                    since: "1.68.0",
                    issue: to_nonzero(Some(66741)),
                },
                Feature {
                    name: sym::default_type_params,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::deprecated,
                    since: "1.9.0",
                    issue: to_nonzero(Some(29935)),
                },
                Feature {
                    name: sym::derive_default_enum,
                    since: "1.62.0",
                    issue: to_nonzero(Some(86985)),
                },
                Feature {
                    name: sym::destructuring_assignment,
                    since: "1.59.0",
                    issue: to_nonzero(Some(71126)),
                },
                Feature {
                    name: sym::diagnostic_namespace,
                    since: "1.78.0",
                    issue: to_nonzero(Some(111996)),
                },
                Feature {
                    name: sym::do_not_recommend,
                    since: "1.85.0",
                    issue: to_nonzero(Some(51992)),
                },
                Feature {
                    name: sym::doc_alias,
                    since: "1.48.0",
                    issue: to_nonzero(Some(50146)),
                },
                Feature {
                    name: sym::dotdot_in_tuple_patterns,
                    since: "1.14.0",
                    issue: to_nonzero(Some(33627)),
                },
                Feature {
                    name: sym::dotdoteq_in_patterns,
                    since: "1.26.0",
                    issue: to_nonzero(Some(28237)),
                },
                Feature {
                    name: sym::drop_types_in_const,
                    since: "1.22.0",
                    issue: to_nonzero(Some(33156)),
                },
                Feature {
                    name: sym::dyn_trait,
                    since: "1.27.0",
                    issue: to_nonzero(Some(44662)),
                },
                Feature {
                    name: sym::exclusive_range_pattern,
                    since: "1.80.0",
                    issue: to_nonzero(Some(37854)),
                },
                Feature {
                    name: sym::exhaustive_integer_patterns,
                    since: "1.33.0",
                    issue: to_nonzero(Some(50907)),
                },
                Feature {
                    name: sym::explicit_generic_args_with_impl_trait,
                    since: "1.63.0",
                    issue: to_nonzero(Some(83701)),
                },
                Feature {
                    name: sym::expr_fragment_specifier_2024,
                    since: "1.83.0",
                    issue: to_nonzero(Some(123742)),
                },
                Feature {
                    name: sym::extended_key_value_attributes,
                    since: "1.54.0",
                    issue: to_nonzero(Some(78835)),
                },
                Feature {
                    name: sym::extended_varargs_abi_support,
                    since: "1.91.0",
                    issue: to_nonzero(Some(100189)),
                },
                Feature {
                    name: sym::extern_absolute_paths,
                    since: "1.30.0",
                    issue: to_nonzero(Some(44660)),
                },
                Feature {
                    name: sym::extern_crate_item_prelude,
                    since: "1.31.0",
                    issue: to_nonzero(Some(55599)),
                },
                Feature {
                    name: sym::extern_crate_self,
                    since: "1.34.0",
                    issue: to_nonzero(Some(56409)),
                },
                Feature {
                    name: sym::extern_prelude,
                    since: "1.30.0",
                    issue: to_nonzero(Some(44660)),
                },
                Feature {
                    name: sym::extern_system_varargs,
                    since: "1.93.0",
                    issue: to_nonzero(Some(136946)),
                },
                Feature {
                    name: sym::f16c_target_feature,
                    since: "1.68.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::field_init_shorthand,
                    since: "1.17.0",
                    issue: to_nonzero(Some(37340)),
                },
                Feature {
                    name: sym::fn_must_use,
                    since: "1.27.0",
                    issue: to_nonzero(Some(43302)),
                },
                Feature {
                    name: sym::format_args_capture,
                    since: "1.58.0",
                    issue: to_nonzero(Some(67984)),
                },
                Feature {
                    name: sym::generic_arg_infer,
                    since: "1.89.0",
                    issue: to_nonzero(Some(85077)),
                },
                Feature {
                    name: sym::generic_associated_types,
                    since: "1.65.0",
                    issue: to_nonzero(Some(44265)),
                },
                Feature {
                    name: sym::generic_param_attrs,
                    since: "1.27.0",
                    issue: to_nonzero(Some(48848)),
                },
                Feature {
                    name: sym::global_allocator,
                    since: "1.28.0",
                    issue: to_nonzero(Some(27389)),
                },
                Feature {
                    name: sym::globs,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::half_open_range_patterns,
                    since: "1.66.0",
                    issue: to_nonzero(Some(67264)),
                },
                Feature {
                    name: sym::i128_type,
                    since: "1.26.0",
                    issue: to_nonzero(Some(35118)),
                },
                Feature {
                    name: sym::if_let,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::if_let_guard,
                    since: "1.95.0",
                    issue: to_nonzero(Some(51114)),
                },
                Feature {
                    name: sym::if_let_rescope,
                    since: "1.84.0",
                    issue: to_nonzero(Some(124085)),
                },
                Feature {
                    name: sym::if_while_or_patterns,
                    since: "1.33.0",
                    issue: to_nonzero(Some(48215)),
                },
                Feature {
                    name: sym::impl_header_lifetime_elision,
                    since: "1.31.0",
                    issue: to_nonzero(Some(15872)),
                },
                Feature {
                    name: sym::impl_trait_projections,
                    since: "1.74.0",
                    issue: to_nonzero(Some(103532)),
                },
                Feature {
                    name: sym::imported_main,
                    since: "1.79.0",
                    issue: to_nonzero(Some(28937)),
                },
                Feature {
                    name: sym::inclusive_range_syntax,
                    since: "1.26.0",
                    issue: to_nonzero(Some(28237)),
                },
                Feature {
                    name: sym::infer_outlives_requirements,
                    since: "1.30.0",
                    issue: to_nonzero(Some(44493)),
                },
                Feature {
                    name: sym::inline_const,
                    since: "1.79.0",
                    issue: to_nonzero(Some(76001)),
                },
                Feature {
                    name: sym::irrefutable_let_patterns,
                    since: "1.33.0",
                    issue: to_nonzero(Some(44495)),
                },
                Feature {
                    name: sym::isa_attribute,
                    since: "1.67.0",
                    issue: to_nonzero(Some(74727)),
                },
                Feature {
                    name: sym::item_like_imports,
                    since: "1.15.0",
                    issue: to_nonzero(Some(35120)),
                },
                Feature {
                    name: sym::keylocker_x86,
                    since: "1.89.0",
                    issue: to_nonzero(Some(134813)),
                },
                Feature {
                    name: sym::label_break_value,
                    since: "1.65.0",
                    issue: to_nonzero(Some(48594)),
                },
                Feature {
                    name: sym::let_chains,
                    since: "1.88.0",
                    issue: to_nonzero(Some(53667)),
                },
                Feature {
                    name: sym::let_else,
                    since: "1.65.0",
                    issue: to_nonzero(Some(87335)),
                },
                Feature {
                    name: sym::lint_reasons,
                    since: "1.81.0",
                    issue: to_nonzero(Some(54503)),
                },
                Feature {
                    name: sym::loop_break_value,
                    since: "1.19.0",
                    issue: to_nonzero(Some(37339)),
                },
                Feature {
                    name: sym::macro_at_most_once_rep,
                    since: "1.32.0",
                    issue: to_nonzero(Some(48075)),
                },
                Feature {
                    name: sym::macro_attributes_in_derive_output,
                    since: "1.57.0",
                    issue: to_nonzero(Some(81119)),
                },
                Feature {
                    name: sym::macro_lifetime_matcher,
                    since: "1.27.0",
                    issue: to_nonzero(Some(34303)),
                },
                Feature {
                    name: sym::macro_literal_matcher,
                    since: "1.32.0",
                    issue: to_nonzero(Some(35625)),
                },
                Feature {
                    name: sym::macro_rules,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::macro_vis_matcher,
                    since: "1.30.0",
                    issue: to_nonzero(Some(41022)),
                },
                Feature {
                    name: sym::macros_in_extern,
                    since: "1.40.0",
                    issue: to_nonzero(Some(49476)),
                },
                Feature {
                    name: sym::match_beginning_vert,
                    since: "1.25.0",
                    issue: to_nonzero(Some(44101)),
                },
                Feature {
                    name: sym::match_default_bindings,
                    since: "1.26.0",
                    issue: to_nonzero(Some(42640)),
                },
                Feature {
                    name: sym::member_constraints,
                    since: "1.54.0",
                    issue: to_nonzero(Some(61997)),
                },
                Feature {
                    name: sym::min_const_fn,
                    since: "1.31.0",
                    issue: to_nonzero(Some(53555)),
                },
                Feature {
                    name: sym::min_const_generics,
                    since: "1.51.0",
                    issue: to_nonzero(Some(74878)),
                },
                Feature {
                    name: sym::min_const_unsafe_fn,
                    since: "1.33.0",
                    issue: to_nonzero(Some(55607)),
                },
                Feature {
                    name: sym::min_exhaustive_patterns,
                    since: "1.82.0",
                    issue: to_nonzero(Some(119612)),
                },
                Feature {
                    name: sym::more_struct_aliases,
                    since: "1.16.0",
                    issue: to_nonzero(Some(37544)),
                },
                Feature {
                    name: sym::movbe_target_feature,
                    since: "1.70.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::move_ref_pattern,
                    since: "1.49.0",
                    issue: to_nonzero(Some(68354)),
                },
                Feature {
                    name: sym::naked_functions,
                    since: "1.88.0",
                    issue: to_nonzero(Some(90957)),
                },
                Feature {
                    name: sym::native_link_modifiers,
                    since: "1.61.0",
                    issue: to_nonzero(Some(81490)),
                },
                Feature {
                    name: sym::native_link_modifiers_bundle,
                    since: "1.63.0",
                    issue: to_nonzero(Some(81490)),
                },
                Feature {
                    name: sym::native_link_modifiers_verbatim,
                    since: "1.67.0",
                    issue: to_nonzero(Some(81490)),
                },
                Feature {
                    name: sym::native_link_modifiers_whole_archive,
                    since: "1.61.0",
                    issue: to_nonzero(Some(81490)),
                },
                Feature {
                    name: sym::nll,
                    since: "1.63.0",
                    issue: to_nonzero(Some(43234)),
                },
                Feature {
                    name: sym::no_std,
                    since: "1.6.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::non_ascii_idents,
                    since: "1.53.0",
                    issue: to_nonzero(Some(55467)),
                },
                Feature {
                    name: sym::non_exhaustive,
                    since: "1.40.0",
                    issue: to_nonzero(Some(44109)),
                },
                Feature {
                    name: sym::non_modrs_mods,
                    since: "1.30.0",
                    issue: to_nonzero(Some(44660)),
                },
                Feature {
                    name: sym::offset_of_nested,
                    since: "1.82.0",
                    issue: to_nonzero(Some(120140)),
                },
                Feature {
                    name: sym::or_patterns,
                    since: "1.53.0",
                    issue: to_nonzero(Some(54883)),
                },
                Feature {
                    name: sym::packed_bundled_libs,
                    since: "1.74.0",
                    issue: to_nonzero(Some(108081)),
                },
                Feature {
                    name: sym::panic_handler,
                    since: "1.30.0",
                    issue: to_nonzero(Some(44489)),
                },
                Feature {
                    name: sym::param_attrs,
                    since: "1.39.0",
                    issue: to_nonzero(Some(60406)),
                },
                Feature {
                    name: sym::pattern_parentheses,
                    since: "1.31.0",
                    issue: to_nonzero(Some(51087)),
                },
                Feature {
                    name: sym::precise_capturing,
                    since: "1.82.0",
                    issue: to_nonzero(Some(123432)),
                },
                Feature {
                    name: sym::precise_capturing_in_traits,
                    since: "1.87.0",
                    issue: to_nonzero(Some(130044)),
                },
                Feature {
                    name: sym::proc_macro,
                    since: "1.29.0",
                    issue: to_nonzero(Some(38356)),
                },
                Feature {
                    name: sym::proc_macro_path_invoc,
                    since: "1.30.0",
                    issue: to_nonzero(Some(38356)),
                },
                Feature {
                    name: sym::pub_restricted,
                    since: "1.18.0",
                    issue: to_nonzero(Some(32409)),
                },
                Feature {
                    name: sym::question_mark,
                    since: "1.13.0",
                    issue: to_nonzero(Some(31436)),
                },
                Feature {
                    name: sym::raw_dylib,
                    since: "1.71.0",
                    issue: to_nonzero(Some(58713)),
                },
                Feature {
                    name: sym::raw_identifiers,
                    since: "1.30.0",
                    issue: to_nonzero(Some(48589)),
                },
                Feature {
                    name: sym::raw_ref_op,
                    since: "1.82.0",
                    issue: to_nonzero(Some(64490)),
                },
                Feature {
                    name: sym::re_rebalance_coherence,
                    since: "1.41.0",
                    issue: to_nonzero(Some(55437)),
                },
                Feature {
                    name: sym::relaxed_adts,
                    since: "1.19.0",
                    issue: to_nonzero(Some(35626)),
                },
                Feature {
                    name: sym::relaxed_struct_unsize,
                    since: "1.58.0",
                    issue: to_nonzero(Some(81793)),
                },
                Feature {
                    name: sym::repr128,
                    since: "1.89.0",
                    issue: to_nonzero(Some(56071)),
                },
                Feature {
                    name: sym::repr_align,
                    since: "1.25.0",
                    issue: to_nonzero(Some(33626)),
                },
                Feature {
                    name: sym::repr_align_enum,
                    since: "1.37.0",
                    issue: to_nonzero(Some(57996)),
                },
                Feature {
                    name: sym::repr_packed,
                    since: "1.33.0",
                    issue: to_nonzero(Some(33158)),
                },
                Feature {
                    name: sym::repr_transparent,
                    since: "1.28.0",
                    issue: to_nonzero(Some(43036)),
                },
                Feature {
                    name: sym::result_ffi_guarantees,
                    since: "1.84.0",
                    issue: to_nonzero(Some(110503)),
                },
                Feature {
                    name: sym::return_position_impl_trait_in_trait,
                    since: "1.75.0",
                    issue: to_nonzero(Some(91611)),
                },
                Feature {
                    name: sym::rvalue_static_promotion,
                    since: "1.21.0",
                    issue: to_nonzero(Some(38865)),
                },
                Feature {
                    name: sym::s390x_target_feature_vector,
                    since: "1.93.0",
                    issue: to_nonzero(Some(145649)),
                },
                Feature {
                    name: sym::self_in_typedefs,
                    since: "1.32.0",
                    issue: to_nonzero(Some(49303)),
                },
                Feature {
                    name: sym::self_struct_ctor,
                    since: "1.32.0",
                    issue: to_nonzero(Some(51994)),
                },
                Feature {
                    name: sym::sha512_sm_x86,
                    since: "1.89.0",
                    issue: to_nonzero(Some(126624)),
                },
                Feature {
                    name: sym::shorter_tail_lifetimes,
                    since: "1.84.0",
                    issue: to_nonzero(Some(123739)),
                },
                Feature {
                    name: sym::slice_patterns,
                    since: "1.42.0",
                    issue: to_nonzero(Some(62254)),
                },
                Feature {
                    name: sym::slicing_syntax,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::sse4a_target_feature,
                    since: "1.91.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::static_in_const,
                    since: "1.17.0",
                    issue: to_nonzero(Some(35897)),
                },
                Feature {
                    name: sym::static_recursion,
                    since: "1.17.0",
                    issue: to_nonzero(Some(29719)),
                },
                Feature {
                    name: sym::struct_field_attributes,
                    since: "1.20.0",
                    issue: to_nonzero(Some(38814)),
                },
                Feature {
                    name: sym::struct_variant,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::target_feature,
                    since: "1.27.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::target_feature_11,
                    since: "1.86.0",
                    issue: to_nonzero(Some(69098)),
                },
                Feature {
                    name: sym::tbm_target_feature,
                    since: "1.91.0",
                    issue: to_nonzero(Some(44839)),
                },
                Feature {
                    name: sym::termination_trait,
                    since: "1.26.0",
                    issue: to_nonzero(Some(43301)),
                },
                Feature {
                    name: sym::termination_trait_test,
                    since: "1.27.0",
                    issue: to_nonzero(Some(48854)),
                },
                Feature {
                    name: sym::tool_attributes,
                    since: "1.30.0",
                    issue: to_nonzero(Some(44690)),
                },
                Feature {
                    name: sym::tool_lints,
                    since: "1.31.0",
                    issue: to_nonzero(Some(44690)),
                },
                Feature {
                    name: sym::track_caller,
                    since: "1.46.0",
                    issue: to_nonzero(Some(47809)),
                },
                Feature {
                    name: sym::trait_upcasting,
                    since: "1.86.0",
                    issue: to_nonzero(Some(65991)),
                },
                Feature {
                    name: sym::transparent_enums,
                    since: "1.42.0",
                    issue: to_nonzero(Some(60405)),
                },
                Feature {
                    name: sym::tuple_indexing,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::type_alias_enum_variants,
                    since: "1.37.0",
                    issue: to_nonzero(Some(49683)),
                },
                Feature {
                    name: sym::type_macros,
                    since: "1.13.0",
                    issue: to_nonzero(Some(27245)),
                },
                Feature {
                    name: sym::type_privacy_lints,
                    since: "1.79.0",
                    issue: to_nonzero(Some(48054)),
                },
                Feature {
                    name: sym::underscore_const_names,
                    since: "1.37.0",
                    issue: to_nonzero(Some(54912)),
                },
                Feature {
                    name: sym::underscore_imports,
                    since: "1.33.0",
                    issue: to_nonzero(Some(48216)),
                },
                Feature {
                    name: sym::underscore_lifetimes,
                    since: "1.26.0",
                    issue: to_nonzero(Some(44524)),
                },
                Feature {
                    name: sym::uniform_paths,
                    since: "1.32.0",
                    issue: to_nonzero(Some(53130)),
                },
                Feature {
                    name: sym::universal_impl_trait,
                    since: "1.26.0",
                    issue: to_nonzero(Some(34511)),
                },
                Feature {
                    name: sym::unrestricted_attribute_tokens,
                    since: "1.34.0",
                    issue: to_nonzero(Some(55208)),
                },
                Feature {
                    name: sym::unsafe_attributes,
                    since: "1.82.0",
                    issue: to_nonzero(Some(123757)),
                },
                Feature {
                    name: sym::unsafe_block_in_unsafe_fn,
                    since: "1.52.0",
                    issue: to_nonzero(Some(71668)),
                },
                Feature {
                    name: sym::unsafe_extern_blocks,
                    since: "1.82.0",
                    issue: to_nonzero(Some(123743)),
                },
                Feature {
                    name: sym::use_extern_macros,
                    since: "1.30.0",
                    issue: to_nonzero(Some(35896)),
                },
                Feature {
                    name: sym::use_nested_groups,
                    since: "1.25.0",
                    issue: to_nonzero(Some(44494)),
                },
                Feature {
                    name: sym::used,
                    since: "1.30.0",
                    issue: to_nonzero(Some(40289)),
                },
                Feature {
                    name: sym::while_let,
                    since: "1.0.0",
                    issue: to_nonzero(None),
                },
                Feature {
                    name: sym::windows_subsystem,
                    since: "1.18.0",
                    issue: to_nonzero(Some(37499)),
                }];declare_features! (
24    // -------------------------------------------------------------------------
25    // feature-group-start: for testing purposes
26    // -------------------------------------------------------------------------
27
28    /// These are used to test this portion of the compiler,
29    /// they don't actually mean anything.
30    (accepted, test_accepted_feature, "1.0.0", None),
31    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
32    // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
33    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
34
35    // -------------------------------------------------------------------------
36    // feature-group-end: for testing purposes
37    // -------------------------------------------------------------------------
38
39    // -------------------------------------------------------------------------
40    // feature-group-start: accepted features
41    // -------------------------------------------------------------------------
42
43    // Note that the version indicates when it got *stabilized*.
44    // When moving an unstable feature here, set the version number to
45    // `CURRENT RUSTC VERSION` with ` ` replaced by `_`.
46
47    /// Allows `#[target_feature(...)]` on aarch64 platforms
48    (accepted, aarch64_target_feature, "1.61.0", Some(44839)),
49    /// Allows using the `efiapi` ABI.
50    (accepted, abi_efiapi, "1.68.0", Some(65815)),
51    /// Allows the sysV64 ABI to be specified on all platforms
52    /// instead of just the platforms on which it is the C ABI.
53    (accepted, abi_sysv64, "1.24.0", Some(36167)),
54    /// Allows using the `thiscall` ABI.
55    (accepted, abi_thiscall, "1.73.0", None),
56    /// Allows using ADX intrinsics from `core::arch::{x86, x86_64}`.
57    (accepted, adx_target_feature, "1.61.0", Some(44839)),
58    /// Allows explicit discriminants on non-unit enum variants.
59    (accepted, arbitrary_enum_discriminant, "1.66.0", Some(60553)),
60    /// Allows #[cfg(...)] on inline assembly templates and operands.
61    (accepted, asm_cfg, "1.93.0", Some(140364)),
62    /// Allows using `const` operands in inline assembly.
63    (accepted, asm_const, "1.82.0", Some(93332)),
64    /// Allows using `label` operands in inline assembly.
65    (accepted, asm_goto, "1.87.0", Some(119364)),
66    /// Allows using `sym` operands in inline assembly.
67    (accepted, asm_sym, "1.66.0", Some(93333)),
68    /// Allows the definition of associated constants in `trait` or `impl` blocks.
69    (accepted, associated_consts, "1.20.0", Some(29646)),
70    /// Allows the user of associated type bounds.
71    (accepted, associated_type_bounds, "1.79.0", Some(52662)),
72    /// Allows using associated `type`s in `trait`s.
73    (accepted, associated_types, "1.0.0", None),
74    /// Allows free and inherent `async fn`s, `async` blocks, and `<expr>.await` expressions.
75    (accepted, async_await, "1.39.0", Some(50547)),
76    /// Allows `async || body` closures.
77    (accepted, async_closure, "1.85.0", Some(62290)),
78    /// Allows async functions to be declared, implemented, and used in traits.
79    (accepted, async_fn_in_trait, "1.75.0", Some(91611)),
80    /// Allows all literals in attribute lists and values of key-value pairs.
81    (accepted, attr_literals, "1.30.0", Some(34981)),
82    /// Allows overloading augmented assignment operations like `a += b`.
83    (accepted, augmented_assignments, "1.8.0", Some(28235)),
84    /// Allows using `avx512*` target features.
85    (accepted, avx512_target_feature, "1.89.0", Some(44839)),
86    /// Allows mixing bind-by-move in patterns and references to those identifiers in guards.
87    (accepted, bind_by_move_pattern_guards, "1.39.0", Some(15287)),
88    /// Allows bindings in the subpattern of a binding pattern.
89    /// For example, you can write `x @ Some(y)`.
90    (accepted, bindings_after_at, "1.56.0", Some(65490)),
91    /// Allows empty structs and enum variants with braces.
92    (accepted, braced_empty_structs, "1.8.0", Some(29720)),
93    /// Allows `c"foo"` literals.
94    (accepted, c_str_literals, "1.77.0", Some(105723)),
95    /// Allows `extern "C-unwind" fn` to enable unwinding across ABI boundaries and treat `extern "C" fn` as nounwind.
96    (accepted, c_unwind, "1.81.0", Some(74990)),
97    /// Allows `#[cfg_attr(predicate, multiple, attributes, here)]`.
98    (accepted, cfg_attr_multi, "1.33.0", Some(54881)),
99    /// Allows the use of `#[cfg(<true/false>)]`.
100    (accepted, cfg_boolean_literals, "1.88.0", Some(131204)),
101    /// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.
102    (accepted, cfg_doctest, "1.40.0", Some(62210)),
103    /// Enables `#[cfg(panic = "...")]` config key.
104    (accepted, cfg_panic, "1.60.0", Some(77443)),
105    /// Provides a native way to easily manage multiple conditional flags without having to rewrite each clause multiple times.
106    (accepted, cfg_select, "1.95.0", Some(115585)),
107    /// Allows `cfg(target_abi = "...")`.
108    (accepted, cfg_target_abi, "1.78.0", Some(80970)),
109    /// Allows `cfg(target_feature = "...")`.
110    (accepted, cfg_target_feature, "1.27.0", Some(29717)),
111    /// Allows `cfg(target_vendor = "...")`.
112    (accepted, cfg_target_vendor, "1.33.0", Some(29718)),
113    /// Allows implementing `Clone` for closures where possible (RFC 2132).
114    (accepted, clone_closures, "1.26.0", Some(44490)),
115    /// Allows coercing non capturing closures to function pointers.
116    (accepted, closure_to_fn_coercion, "1.19.0", Some(39817)),
117    /// Allows using the CMPXCHG16B target feature.
118    (accepted, cmpxchg16b_target_feature, "1.69.0", Some(44839)),
119    /// Allows use of the `#[collapse_debuginfo]` attribute.
120    (accepted, collapse_debuginfo, "1.79.0", Some(100758)),
121    /// Allows usage of the `compile_error!` macro.
122    (accepted, compile_error, "1.20.0", Some(40872)),
123    /// Allows `impl Trait` in function return types.
124    (accepted, conservative_impl_trait, "1.26.0", Some(34511)),
125    /// Allows calling constructor functions in `const fn`.
126    (accepted, const_constructor, "1.40.0", Some(61456)),
127    /// Allows the definition of `const extern fn` and `const unsafe extern fn`.
128    (accepted, const_extern_fn, "1.83.0", Some(64926)),
129    /// Allows basic arithmetic on floating point types in a `const fn`.
130    (accepted, const_fn_floating_point_arithmetic, "1.82.0", Some(57241)),
131    /// Allows using and casting function pointers in a `const fn`.
132    (accepted, const_fn_fn_ptr_basics, "1.61.0", Some(57563)),
133    /// Allows trait bounds in `const fn`.
134    (accepted, const_fn_trait_bound, "1.61.0", Some(93706)),
135    /// Allows calling `transmute` in const fn
136    (accepted, const_fn_transmute, "1.56.0", Some(53605)),
137    /// Allows accessing fields of unions inside `const` functions.
138    (accepted, const_fn_union, "1.56.0", Some(51909)),
139    /// Allows unsizing coercions in `const fn`.
140    (accepted, const_fn_unsize, "1.54.0", Some(64992)),
141    /// Allows const generics to have default values (e.g. `struct Foo<const N: usize = 3>(...);`).
142    (accepted, const_generics_defaults, "1.59.0", Some(44580)),
143    /// Allows the use of `if` and `match` in constants.
144    (accepted, const_if_match, "1.46.0", Some(49146)),
145    /// Allows argument and return position `impl Trait` in a `const fn`.
146    (accepted, const_impl_trait, "1.61.0", Some(77463)),
147    /// Allows indexing into constant arrays.
148    (accepted, const_indexing, "1.26.0", Some(29947)),
149    /// Allows let bindings, assignments and destructuring in `const` functions and constants.
150    /// As long as control flow is not implemented in const eval, `&&` and `||` may not be used
151    /// at the same time as let bindings.
152    (accepted, const_let, "1.33.0", Some(48821)),
153    /// Allows the use of `loop` and `while` in constants.
154    (accepted, const_loop, "1.46.0", Some(52000)),
155    /// Allows using `&mut` in constant functions.
156    (accepted, const_mut_refs, "1.83.0", Some(57349)),
157    /// Allows panicking during const eval (producing compile-time errors).
158    (accepted, const_panic, "1.57.0", Some(51999)),
159    /// Allows dereferencing raw pointers during const eval.
160    (accepted, const_raw_ptr_deref, "1.58.0", Some(51911)),
161    /// Allows references to types with interior mutability within constants
162    (accepted, const_refs_to_cell, "1.83.0", Some(80384)),
163    /// Allows creating pointers and references to `static` items in constants.
164    (accepted, const_refs_to_static, "1.83.0", Some(119618)),
165    /// Allows implementing `Copy` for closures where possible (RFC 2132).
166    (accepted, copy_closures, "1.26.0", Some(44490)),
167    /// Allows `crate` in paths.
168    (accepted, crate_in_paths, "1.30.0", Some(45477)),
169    /// Allows users to provide classes for fenced code block using `class:classname`.
170    (accepted, custom_code_classes_in_docs, "1.80.0", Some(79483)),
171    /// Allows using `#[debugger_visualizer]` attribute.
172    (accepted, debugger_visualizer, "1.71.0", Some(95939)),
173    /// Allows rustc to inject a default alloc_error_handler
174    (accepted, default_alloc_error_handler, "1.68.0", Some(66741)),
175    /// Allows using assigning a default type to type parameters in algebraic data type definitions.
176    (accepted, default_type_params, "1.0.0", None),
177    /// Allows `#[deprecated]` attribute.
178    (accepted, deprecated, "1.9.0", Some(29935)),
179    /// Allows `#[derive(Default)]` and `#[default]` on enums.
180    (accepted, derive_default_enum, "1.62.0", Some(86985)),
181    /// Allows the use of destructuring assignments.
182    (accepted, destructuring_assignment, "1.59.0", Some(71126)),
183    /// Allows using the `#[diagnostic]` attribute tool namespace
184    (accepted, diagnostic_namespace, "1.78.0", Some(111996)),
185    /// Controls errors in trait implementations.
186    (accepted, do_not_recommend, "1.85.0", Some(51992)),
187    /// Allows `#[doc(alias = "...")]`.
188    (accepted, doc_alias, "1.48.0", Some(50146)),
189    /// Allows `..` in tuple (struct) patterns.
190    (accepted, dotdot_in_tuple_patterns, "1.14.0", Some(33627)),
191    /// Allows `..=` in patterns (RFC 1192).
192    (accepted, dotdoteq_in_patterns, "1.26.0", Some(28237)),
193    /// Allows `Drop` types in constants (RFC 1440).
194    (accepted, drop_types_in_const, "1.22.0", Some(33156)),
195    /// Allows using `dyn Trait` as a syntax for trait objects.
196    (accepted, dyn_trait, "1.27.0", Some(44662)),
197    /// Allows `X..Y` patterns.
198    (accepted, exclusive_range_pattern, "1.80.0", Some(37854)),
199    /// Allows integer match exhaustiveness checking (RFC 2591).
200    (accepted, exhaustive_integer_patterns, "1.33.0", Some(50907)),
201    /// Allows explicit generic arguments specification with `impl Trait` present.
202    (accepted, explicit_generic_args_with_impl_trait, "1.63.0", Some(83701)),
203    /// Uses 2024 rules for matching `expr` fragments in macros. Also enables `expr_2021` fragment.
204    (accepted, expr_fragment_specifier_2024, "1.83.0", Some(123742)),
205    /// Allows arbitrary expressions in key-value attributes at parse time.
206    (accepted, extended_key_value_attributes, "1.54.0", Some(78835)),
207    /// Allows using `aapcs`, `efiapi`, `sysv64` and `win64` as calling conventions
208    /// for functions with varargs.
209    (accepted, extended_varargs_abi_support, "1.91.0", Some(100189)),
210    /// Allows resolving absolute paths as paths from other crates.
211    (accepted, extern_absolute_paths, "1.30.0", Some(44660)),
212    /// Allows `extern crate foo as bar;`. This puts `bar` into extern prelude.
213    (accepted, extern_crate_item_prelude, "1.31.0", Some(55599)),
214    /// Allows `extern crate self as foo;`.
215    /// This puts local crate root into extern prelude under name `foo`.
216    (accepted, extern_crate_self, "1.34.0", Some(56409)),
217    /// Allows access to crate names passed via `--extern` through prelude.
218    (accepted, extern_prelude, "1.30.0", Some(44660)),
219    /// Allows using `system` as a calling convention with varargs.
220    (accepted, extern_system_varargs, "1.93.0", Some(136946)),
221    /// Allows using F16C intrinsics from `core::arch::{x86, x86_64}`.
222    (accepted, f16c_target_feature, "1.68.0", Some(44839)),
223    /// Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
224    (accepted, field_init_shorthand, "1.17.0", Some(37340)),
225    /// Allows `#[must_use]` on functions, and introduces must-use operators (RFC 1940).
226    (accepted, fn_must_use, "1.27.0", Some(43302)),
227    /// Allows capturing variables in scope using format_args!
228    (accepted, format_args_capture, "1.58.0", Some(67984)),
229    /// Infer generic args for both consts and types.
230    (accepted, generic_arg_infer, "1.89.0", Some(85077)),
231    /// Allows associated types to be generic, e.g., `type Foo<T>;` (RFC 1598).
232    (accepted, generic_associated_types, "1.65.0", Some(44265)),
233    /// Allows attributes on lifetime/type formal parameters in generics (RFC 1327).
234    (accepted, generic_param_attrs, "1.27.0", Some(48848)),
235    /// Allows the `#[global_allocator]` attribute.
236    (accepted, global_allocator, "1.28.0", Some(27389)),
237    /// Allows globs imports (`use module::*;`) to import all public items from a module.
238    (accepted, globs, "1.0.0", None),
239    /// Allows using `..=X` as a pattern.
240    (accepted, half_open_range_patterns, "1.66.0", Some(67264)),
241    /// Allows using the `u128` and `i128` types.
242    (accepted, i128_type, "1.26.0", Some(35118)),
243    /// Allows the use of `if let` expressions.
244    (accepted, if_let, "1.0.0", None),
245    /// Allows `if let` guard in match arms.
246    (accepted, if_let_guard, "1.95.0", Some(51114)),
247    /// Rescoping temporaries in `if let` to align with Rust 2024.
248    (accepted, if_let_rescope, "1.84.0", Some(124085)),
249    /// Allows top level or-patterns (`p | q`) in `if let` and `while let`.
250    (accepted, if_while_or_patterns, "1.33.0", Some(48215)),
251    /// Allows lifetime elision in `impl` headers. For example:
252    /// + `impl<I:Iterator> Iterator for &mut Iterator`
253    /// + `impl Debug for Foo<'_>`
254    (accepted, impl_header_lifetime_elision, "1.31.0", Some(15872)),
255    /// Allows referencing `Self` and projections in impl-trait.
256    (accepted, impl_trait_projections, "1.74.0", Some(103532)),
257    /// Allows using imported `main` function
258    (accepted, imported_main, "1.79.0", Some(28937)),
259    /// Allows using `a..=b` and `..=b` as inclusive range syntaxes.
260    (accepted, inclusive_range_syntax, "1.26.0", Some(28237)),
261    /// Allows inferring outlives requirements (RFC 2093).
262    (accepted, infer_outlives_requirements, "1.30.0", Some(44493)),
263    /// Allow anonymous constants from an inline `const` block
264    (accepted, inline_const, "1.79.0", Some(76001)),
265    /// Allows irrefutable patterns in `if let` and `while let` statements (RFC 2086).
266    (accepted, irrefutable_let_patterns, "1.33.0", Some(44495)),
267    /// Allows `#[instruction_set(_)]` attribute.
268    (accepted, isa_attribute, "1.67.0", Some(74727)),
269    /// Allows some increased flexibility in the name resolution rules,
270    /// especially around globs and shadowing (RFC 1560).
271    (accepted, item_like_imports, "1.15.0", Some(35120)),
272    // Allows using the `kl` and `widekl` target features and the associated intrinsics
273    (accepted, keylocker_x86, "1.89.0", Some(134813)),
274    /// Allows `'a: { break 'a; }`.
275    (accepted, label_break_value, "1.65.0", Some(48594)),
276    /// Allows `if/while p && let q = r && ...` chains.
277    (accepted, let_chains, "1.88.0", Some(53667)),
278    /// Allows `let...else` statements.
279    (accepted, let_else, "1.65.0", Some(87335)),
280    /// Allows using `reason` in lint attributes and the `#[expect(lint)]` lint check.
281    (accepted, lint_reasons, "1.81.0", Some(54503)),
282    /// Allows `break {expr}` with a value inside `loop`s.
283    (accepted, loop_break_value, "1.19.0", Some(37339)),
284    /// Allows use of `?` as the Kleene "at most one" operator in macros.
285    (accepted, macro_at_most_once_rep, "1.32.0", Some(48075)),
286    /// Allows macro attributes to observe output of `#[derive]`.
287    (accepted, macro_attributes_in_derive_output, "1.57.0", Some(81119)),
288    /// Allows use of the `:lifetime` macro fragment specifier.
289    (accepted, macro_lifetime_matcher, "1.27.0", Some(34303)),
290    /// Allows use of the `:literal` macro fragment specifier (RFC 1576).
291    (accepted, macro_literal_matcher, "1.32.0", Some(35625)),
292    /// Allows `macro_rules!` items.
293    (accepted, macro_rules, "1.0.0", None),
294    /// Allows use of the `:vis` macro fragment specifier
295    (accepted, macro_vis_matcher, "1.30.0", Some(41022)),
296    /// Allows macro invocations in `extern {}` blocks.
297    (accepted, macros_in_extern, "1.40.0", Some(49476)),
298    /// Allows '|' at beginning of match arms (RFC 1925).
299    (accepted, match_beginning_vert, "1.25.0", Some(44101)),
300    /// Allows default match binding modes (RFC 2005).
301    (accepted, match_default_bindings, "1.26.0", Some(42640)),
302    /// Allows `impl Trait` with multiple unrelated lifetimes.
303    (accepted, member_constraints, "1.54.0", Some(61997)),
304    /// Allows the definition of `const fn` functions.
305    (accepted, min_const_fn, "1.31.0", Some(53555)),
306    /// The smallest useful subset of const generics.
307    (accepted, min_const_generics, "1.51.0", Some(74878)),
308    /// Allows calling `const unsafe fn` inside `unsafe` blocks in `const fn` functions.
309    (accepted, min_const_unsafe_fn, "1.33.0", Some(55607)),
310    /// Allows exhaustive pattern matching on uninhabited types when matched by value.
311    (accepted, min_exhaustive_patterns, "1.82.0", Some(119612)),
312    /// Allows using `Self` and associated types in struct expressions and patterns.
313    (accepted, more_struct_aliases, "1.16.0", Some(37544)),
314    /// Allows using the MOVBE target feature.
315    (accepted, movbe_target_feature, "1.70.0", Some(44839)),
316    /// Allows patterns with concurrent by-move and by-ref bindings.
317    /// For example, you can write `Foo(a, ref b)` where `a` is by-move and `b` is by-ref.
318    (accepted, move_ref_pattern, "1.49.0", Some(68354)),
319    /// Allows using `#[naked]` on functions.
320    (accepted, naked_functions, "1.88.0", Some(90957)),
321    /// Allows specifying modifiers in the link attribute: `#[link(modifiers = "...")]`
322    (accepted, native_link_modifiers, "1.61.0", Some(81490)),
323    /// Allows specifying the bundle link modifier
324    (accepted, native_link_modifiers_bundle, "1.63.0", Some(81490)),
325    /// Allows specifying the verbatim link modifier
326    (accepted, native_link_modifiers_verbatim, "1.67.0", Some(81490)),
327    /// Allows specifying the whole-archive link modifier
328    (accepted, native_link_modifiers_whole_archive, "1.61.0", Some(81490)),
329    /// Allows using non lexical lifetimes (RFC 2094).
330    (accepted, nll, "1.63.0", Some(43234)),
331    /// Allows using `#![no_std]`.
332    (accepted, no_std, "1.6.0", None),
333    /// Allows defining identifiers beyond ASCII.
334    (accepted, non_ascii_idents, "1.53.0", Some(55467)),
335    /// Allows future-proofing enums/structs with the `#[non_exhaustive]` attribute (RFC 2008).
336    (accepted, non_exhaustive, "1.40.0", Some(44109)),
337    /// Allows `foo.rs` as an alternative to `foo/mod.rs`.
338    (accepted, non_modrs_mods, "1.30.0", Some(44660)),
339    /// Allows using multiple nested field accesses in offset_of!
340    (accepted, offset_of_nested, "1.82.0", Some(120140)),
341    /// Allows the use of or-patterns (e.g., `0 | 1`).
342    (accepted, or_patterns, "1.53.0", Some(54883)),
343    /// Allows using `+bundle,+whole-archive` link modifiers with native libs.
344    (accepted, packed_bundled_libs, "1.74.0", Some(108081)),
345    /// Allows annotating functions conforming to `fn(&PanicInfo) -> !` with `#[panic_handler]`.
346    /// This defines the behavior of panics.
347    (accepted, panic_handler, "1.30.0", Some(44489)),
348    /// Allows attributes in formal function parameters.
349    (accepted, param_attrs, "1.39.0", Some(60406)),
350    /// Allows parentheses in patterns.
351    (accepted, pattern_parentheses, "1.31.0", Some(51087)),
352    /// Allows `use<'a, 'b, A, B>` in `impl Trait + use<...>` for precise capture of generic args.
353    (accepted, precise_capturing, "1.82.0", Some(123432)),
354    /// Allows `use<..>` precise capturing on impl Trait in traits.
355    (accepted, precise_capturing_in_traits, "1.87.0", Some(130044)),
356    /// Allows procedural macros in `proc-macro` crates.
357    (accepted, proc_macro, "1.29.0", Some(38356)),
358    /// Allows multi-segment paths in attributes and derives.
359    (accepted, proc_macro_path_invoc, "1.30.0", Some(38356)),
360    /// Allows `pub(restricted)` visibilities (RFC 1422).
361    (accepted, pub_restricted, "1.18.0", Some(32409)),
362    /// Allows use of the postfix `?` operator in expressions.
363    (accepted, question_mark, "1.13.0", Some(31436)),
364    /// Allows the use of raw-dylibs (RFC 2627).
365    (accepted, raw_dylib, "1.71.0", Some(58713)),
366    /// Allows keywords to be escaped for use as identifiers.
367    (accepted, raw_identifiers, "1.30.0", Some(48589)),
368    /// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions.
369    (accepted, raw_ref_op, "1.82.0", Some(64490)),
370    /// Allows relaxing the coherence rules such that
371    /// `impl<T> ForeignTrait<LocalType> for ForeignType<T>` is permitted.
372    (accepted, re_rebalance_coherence, "1.41.0", Some(55437)),
373    /// Allows numeric fields in struct expressions and patterns.
374    (accepted, relaxed_adts, "1.19.0", Some(35626)),
375    /// Lessens the requirements for structs to implement `Unsize`.
376    (accepted, relaxed_struct_unsize, "1.58.0", Some(81793)),
377    /// Allows the `#[repr(i128)]` attribute for enums.
378    (accepted, repr128, "1.89.0", Some(56071)),
379    /// Allows `repr(align(16))` struct attribute (RFC 1358).
380    (accepted, repr_align, "1.25.0", Some(33626)),
381    /// Allows using `#[repr(align(X))]` on enums with equivalent semantics
382    /// to wrapping an enum in a wrapper struct with `#[repr(align(X))]`.
383    (accepted, repr_align_enum, "1.37.0", Some(57996)),
384    /// Allows `#[repr(packed(N))]` attribute on structs.
385    (accepted, repr_packed, "1.33.0", Some(33158)),
386    /// Allows `#[repr(transparent)]` attribute on newtype structs.
387    (accepted, repr_transparent, "1.28.0", Some(43036)),
388    /// Allows enums like Result<T, E> to be used across FFI, if T's niche value can
389    /// be used to describe E or vice-versa.
390    (accepted, result_ffi_guarantees, "1.84.0", Some(110503)),
391    /// Allows return-position `impl Trait` in traits.
392    (accepted, return_position_impl_trait_in_trait, "1.75.0", Some(91611)),
393    /// Allows code like `let x: &'static u32 = &42` to work (RFC 1414).
394    (accepted, rvalue_static_promotion, "1.21.0", Some(38865)),
395    /// Allows use of the `vector` and related s390x target features.
396    (accepted, s390x_target_feature_vector, "1.93.0", Some(145649)),
397    /// Allows `Self` in type definitions (RFC 2300).
398    (accepted, self_in_typedefs, "1.32.0", Some(49303)),
399    /// Allows `Self` struct constructor (RFC 2302).
400    (accepted, self_struct_ctor, "1.32.0", Some(51994)),
401    /// Allows use of x86 SHA512, SM3 and SM4 target-features and intrinsics
402    (accepted, sha512_sm_x86, "1.89.0", Some(126624)),
403    /// Shorten the tail expression lifetime
404    (accepted, shorter_tail_lifetimes, "1.84.0", Some(123739)),
405    /// Allows using subslice patterns, `[a, .., b]` and `[a, xs @ .., b]`.
406    (accepted, slice_patterns, "1.42.0", Some(62254)),
407    /// Allows use of `&foo[a..b]` as a slicing syntax.
408    (accepted, slicing_syntax, "1.0.0", None),
409    /// Allows use of `sse4a` target feature.
410    (accepted, sse4a_target_feature, "1.91.0", Some(44839)),
411    /// Allows elision of `'static` lifetimes in `static`s and `const`s.
412    (accepted, static_in_const, "1.17.0", Some(35897)),
413    /// Allows the definition recursive static items.
414    (accepted, static_recursion, "1.17.0", Some(29719)),
415    /// Allows attributes on struct literal fields.
416    (accepted, struct_field_attributes, "1.20.0", Some(38814)),
417    /// Allows struct variants `Foo { baz: u8, .. }` in enums (RFC 418).
418    (accepted, struct_variant, "1.0.0", None),
419    /// Allows `#[target_feature(...)]`.
420    (accepted, target_feature, "1.27.0", None),
421    /// Allows the use of `#[target_feature]` on safe functions.
422    (accepted, target_feature_11, "1.86.0", Some(69098)),
423    /// Allows use of `tbm` target feature.
424    (accepted, tbm_target_feature, "1.91.0", Some(44839)),
425    /// Allows `fn main()` with return types which implements `Termination` (RFC 1937).
426    (accepted, termination_trait, "1.26.0", Some(43301)),
427    /// Allows `#[test]` functions where the return type implements `Termination` (RFC 1937).
428    (accepted, termination_trait_test, "1.27.0", Some(48854)),
429    /// Allows attributes scoped to tools.
430    (accepted, tool_attributes, "1.30.0", Some(44690)),
431    /// Allows scoped lints.
432    (accepted, tool_lints, "1.31.0", Some(44690)),
433    /// Allows `#[track_caller]` to be used which provides
434    /// accurate caller location reporting during panic (RFC 2091).
435    (accepted, track_caller, "1.46.0", Some(47809)),
436    /// Allows dyn upcasting trait objects via supertraits.
437    /// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
438    (accepted, trait_upcasting, "1.86.0", Some(65991)),
439    /// Allows #[repr(transparent)] on univariant enums (RFC 2645).
440    (accepted, transparent_enums, "1.42.0", Some(60405)),
441    /// Allows indexing tuples.
442    (accepted, tuple_indexing, "1.0.0", None),
443    /// Allows paths to enum variants on type aliases including `Self`.
444    (accepted, type_alias_enum_variants, "1.37.0", Some(49683)),
445    /// Allows macros to appear in the type position.
446    (accepted, type_macros, "1.13.0", Some(27245)),
447    /// Allows using type privacy lints (`private_interfaces`, `private_bounds`, `unnameable_types`).
448    (accepted, type_privacy_lints, "1.79.0", Some(48054)),
449    /// Allows `const _: TYPE = VALUE`.
450    (accepted, underscore_const_names, "1.37.0", Some(54912)),
451    /// Allows `use path as _;` and `extern crate c as _;`.
452    (accepted, underscore_imports, "1.33.0", Some(48216)),
453    /// Allows `'_` placeholder lifetimes.
454    (accepted, underscore_lifetimes, "1.26.0", Some(44524)),
455    /// Allows `use x::y;` to search `x` in the current scope.
456    (accepted, uniform_paths, "1.32.0", Some(53130)),
457    /// Allows `impl Trait` in function arguments.
458    (accepted, universal_impl_trait, "1.26.0", Some(34511)),
459    /// Allows arbitrary delimited token streams in non-macro attributes.
460    (accepted, unrestricted_attribute_tokens, "1.34.0", Some(55208)),
461    /// Allows unsafe attributes.
462    (accepted, unsafe_attributes, "1.82.0", Some(123757)),
463    /// The `unsafe_op_in_unsafe_fn` lint (allowed by default): no longer treat an unsafe function as an unsafe block.
464    (accepted, unsafe_block_in_unsafe_fn, "1.52.0", Some(71668)),
465    /// Allows unsafe on extern declarations and safety qualifiers over internal items.
466    (accepted, unsafe_extern_blocks, "1.82.0", Some(123743)),
467    /// Allows importing and reexporting macros with `use`,
468    /// enables macro modularization in general.
469    (accepted, use_extern_macros, "1.30.0", Some(35896)),
470    /// Allows nested groups in `use` items (RFC 2128).
471    (accepted, use_nested_groups, "1.25.0", Some(44494)),
472    /// Allows `#[used]` to preserve symbols (see llvm.compiler.used).
473    (accepted, used, "1.30.0", Some(40289)),
474    /// Allows the use of `while let` expressions.
475    (accepted, while_let, "1.0.0", None),
476    /// Allows `#![windows_subsystem]`.
477    (accepted, windows_subsystem, "1.18.0", Some(37499)),
478    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
479    // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
480    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
481
482    // -------------------------------------------------------------------------
483    // feature-group-end: accepted features
484    // -------------------------------------------------------------------------
485);