Add const_trait_impl feature gate

This commit is contained in:
Dylan MacKenzie 2020-01-02 15:45:48 -08:00
parent 72b2bd55ed
commit 63e2e44eb9
3 changed files with 6 additions and 0 deletions

View File

@ -544,6 +544,9 @@ declare_features! (
/// For example, you can write `x @ Some(y)`.
(active, bindings_after_at, "1.41.0", Some(65490), None),
/// Allows `impl const Trait for T` syntax.
(active, const_trait_impl, "1.42.0", Some(67792), None),
// -------------------------------------------------------------------------
// feature-group-end: actual feature gates
// -------------------------------------------------------------------------
@ -559,4 +562,5 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
sym::or_patterns,
sym::let_chains,
sym::raw_dylib,
sym::const_trait_impl,
];

View File

@ -219,6 +219,7 @@ symbols! {
const_raw_ptr_deref,
const_raw_ptr_to_usize_cast,
const_transmute,
const_trait_impl,
contents,
context,
convert,

View File

@ -909,6 +909,7 @@ pub fn check_crate(
gate_all!(or_patterns, "or-patterns syntax is experimental");
gate_all!(const_extern_fn, "`const extern fn` definitions are unstable");
gate_all!(raw_ref_op, "raw address of syntax is experimental");
gate_all!(const_trait_impl, "const trait impls are experimental");
// All uses of `gate_all!` below this point were added in #65742,
// and subsequently disabled (with the non-early gating readded).