Skip to main content

rustc_feature/
removed.rs

1//! List of the removed feature gates.
2
3use std::num::NonZero;
4
5use rustc_span::sym;
6
7use super::{Feature, to_nonzero};
8
9pub struct RemovedFeature {
10    pub feature: Feature,
11    pub reason: Option<&'static str>,
12    pub pull: Option<NonZero<u32>>,
13}
14
15macro_rules! opt_nonzero_u32 {
16    () => {
17        None
18    };
19    ($val:expr) => {
20        Some(<NonZero<u32>>::new($val).unwrap())
21    };
22}
23
24macro_rules! declare_features {
25    ($(
26        $(#[doc = $doc:tt])* (removed, $feature:ident, $ver:expr, $issue:expr, $reason:expr $(, $pull:expr)?),
27    )+) => {
28        /// Formerly unstable features that have now been removed.
29        pub static REMOVED_LANG_FEATURES: &[RemovedFeature] = &[
30            $(RemovedFeature {
31                feature: Feature {
32                    name: sym::$feature,
33                    since: $ver,
34                    issue: to_nonzero($issue),
35                },
36                reason: $reason,
37                pull: opt_nonzero_u32!($($pull)?),
38            }),+
39        ];
40    };
41}
42
43#[rustfmt::skip]
44/// Formerly unstable features that have now been removed.
pub static REMOVED_LANG_FEATURES: &[RemovedFeature] =
    &[RemovedFeature {
                    feature: Feature {
                        name: sym::abi_amdgpu_kernel,
                        since: "1.77.0",
                        issue: to_nonzero(Some(51575)),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(120495).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::abi_c_cmse_nonsecure_call,
                        since: "1.90.0",
                        issue: to_nonzero(Some(81391)),
                    },
                    reason: Some("renamed to abi_cmse_nonsecure_call"),
                    pull: Some(<NonZero<u32>>::new(142146).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::abi_unadjusted,
                        since: "CURRENT_RUSTC_VERSION",
                        issue: to_nonzero(None),
                    },
                    reason: Some("merged into link_llvm_intrinsics"),
                    pull: Some(<NonZero<u32>>::new(161398).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::advanced_slice_patterns,
                        since: "1.42.0",
                        issue: to_nonzero(Some(62254)),
                    },
                    reason: Some("merged into `#![feature(slice_patterns)]`"),
                    pull: Some(<NonZero<u32>>::new(67712).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::allocator,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::allow_fail,
                        since: "1.60.0",
                        issue: to_nonzero(Some(46488)),
                    },
                    reason: Some("removed due to no clear use cases"),
                    pull: Some(<NonZero<u32>>::new(93416).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::associated_const_equality,
                        since: "1.94.0",
                        issue: to_nonzero(Some(92827)),
                    },
                    reason: Some("merged into `min_generic_const_args`"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::await_macro,
                        since: "1.38.0",
                        issue: to_nonzero(Some(50547)),
                    },
                    reason: Some("subsumed by `.await` syntax"),
                    pull: Some(<NonZero<u32>>::new(62293).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::box_patterns,
                        since: "CURRENT_RUSTC_VERSION",
                        issue: to_nonzero(Some(29641)),
                    },
                    reason: Some("superseded by `deref_patterns`"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::box_syntax,
                        since: "1.70.0",
                        issue: to_nonzero(Some(49733)),
                    },
                    reason: Some("replaced with `#[rustc_box]`"),
                    pull: Some(<NonZero<u32>>::new(108471).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::capture_disjoint_fields,
                        since: "1.69.0",
                        issue: to_nonzero(Some(53488)),
                    },
                    reason: Some("stabilized in Rust 2021"),
                    pull: Some(<NonZero<u32>>::new(108550).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_compare_raw_pointers,
                        since: "1.46.0",
                        issue: to_nonzero(Some(53020)),
                    },
                    reason: Some("cannot be allowed in const eval in any meaningful way"),
                    pull: Some(<NonZero<u32>>::new(73398).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_eval_limit,
                        since: "1.72.0",
                        issue: to_nonzero(Some(67217)),
                    },
                    reason: Some("removed the limit entirely"),
                    pull: Some(<NonZero<u32>>::new(103877).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_evaluatable_checked,
                        since: "1.56.0",
                        issue: to_nonzero(Some(76560)),
                    },
                    reason: Some("renamed to `generic_const_exprs`"),
                    pull: Some(<NonZero<u32>>::new(88369).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_fn,
                        since: "1.54.0",
                        issue: to_nonzero(Some(57563)),
                    },
                    reason: Some("split into finer-grained feature gates"),
                    pull: Some(<NonZero<u32>>::new(85109).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_generics,
                        since: "1.56.0",
                        issue: to_nonzero(Some(44580)),
                    },
                    reason: Some("removed in favor of `#![feature(adt_const_params)]` and `#![feature(generic_const_exprs)]`"),
                    pull: Some(<NonZero<u32>>::new(88369).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_in_array_repeat_expressions,
                        since: "1.51.0",
                        issue: to_nonzero(Some(49147)),
                    },
                    reason: Some("removed due to causing promotable bugs"),
                    pull: Some(<NonZero<u32>>::new(80404).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_raw_ptr_to_usize_cast,
                        since: "1.55.0",
                        issue: to_nonzero(Some(51910)),
                    },
                    reason: Some("at compile-time, pointers do not have an integer value, so these casts cannot be properly supported"),
                    pull: Some(<NonZero<u32>>::new(87020).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::const_trait_bound_opt_out,
                        since: "1.56.0",
                        issue: to_nonzero(Some(67794)),
                    },
                    reason: Some("Removed in favor of `[const]` bound in #![feature(const_trait_impl)]"),
                    pull: Some(<NonZero<u32>>::new(88328).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::crate_visibility_modifier,
                        since: "1.63.0",
                        issue: to_nonzero(Some(53120)),
                    },
                    reason: Some("removed in favor of `pub(crate)`"),
                    pull: Some(<NonZero<u32>>::new(97254).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::custom_attribute,
                        since: "1.0.0",
                        issue: to_nonzero(Some(29642)),
                    },
                    reason: Some("removed in favor of `#![register_tool]`"),
                    pull: Some(<NonZero<u32>>::new(66070).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::custom_derive,
                        since: "1.32.0",
                        issue: to_nonzero(Some(29644)),
                    },
                    reason: Some("subsumed by `#[proc_macro_derive]`"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::default_type_parameter_fallback,
                        since: "1.82.0",
                        issue: to_nonzero(Some(27336)),
                    },
                    reason: Some("never properly implemented; requires significant design work"),
                    pull: Some(<NonZero<u32>>::new(127655).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::deprecated_safe,
                        since: "1.95.0",
                        issue: to_nonzero(Some(94978)),
                    },
                    reason: Some("never properly implemented, in the way of attribute refactor"),
                    pull: Some(<NonZero<u32>>::new(152554).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::derive_smart_pointer,
                        since: "1.84.0",
                        issue: to_nonzero(Some(123430)),
                    },
                    reason: Some("replaced by `CoercePointee`"),
                    pull: Some(<NonZero<u32>>::new(131284).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::diagnostic_on_unmatch_args,
                        since: "1.98.0",
                        issue: to_nonzero(Some(155642)),
                    },
                    reason: Some("renamed to `diagnostic_on_unmatched_args`"),
                    pull: Some(<NonZero<u32>>::new(157887).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::doc_auto_cfg,
                        since: "1.92.0",
                        issue: to_nonzero(Some(43781)),
                    },
                    reason: Some("merged into `doc_cfg`"),
                    pull: Some(<NonZero<u32>>::new(138907).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::doc_cfg_hide,
                        since: "1.92.0",
                        issue: to_nonzero(Some(43781)),
                    },
                    reason: Some("merged into `doc_cfg`"),
                    pull: Some(<NonZero<u32>>::new(138907).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::doc_keyword,
                        since: "1.58.0",
                        issue: to_nonzero(Some(51315)),
                    },
                    reason: Some("merged into `#![feature(rustdoc_internals)]`"),
                    pull: Some(<NonZero<u32>>::new(90420).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::doc_primitive,
                        since: "1.58.0",
                        issue: to_nonzero(Some(88070)),
                    },
                    reason: Some("merged into `#![feature(rustdoc_internals)]`"),
                    pull: Some(<NonZero<u32>>::new(90420).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::doc_spotlight,
                        since: "1.53.0",
                        issue: to_nonzero(Some(45040)),
                    },
                    reason: Some("renamed to `doc_notable_trait`"),
                    pull: Some(<NonZero<u32>>::new(80965).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::dropck_parametricity,
                        since: "1.38.0",
                        issue: to_nonzero(Some(28498)),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::dyn_compatible_for_dispatch,
                        since: "1.87.0",
                        issue: to_nonzero(Some(43561)),
                    },
                    reason: Some("removed, not used heavily and represented additional complexity in dyn compatibility"),
                    pull: Some(<NonZero<u32>>::new(136522).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::dyn_star,
                        since: "1.65.0",
                        issue: to_nonzero(Some(102425)),
                    },
                    reason: Some("removed as it was no longer necessary for AFIDT (async fn in dyn trait) support"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::effects,
                        since: "1.84.0",
                        issue: to_nonzero(Some(102090)),
                    },
                    reason: Some("removed, redundant with `#![feature(const_trait_impl)]`"),
                    pull: Some(<NonZero<u32>>::new(132479).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::existential_type,
                        since: "1.38.0",
                        issue: to_nonzero(Some(63063)),
                    },
                    reason: Some("removed in favor of `#![feature(type_alias_impl_trait)]`"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::extern_in_paths,
                        since: "1.33.0",
                        issue: to_nonzero(Some(55600)),
                    },
                    reason: Some("subsumed by `::foo::bar` paths"),
                    pull: Some(<NonZero<u32>>::new(57572).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::external_doc,
                        since: "1.54.0",
                        issue: to_nonzero(Some(44732)),
                    },
                    reason: Some("use #[doc = include_str!(\"filename\")] instead, which handles macro invocations"),
                    pull: Some(<NonZero<u32>>::new(85457).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::ffi_returns_twice,
                        since: "1.78.0",
                        issue: to_nonzero(Some(58314)),
                    },
                    reason: Some("being investigated by the ffi-unwind project group"),
                    pull: Some(<NonZero<u32>>::new(120502).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::generator_clone,
                        since: "1.75.0",
                        issue: to_nonzero(Some(95360)),
                    },
                    reason: Some("renamed to `coroutine_clone`"),
                    pull: Some(<NonZero<u32>>::new(116958).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::generators,
                        since: "1.75.0",
                        issue: to_nonzero(Some(43122)),
                    },
                    reason: Some("renamed to `coroutines`"),
                    pull: Some(<NonZero<u32>>::new(116958).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::generic_associated_types_extended,
                        since: "1.85.0",
                        issue: to_nonzero(Some(95451)),
                    },
                    reason: Some("feature needs overhaul and reimplementation pending \
            better implied higher-ranked implied bounds support"),
                    pull: Some(<NonZero<u32>>::new(133768).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::import_shadowing,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::in_band_lifetimes,
                        since: "1.61.0",
                        issue: to_nonzero(Some(44524)),
                    },
                    reason: Some("removed due to unsolved ergonomic questions and added lifetime resolution complexity"),
                    pull: Some(<NonZero<u32>>::new(93845).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::infer_static_outlives_requirements,
                        since: "1.63.0",
                        issue: to_nonzero(Some(54185)),
                    },
                    reason: Some("removed as it caused some confusion and discussion was inactive for years"),
                    pull: Some(<NonZero<u32>>::new(97875).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::inline_const_pat,
                        since: "1.88.0",
                        issue: to_nonzero(Some(76001)),
                    },
                    reason: Some("removed due to implementation concerns as it requires significant refactorings"),
                    pull: Some(<NonZero<u32>>::new(138492).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::issue_5723_bootstrap,
                        since: "1.95.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::lazy_normalization_consts,
                        since: "1.56.0",
                        issue: to_nonzero(Some(72219)),
                    },
                    reason: Some("superseded by `generic_const_exprs`"),
                    pull: Some(<NonZero<u32>>::new(88369).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::lazy_type_alias,
                        since: "1.72.0",
                        issue: to_nonzero(Some(112792)),
                    },
                    reason: Some("renamed to `checked_type_aliases`"),
                    pull: Some(<NonZero<u32>>::new(158758).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::lifetime_capture_rules_2024,
                        since: "1.87.0",
                        issue: to_nonzero(None),
                    },
                    reason: Some("unnecessary -- use edition 2024 instead"),
                    pull: Some(<NonZero<u32>>::new(136787).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::link_args,
                        since: "1.53.0",
                        issue: to_nonzero(Some(29596)),
                    },
                    reason: Some("removed in favor of using `-C link-arg=ARG` on command line, \
           which is available from cargo build scripts with `cargo:rustc-link-arg` now"),
                    pull: Some(<NonZero<u32>>::new(83820).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::macro_reexport,
                        since: "1.0.0",
                        issue: to_nonzero(Some(29638)),
                    },
                    reason: Some("subsumed by `pub use`"),
                    pull: Some(<NonZero<u32>>::new(49982).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::main,
                        since: "1.53.0",
                        issue: to_nonzero(Some(29634)),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(84217).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::managed_boxes,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::min_type_alias_impl_trait,
                        since: "1.56.0",
                        issue: to_nonzero(Some(63063)),
                    },
                    reason: Some("removed in favor of full type_alias_impl_trait"),
                    pull: Some(<NonZero<u32>>::new(87564).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::mut_preserve_binding_mode_2024,
                        since: "1.80.0",
                        issue: to_nonzero(Some(123076)),
                    },
                    reason: Some("superseded by `ref_pat_eat_one_layer_2024`"),
                    pull: Some(<NonZero<u32>>::new(125168).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::needs_allocator,
                        since: "1.4.0",
                        issue: to_nonzero(Some(27389)),
                    },
                    reason: Some("subsumed by `#![feature(allocator_internals)]`"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::negate_unsigned,
                        since: "1.0.0",
                        issue: to_nonzero(Some(29645)),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::never_type_fallback,
                        since: "1.93.0",
                        issue: to_nonzero(Some(65992)),
                    },
                    reason: Some("removed in favor of unconditional fallback"),
                    pull: Some(<NonZero<u32>>::new(148871).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::no_coverage,
                        since: "1.74.0",
                        issue: to_nonzero(Some(84605)),
                    },
                    reason: Some("renamed to `coverage_attribute`"),
                    pull: Some(<NonZero<u32>>::new(114656).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::no_debug,
                        since: "1.43.0",
                        issue: to_nonzero(Some(29721)),
                    },
                    reason: Some("removed due to lack of demand"),
                    pull: Some(<NonZero<u32>>::new(69667).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::no_sanitize,
                        since: "1.91.0",
                        issue: to_nonzero(Some(39699)),
                    },
                    reason: Some(r#"renamed to sanitize(xyz = "on|off")"#),
                    pull: Some(<NonZero<u32>>::new(142681).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::no_stack_check,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(40110).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::object_safe_for_dispatch,
                        since: "1.83.0",
                        issue: to_nonzero(Some(43561)),
                    },
                    reason: Some("renamed to `dyn_compatible_for_dispatch`"),
                    pull: Some(<NonZero<u32>>::new(131511).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::omit_gdb_pretty_printer_section,
                        since: "1.91.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(144738).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::on_unimplemented,
                        since: "1.40.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(65794).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::opt_out_copy,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(20740).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::optin_builtin_traits,
                        since: "1.50.0",
                        issue: to_nonzero(Some(13231)),
                    },
                    reason: Some("renamed to `auto_traits`"),
                    pull: Some(<NonZero<u32>>::new(79336).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::overlapping_marker_traits,
                        since: "1.42.0",
                        issue: to_nonzero(Some(29864)),
                    },
                    reason: Some("removed in favor of `#![feature(marker_trait_attr)]`"),
                    pull: Some(<NonZero<u32>>::new(68544).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::panic_implementation,
                        since: "1.28.0",
                        issue: to_nonzero(Some(44489)),
                    },
                    reason: Some("subsumed by `#[panic_handler]`"),
                    pull: Some(<NonZero<u32>>::new(53619).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::platform_intrinsics,
                        since: "1.78.0",
                        issue: to_nonzero(Some(27731)),
                    },
                    reason: Some("SIMD intrinsics use the regular intrinsics ABI now"),
                    pull: Some(<NonZero<u32>>::new(121516).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::plugin,
                        since: "1.75.0",
                        issue: to_nonzero(Some(29597)),
                    },
                    reason: Some("plugins are no longer supported"),
                    pull: Some(<NonZero<u32>>::new(116412).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::plugin_registrar,
                        since: "1.75.0",
                        issue: to_nonzero(Some(29597)),
                    },
                    reason: Some("plugins are no longer supported"),
                    pull: Some(<NonZero<u32>>::new(116412).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::precise_pointer_size_matching,
                        since: "1.76.0",
                        issue: to_nonzero(Some(56354)),
                    },
                    reason: Some("removed in favor of half-open ranges"),
                    pull: Some(<NonZero<u32>>::new(118598).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::pref_align_of,
                        since: "1.89.0",
                        issue: to_nonzero(Some(91971)),
                    },
                    reason: Some("removed due to marginal use and inducing compiler complications"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::proc_macro_expr,
                        since: "1.27.0",
                        issue: to_nonzero(Some(54727)),
                    },
                    reason: Some("subsumed by `#![feature(proc_macro_hygiene)]`"),
                    pull: Some(<NonZero<u32>>::new(52121).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::proc_macro_gen,
                        since: "1.27.0",
                        issue: to_nonzero(Some(54727)),
                    },
                    reason: Some("subsumed by `#![feature(proc_macro_hygiene)]`"),
                    pull: Some(<NonZero<u32>>::new(52121).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::proc_macro_mod,
                        since: "1.27.0",
                        issue: to_nonzero(Some(54727)),
                    },
                    reason: Some("subsumed by `#![feature(proc_macro_hygiene)]`"),
                    pull: Some(<NonZero<u32>>::new(52121).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::proc_macro_non_items,
                        since: "1.27.0",
                        issue: to_nonzero(Some(54727)),
                    },
                    reason: Some("subsumed by `#![feature(proc_macro_hygiene)]`"),
                    pull: Some(<NonZero<u32>>::new(52121).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::pub_macro_rules,
                        since: "1.53.0",
                        issue: to_nonzero(Some(78855)),
                    },
                    reason: Some("removed due to being incomplete, in particular it does not work across crates"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::pushpop_unsafe,
                        since: "1.2.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::quad_precision_float,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::quote,
                        since: "1.33.0",
                        issue: to_nonzero(Some(29601)),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::ref_pat_everywhere,
                        since: "1.80.0",
                        issue: to_nonzero(Some(123076)),
                    },
                    reason: Some("superseded by `ref_pat_eat_one_layer_2024`"),
                    pull: Some(<NonZero<u32>>::new(125168).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::reflect,
                        since: "1.0.0",
                        issue: to_nonzero(Some(27749)),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::register_attr,
                        since: "1.65.0",
                        issue: to_nonzero(Some(66080)),
                    },
                    reason: Some("removed in favor of `#![register_tool]`"),
                    pull: Some(<NonZero<u32>>::new(66070).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::rust_2018_preview,
                        since: "1.76.0",
                        issue: to_nonzero(None),
                    },
                    reason: Some("2018 Edition preview is no longer relevant"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::rustc_diagnostic_macros,
                        since: "1.38.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(64139).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::sanitizer_runtime,
                        since: "1.17.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: Some(<NonZero<u32>>::new(65241).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::simd,
                        since: "1.0.0",
                        issue: to_nonzero(Some(27731)),
                    },
                    reason: Some("removed in favor of `#[repr(simd)]`"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::start,
                        since: "1.86.0",
                        issue: to_nonzero(Some(29633)),
                    },
                    reason: Some("not portable enough and never RFC'd"),
                    pull: Some(<NonZero<u32>>::new(134299).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::static_nobundle,
                        since: "1.63.0",
                        issue: to_nonzero(Some(37403)),
                    },
                    reason: Some(r#"subsumed by `#[link(kind = "static", modifiers = "-bundle", ...)]`"#),
                    pull: Some(<NonZero<u32>>::new(95818).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::string_deref_patterns,
                        since: "1.94.0",
                        issue: to_nonzero(Some(87121)),
                    },
                    reason: Some("superseded by `deref_patterns`"),
                    pull: Some(<NonZero<u32>>::new(150530).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::struct_inherit,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::target_feature_inline_always,
                        since: "1.97.0",
                        issue: to_nonzero(Some(145574)),
                    },
                    reason: Some("removed because of unfixable soundness issues"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::test_removed_feature,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::unmarked_api,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::unnamed_fields,
                        since: "1.83.0",
                        issue: to_nonzero(Some(49804)),
                    },
                    reason: Some("feature needs redesign"),
                    pull: Some(<NonZero<u32>>::new(131045).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::unsafe_no_drop_flag,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::unsized_locals,
                        since: "1.89.0",
                        issue: to_nonzero(Some(48055)),
                    },
                    reason: Some("removed due to implementation concerns; see https://github.com/rust-lang/rust/issues/111942"),
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::unsized_tuple_coercion,
                        since: "1.87.0",
                        issue: to_nonzero(Some(42877)),
                    },
                    reason: Some("The feature restricts possible layouts for tuples, and this restriction is not worth it."),
                    pull: Some(<NonZero<u32>>::new(137728).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::untagged_unions,
                        since: "1.64.0",
                        issue: to_nonzero(Some(55149)),
                    },
                    reason: Some("unions with `Copy` and `ManuallyDrop` fields are stable; there is no intent to stabilize more"),
                    pull: Some(<NonZero<u32>>::new(97995).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::unwind_attributes,
                        since: "1.56.0",
                        issue: to_nonzero(Some(58760)),
                    },
                    reason: Some("use the C-unwind ABI instead"),
                    pull: Some(<NonZero<u32>>::new(86155).unwrap()),
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::visible_private_types,
                        since: "1.0.0",
                        issue: to_nonzero(None),
                    },
                    reason: None,
                    pull: None,
                },
                RemovedFeature {
                    feature: Feature {
                        name: sym::wasm_abi,
                        since: "1.81.0",
                        issue: to_nonzero(Some(83788)),
                    },
                    reason: Some("non-standard wasm ABI is no longer supported"),
                    pull: Some(<NonZero<u32>>::new(127605).unwrap()),
                }];declare_features! (
45    // -------------------------------------------------------------------------
46    // feature-group-start: removed features
47    // -------------------------------------------------------------------------
48
49    // Note that the version indicates when it got *removed*.
50    // When moving an unstable feature here, set the version number to
51    // `CURRENT RUSTC VERSION` with ` ` replaced by `_`.
52    // (But not all features below do this properly; many indicate the
53    // version they got originally added in.)
54
55    /// Allows using the `amdgpu-kernel` ABI.
56    (removed, abi_amdgpu_kernel, "1.77.0", Some(51575), None, 120495),
57    (removed, abi_c_cmse_nonsecure_call, "1.90.0", Some(81391), Some("renamed to abi_cmse_nonsecure_call"), 142146),
58    (removed, abi_unadjusted, "CURRENT_RUSTC_VERSION", None, Some("merged into link_llvm_intrinsics"), 161398),
59    (removed, advanced_slice_patterns, "1.42.0", Some(62254),
60     Some("merged into `#![feature(slice_patterns)]`"), 67712),
61    (removed, allocator, "1.0.0", None, None),
62    /// Allows a test to fail without failing the whole suite.
63    (removed, allow_fail, "1.60.0", Some(46488), Some("removed due to no clear use cases"), 93416),
64    /// Allows users to enforce equality of associated constants `TraitImpl<AssocConst=3>`.
65    (removed, associated_const_equality, "1.94.0", Some(92827),
66     Some("merged into `min_generic_const_args`")),
67    (removed, await_macro, "1.38.0", Some(50547),
68     Some("subsumed by `.await` syntax"), 62293),
69    /// Allows using `box` in patterns (RFC 469).
70    (removed, box_patterns, "CURRENT_RUSTC_VERSION", Some(29641), Some("superseded by `deref_patterns`")),
71    /// Allows using the `box $expr` syntax.
72    (removed, box_syntax, "1.70.0", Some(49733), Some("replaced with `#[rustc_box]`"), 108471),
73    /// Allows capturing disjoint fields in a closure/coroutine (RFC 2229).
74    (removed, capture_disjoint_fields, "1.69.0", Some(53488), Some("stabilized in Rust 2021"), 108550),
75    /// Allows comparing raw pointers during const eval.
76    (removed, const_compare_raw_pointers, "1.46.0", Some(53020),
77     Some("cannot be allowed in const eval in any meaningful way"), 73398),
78    /// Allows limiting the evaluation steps of const expressions
79    (removed, const_eval_limit, "1.72.0", Some(67217), Some("removed the limit entirely"), 103877),
80    /// Allows non-trivial generic constants which have to be manually propagated upwards.
81    (removed, const_evaluatable_checked, "1.56.0", Some(76560), Some("renamed to `generic_const_exprs`"), 88369),
82    /// Allows the definition of `const` functions with some advanced features.
83    (removed, const_fn, "1.54.0", Some(57563),
84     Some("split into finer-grained feature gates"), 85109),
85    /// Allows const generic types (e.g. `struct Foo<const N: usize>(...);`).
86    (removed, const_generics, "1.56.0", Some(44580),
87     Some("removed in favor of `#![feature(adt_const_params)]` and `#![feature(generic_const_exprs)]`"), 88369),
88    /// Allows `[x; N]` where `x` is a constant (RFC 2203).
89    (removed, const_in_array_repeat_expressions,  "1.51.0", Some(49147),
90     Some("removed due to causing promotable bugs"), 80404),
91    /// Allows casting raw pointers to `usize` during const eval.
92    (removed, const_raw_ptr_to_usize_cast, "1.55.0", Some(51910),
93     Some("at compile-time, pointers do not have an integer value, so these casts cannot be properly supported"), 87020),
94    /// Allows `T: ?const Trait` syntax in bounds.
95    (removed, const_trait_bound_opt_out, "1.56.0", Some(67794),
96     Some("Removed in favor of `[const]` bound in #![feature(const_trait_impl)]"), 88328),
97    /// Allows using `crate` as visibility modifier, synonymous with `pub(crate)`.
98    (removed, crate_visibility_modifier, "1.63.0", Some(53120), Some("removed in favor of `pub(crate)`"), 97254),
99    /// Allows using custom attributes (RFC 572).
100    (removed, custom_attribute, "1.0.0", Some(29642),
101     Some("removed in favor of `#![register_tool]`"), 66070),
102    /// Allows the use of `#[derive(Anything)]` as sugar for `#[derive_Anything]`.
103    (removed, custom_derive, "1.32.0", Some(29644),
104     Some("subsumed by `#[proc_macro_derive]`")),
105    /// Allows default type parameters to influence type inference.
106    (removed, default_type_parameter_fallback, "1.82.0", Some(27336),
107     Some("never properly implemented; requires significant design work"), 127655),
108    /// Allows using `#[deprecated_safe]` to deprecate the safeness of a function or trait
109    (removed, deprecated_safe, "1.95.0", Some(94978), Some("never properly implemented, in the way of attribute refactor"), 152554),
110    /// Allows deriving traits as per `SmartPointer` specification
111    (removed, derive_smart_pointer, "1.84.0", Some(123430), Some("replaced by `CoercePointee`"), 131284),
112    /// Allows macros to customize macro argument matcher diagnostics.
113    (removed, diagnostic_on_unmatch_args, "1.98.0", Some(155642), Some("renamed to `diagnostic_on_unmatched_args`"), 157887),
114    /// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
115    (removed, doc_auto_cfg, "1.92.0", Some(43781), Some("merged into `doc_cfg`"), 138907),
116    /// Allows `#[doc(cfg_hide(...))]`.
117    (removed, doc_cfg_hide, "1.92.0", Some(43781), Some("merged into `doc_cfg`"), 138907),
118    /// Allows using `#[doc(keyword = "...")]`.
119    (removed, doc_keyword, "1.58.0", Some(51315),
120     Some("merged into `#![feature(rustdoc_internals)]`"), 90420),
121    /// Allows using `doc(primitive)` without a future-incompat warning.
122    (removed, doc_primitive, "1.58.0", Some(88070),
123     Some("merged into `#![feature(rustdoc_internals)]`"), 90420),
124    /// Allows `#[doc(spotlight)]`.
125    /// The attribute was renamed to `#[doc(notable_trait)]`
126    /// and the feature to `doc_notable_trait`.
127    (removed, doc_spotlight, "1.53.0", Some(45040),
128     Some("renamed to `doc_notable_trait`"), 80965),
129    /// Allows using `#[unsafe_destructor_blind_to_params]` (RFC 1238).
130    (removed, dropck_parametricity, "1.38.0", Some(28498), None),
131    /// Allows making `dyn Trait` well-formed even if `Trait` is not dyn compatible[^1].
132    /// In that case, `dyn Trait: Trait` does not hold. Moreover, coercions and
133    /// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
134    ///
135    /// Renamed from `object_safe_for_dispatch`.
136    ///
137    /// [^1]: Formerly known as "object safe".
138    (removed, dyn_compatible_for_dispatch, "1.87.0", Some(43561),
139     Some("removed, not used heavily and represented additional complexity in dyn compatibility"), 136522),
140    /// Allows `dyn* Trait` objects.
141    (removed, dyn_star, "1.65.0", Some(102425),
142     Some("removed as it was no longer necessary for AFIDT (async fn in dyn trait) support")),
143    /// Uses generic effect parameters for [const] bounds
144    (removed, effects, "1.84.0", Some(102090),
145     Some("removed, redundant with `#![feature(const_trait_impl)]`"), 132479),
146    /// Allows defining `existential type`s.
147    (removed, existential_type, "1.38.0", Some(63063),
148     Some("removed in favor of `#![feature(type_alias_impl_trait)]`")),
149    /// Paths of the form: `extern::foo::bar`
150    (removed, extern_in_paths, "1.33.0", Some(55600),
151     Some("subsumed by `::foo::bar` paths"), 57572),
152    /// Allows `#[doc(include = "some-file")]`.
153    (removed, external_doc, "1.54.0", Some(44732),
154     Some("use #[doc = include_str!(\"filename\")] instead, which handles macro invocations"), 85457),
155    /// Allows using `#[ffi_returns_twice]` on foreign functions.
156    (removed, ffi_returns_twice, "1.78.0", Some(58314),
157     Some("being investigated by the ffi-unwind project group"), 120502),
158    /// Allows generators to be cloned.
159    (removed, generator_clone, "1.75.0", Some(95360), Some("renamed to `coroutine_clone`"), 116958),
160    /// Allows defining generators.
161    (removed, generators, "1.75.0", Some(43122), Some("renamed to `coroutines`"), 116958),
162    /// An extension to the `generic_associated_types` feature, allowing incomplete features.
163    (removed, generic_associated_types_extended, "1.85.0", Some(95451),
164        Some(
165            "feature needs overhaul and reimplementation pending \
166            better implied higher-ranked implied bounds support"
167        ),
168        133768
169    ),
170    (removed, import_shadowing, "1.0.0", None, None),
171    /// Allows in-band quantification of lifetime bindings (e.g., `fn foo(x: &'a u8) -> &'a u8`).
172    (removed, in_band_lifetimes, "1.61.0", Some(44524),
173     Some("removed due to unsolved ergonomic questions and added lifetime resolution complexity"), 93845),
174    /// Allows inferring `'static` outlives requirements (RFC 2093).
175    (removed, infer_static_outlives_requirements, "1.63.0", Some(54185),
176     Some("removed as it caused some confusion and discussion was inactive for years"), 97875),
177    /// Allow anonymous constants from an inline `const` block in pattern position
178    (removed, inline_const_pat, "1.88.0", Some(76001),
179     Some("removed due to implementation concerns as it requires significant refactorings"), 138492),
180    /// A temporary feature gate used to enable parser extensions needed
181    /// to bootstrap fix for #5723.
182    (removed, issue_5723_bootstrap, "1.95.0", None, None),
183    /// Lazily evaluate constants. This allows constants to depend on type parameters.
184    (removed, lazy_normalization_consts, "1.56.0", Some(72219), Some("superseded by `generic_const_exprs`"), 88369),
185    /// Allow to have type alias types for inter-crate use.
186    (removed, lazy_type_alias, "1.72.0", Some(112792), Some("renamed to `checked_type_aliases`"), 158758),
187    /// Changes `impl Trait` to capture all lifetimes in scope.
188    (removed, lifetime_capture_rules_2024, "1.87.0", None, Some("unnecessary -- use edition 2024 instead"), 136787),
189    /// Allows using the `#[link_args]` attribute.
190    (removed, link_args, "1.53.0", Some(29596),
191     Some("removed in favor of using `-C link-arg=ARG` on command line, \
192           which is available from cargo build scripts with `cargo:rustc-link-arg` now"), 83820),
193    (removed, macro_reexport, "1.0.0", Some(29638),
194     Some("subsumed by `pub use`"), 49982),
195    /// Allows using `#[main]` to replace the entrypoint `#[lang = "start"]` calls.
196    (removed, main, "1.53.0", Some(29634), None, 84217),
197    (removed, managed_boxes, "1.0.0", None, None),
198    /// Allows the use of type alias impl trait in function return positions
199    (removed, min_type_alias_impl_trait, "1.56.0", Some(63063),
200     Some("removed in favor of full type_alias_impl_trait"), 87564),
201    /// Make `mut` not reset the binding mode on edition >= 2024.
202    (removed, mut_preserve_binding_mode_2024, "1.80.0", Some(123076), Some("superseded by `ref_pat_eat_one_layer_2024`"), 125168),
203    (removed, needs_allocator, "1.4.0", Some(27389),
204     Some("subsumed by `#![feature(allocator_internals)]`")),
205    /// Allows use of unary negate on unsigned integers, e.g., -e for e: u8
206    (removed, negate_unsigned, "1.0.0", Some(29645), None),
207    /// Allows diverging expressions to fall back to `!` rather than `()`.
208    (removed, never_type_fallback, "1.93.0", Some(65992), Some("removed in favor of unconditional fallback"), 148871),
209    /// Allows `#[no_coverage]` on functions.
210    /// The feature was renamed to `coverage_attribute` and the attribute to `#[coverage(on|off)]`
211    (removed, no_coverage, "1.74.0", Some(84605), Some("renamed to `coverage_attribute`"), 114656),
212    /// Allows `#[no_debug]`.
213    (removed, no_debug, "1.43.0", Some(29721), Some("removed due to lack of demand"), 69667),
214    /// Allows the use of `no_sanitize` attribute.
215    /// The feature was renamed to `sanitize` and the attribute to `#[sanitize(xyz = "on|off")]`
216    (removed, no_sanitize, "1.91.0", Some(39699), Some(r#"renamed to sanitize(xyz = "on|off")"#), 142681),
217    /// Note: this feature was previously recorded in a separate
218    /// `STABLE_REMOVED` list because it, uniquely, was once stable but was
219    /// then removed. But there was no utility storing it separately, so now
220    /// it's in this list.
221    (removed, no_stack_check, "1.0.0", None, None, 40110),
222    /// Allows making `dyn Trait` well-formed even if `Trait` is not dyn compatible (object safe).
223    /// Renamed to `dyn_compatible_for_dispatch`.
224    (removed, object_safe_for_dispatch, "1.83.0", Some(43561),
225     Some("renamed to `dyn_compatible_for_dispatch`"), 131511),
226    /// Allows using `#[omit_gdb_pretty_printer_section]`.
227    (removed, omit_gdb_pretty_printer_section, "1.91.0", None, None, 144738),
228    /// Allows using `#[on_unimplemented(..)]` on traits.
229    /// (Moved to `rustc_attrs`.)
230    (removed, on_unimplemented, "1.40.0", None, None, 65794),
231    /// A way to temporarily opt out of opt-in copy. This will *never* be accepted.
232    (removed, opt_out_copy, "1.0.0", None, None, 20740),
233    /// Allows features specific to OIBIT (now called auto traits).
234    /// Renamed to `auto_traits`.
235    (removed, optin_builtin_traits, "1.50.0", Some(13231),
236     Some("renamed to `auto_traits`"), 79336),
237    /// Allows overlapping impls of marker traits.
238    (removed, overlapping_marker_traits, "1.42.0", Some(29864),
239     Some("removed in favor of `#![feature(marker_trait_attr)]`"), 68544),
240    (removed, panic_implementation, "1.28.0", Some(44489),
241     Some("subsumed by `#[panic_handler]`"), 53619),
242    /// Allows `extern "platform-intrinsic" { ... }`.
243    (removed, platform_intrinsics, "1.78.0", Some(27731),
244     Some("SIMD intrinsics use the regular intrinsics ABI now"), 121516),
245    /// Allows using `#![plugin(myplugin)]`.
246    (removed, plugin, "1.75.0", Some(29597),
247     Some("plugins are no longer supported"), 116412),
248    /// Allows using `#[plugin_registrar]` on functions.
249    (removed, plugin_registrar, "1.75.0", Some(29597),
250     Some("plugins are no longer supported"), 116412),
251    /// Allows exhaustive integer pattern matching with `usize::MAX`/`isize::MIN`/`isize::MAX`.
252    (removed, precise_pointer_size_matching, "1.76.0", Some(56354),
253     Some("removed in favor of half-open ranges"), 118598),
254    (removed, pref_align_of, "1.89.0", Some(91971),
255     Some("removed due to marginal use and inducing compiler complications")),
256    (removed, proc_macro_expr, "1.27.0", Some(54727),
257     Some("subsumed by `#![feature(proc_macro_hygiene)]`"), 52121),
258    (removed, proc_macro_gen, "1.27.0", Some(54727),
259     Some("subsumed by `#![feature(proc_macro_hygiene)]`"), 52121),
260    (removed, proc_macro_mod, "1.27.0", Some(54727),
261     Some("subsumed by `#![feature(proc_macro_hygiene)]`"), 52121),
262    (removed, proc_macro_non_items, "1.27.0", Some(54727),
263     Some("subsumed by `#![feature(proc_macro_hygiene)]`"), 52121),
264    (removed, pub_macro_rules, "1.53.0", Some(78855),
265     Some("removed due to being incomplete, in particular it does not work across crates")),
266    (removed, pushpop_unsafe, "1.2.0", None, None),
267    (removed, quad_precision_float, "1.0.0", None, None),
268    (removed, quote, "1.33.0", Some(29601), None),
269    (removed, ref_pat_everywhere, "1.80.0", Some(123076), Some("superseded by `ref_pat_eat_one_layer_2024`"), 125168),
270    (removed, reflect, "1.0.0", Some(27749), None),
271    /// Allows using the `#[register_attr]` attribute.
272    (removed, register_attr, "1.65.0", Some(66080),
273     Some("removed in favor of `#![register_tool]`"), 66070),
274    (removed, rust_2018_preview, "1.76.0", None,
275     Some("2018 Edition preview is no longer relevant")),
276    /// Allows using the macros:
277    /// + `__diagnostic_used`
278    /// + `__register_diagnostic`
279    /// +`__build_diagnostic_array`
280    (removed, rustc_diagnostic_macros, "1.38.0", None, None, 64139),
281    /// Allows identifying crates that contain sanitizer runtimes.
282    (removed, sanitizer_runtime, "1.17.0", None, None, 65241),
283    (removed, simd, "1.0.0", Some(27731), Some("removed in favor of `#[repr(simd)]`")),
284    /// Allows using `#[start]` on a function indicating that it is the program entrypoint.
285    (removed, start, "1.86.0", Some(29633), Some("not portable enough and never RFC'd"), 134299),
286    /// Allows `#[link(kind = "static-nobundle", ...)]`.
287    (removed, static_nobundle, "1.63.0", Some(37403),
288     Some(r#"subsumed by `#[link(kind = "static", modifiers = "-bundle", ...)]`"#), 95818),
289    /// Allows string patterns to dereference values to match them.
290    (removed, string_deref_patterns, "1.94.0", Some(87121), Some("superseded by `deref_patterns`"), 150530),
291    (removed, struct_inherit, "1.0.0", None, None),
292    /// Allows the use of target_feature when a function is marked inline(always).
293    (removed, target_feature_inline_always, "1.97.0", Some(145574),
294     Some("removed because of unfixable soundness issues")),
295    (removed, test_removed_feature, "1.0.0", None, None),
296    /// Allows using items which are missing stability attributes
297    (removed, unmarked_api, "1.0.0", None, None),
298    /// Allows unnamed fields of struct and union type
299    (removed, unnamed_fields, "1.83.0", Some(49804), Some("feature needs redesign"), 131045),
300    (removed, unsafe_no_drop_flag, "1.0.0", None, None),
301    /// Allows unsized rvalues at arguments and parameters.
302    (removed, unsized_locals, "1.89.0", Some(48055), Some("removed due to implementation concerns; see https://github.com/rust-lang/rust/issues/111942")),
303    (removed, unsized_tuple_coercion, "1.87.0", Some(42877),
304     Some("The feature restricts possible layouts for tuples, and this restriction is not worth it."), 137728),
305    /// Allows `union` fields that don't implement `Copy` as long as they don't have any drop glue.
306    (removed, untagged_unions, "1.64.0", Some(55149),
307     Some("unions with `Copy` and `ManuallyDrop` fields are stable; there is no intent to stabilize more"), 97995),
308    /// Allows `#[unwind(..)]`.
309    ///
310    /// Permits specifying whether a function should permit unwinding or abort on unwind.
311    (removed, unwind_attributes, "1.56.0", Some(58760), Some("use the C-unwind ABI instead"), 86155),
312    (removed, visible_private_types, "1.0.0", None, None),
313    /// Allows `extern "wasm" fn`
314    (removed, wasm_abi, "1.81.0", Some(83788),
315     Some("non-standard wasm ABI is no longer supported"), 127605),
316    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
317    // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
318    // !!!!    !!!!    !!!!    !!!!   !!!!    !!!!    !!!!    !!!!    !!!!    !!!!    !!!!
319
320    // -------------------------------------------------------------------------
321    // feature-group-end: removed features
322    // -------------------------------------------------------------------------
323);