2019-08-20 11:41:18 -05:00
|
|
|
//! List of the removed feature gates.
|
|
|
|
|
|
|
|
use crate::symbol::{Symbol, sym};
|
|
|
|
|
|
|
|
macro_rules! declare_features {
|
2019-08-24 10:47:26 -05:00
|
|
|
($(
|
|
|
|
$(#[doc = $doc:tt])* (removed, $feature:ident, $ver:expr, $issue:expr, None, $reason:expr),
|
|
|
|
)+) => {
|
2019-08-20 11:41:18 -05:00
|
|
|
/// Represents unstable features which have since been removed (it was once Active)
|
|
|
|
pub const REMOVED_FEATURES: &[(Symbol, &str, Option<u32>, Option<&str>)] = &[
|
|
|
|
$((sym::$feature, $ver, $issue, $reason)),+
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2019-08-24 10:47:26 -05:00
|
|
|
($(
|
|
|
|
$(#[doc = $doc:tt])* (stable_removed, $feature:ident, $ver:expr, $issue:expr, None),
|
|
|
|
)+) => {
|
2019-08-20 11:41:18 -05:00
|
|
|
/// Represents stable features which have since been removed (it was once Accepted)
|
|
|
|
pub const STABLE_REMOVED_FEATURES: &[(Symbol, &str, Option<u32>, Option<&str>)] = &[
|
|
|
|
$((sym::$feature, $ver, $issue, None)),+
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
declare_features! (
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
// feature-group-start: removed features
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(removed, import_shadowing, "1.0.0", None, None, None),
|
|
|
|
(removed, managed_boxes, "1.0.0", None, None, None),
|
2019-08-24 10:47:26 -05:00
|
|
|
/// Allows use of unary negate on unsigned integers, e.g., -e for e: u8
|
2019-08-20 11:41:18 -05:00
|
|
|
(removed, negate_unsigned, "1.0.0", Some(29645), None, None),
|
|
|
|
(removed, reflect, "1.0.0", Some(27749), None, None),
|
2019-08-24 10:47:26 -05:00
|
|
|
/// A way to temporarily opt out of opt in copy. This will *never* be accepted.
|
2019-08-20 11:41:18 -05:00
|
|
|
(removed, opt_out_copy, "1.0.0", None, None, None),
|
|
|
|
(removed, quad_precision_float, "1.0.0", None, None, None),
|
|
|
|
(removed, struct_inherit, "1.0.0", None, None, None),
|
|
|
|
(removed, test_removed_feature, "1.0.0", None, None, None),
|
|
|
|
(removed, visible_private_types, "1.0.0", None, None, None),
|
|
|
|
(removed, unsafe_no_drop_flag, "1.0.0", None, None, None),
|
2019-08-24 10:47:26 -05:00
|
|
|
/// Allows using items which are missing stability attributes
|
2019-08-20 11:41:18 -05:00
|
|
|
(removed, unmarked_api, "1.0.0", None, None, None),
|
|
|
|
(removed, allocator, "1.0.0", None, None, None),
|
|
|
|
(removed, simd, "1.0.0", Some(27731), None,
|
|
|
|
Some("removed in favor of `#[repr(simd)]`")),
|
|
|
|
(removed, advanced_slice_patterns, "1.0.0", Some(62254), None,
|
|
|
|
Some("merged into `#![feature(slice_patterns)]`")),
|
|
|
|
(removed, macro_reexport, "1.0.0", Some(29638), None,
|
|
|
|
Some("subsumed by `pub use`")),
|
|
|
|
(removed, pushpop_unsafe, "1.2.0", None, None, None),
|
|
|
|
(removed, needs_allocator, "1.4.0", Some(27389), None,
|
|
|
|
Some("subsumed by `#![feature(allocator_internals)]`")),
|
|
|
|
(removed, proc_macro_mod, "1.27.0", Some(54727), None,
|
|
|
|
Some("subsumed by `#![feature(proc_macro_hygiene)]`")),
|
|
|
|
(removed, proc_macro_expr, "1.27.0", Some(54727), None,
|
|
|
|
Some("subsumed by `#![feature(proc_macro_hygiene)]`")),
|
|
|
|
(removed, proc_macro_non_items, "1.27.0", Some(54727), None,
|
|
|
|
Some("subsumed by `#![feature(proc_macro_hygiene)]`")),
|
|
|
|
(removed, proc_macro_gen, "1.27.0", Some(54727), None,
|
|
|
|
Some("subsumed by `#![feature(proc_macro_hygiene)]`")),
|
|
|
|
(removed, panic_implementation, "1.28.0", Some(44489), None,
|
|
|
|
Some("subsumed by `#[panic_handler]`")),
|
2019-08-24 10:47:26 -05:00
|
|
|
/// Allows the use of `#[derive(Anything)]` as sugar for `#[derive_Anything]`.
|
2019-08-20 11:41:18 -05:00
|
|
|
(removed, custom_derive, "1.32.0", Some(29644), None,
|
|
|
|
Some("subsumed by `#[proc_macro_derive]`")),
|
2019-08-24 10:47:26 -05:00
|
|
|
/// Paths of the form: `extern::foo::bar`
|
2019-08-20 11:41:18 -05:00
|
|
|
(removed, extern_in_paths, "1.33.0", Some(55600), None,
|
|
|
|
Some("subsumed by `::foo::bar` paths")),
|
|
|
|
(removed, quote, "1.33.0", Some(29601), None, None),
|
2019-08-24 10:47:26 -05:00
|
|
|
/// Allows using `#[unsafe_destructor_blind_to_params]` (RFC 1238).
|
2019-08-20 11:41:18 -05:00
|
|
|
(removed, dropck_parametricity, "1.38.0", Some(28498), None, None),
|
|
|
|
(removed, await_macro, "1.38.0", Some(50547), None,
|
|
|
|
Some("subsumed by `.await` syntax")),
|
2019-08-24 10:47:26 -05:00
|
|
|
/// Allows defining `existential type`s.
|
2019-08-20 11:41:18 -05:00
|
|
|
(removed, existential_type, "1.38.0", Some(63063), None,
|
|
|
|
Some("removed in favor of `#![feature(type_alias_impl_trait)]`")),
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
// feature-group-end: removed features
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
);
|
|
|
|
|
|
|
|
declare_features! (
|
|
|
|
(stable_removed, no_stack_check, "1.0.0", None, None),
|
|
|
|
);
|