mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 14:24:08 +00:00
Add const_trait_impl
feature gate
This commit is contained in:
parent
72b2bd55ed
commit
63e2e44eb9
@ -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,
|
||||
];
|
||||
|
@ -219,6 +219,7 @@ symbols! {
|
||||
const_raw_ptr_deref,
|
||||
const_raw_ptr_to_usize_cast,
|
||||
const_transmute,
|
||||
const_trait_impl,
|
||||
contents,
|
||||
context,
|
||||
convert,
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user