make rustc_allow_const_fn_unstable an actual rustc_attrs attribute
This commit is contained in:
parent
d1a11b670b
commit
83ef5059d6
11 changed files with 98 additions and 105 deletions
|
|
@ -1208,7 +1208,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
|||
rustc_intrinsic_const_stable_indirect, Normal,
|
||||
template!(Word), WarnFollowing, EncodeCrossCrate::No, "this is an internal implementation detail",
|
||||
),
|
||||
gated!(
|
||||
rustc_attr!(
|
||||
rustc_allow_const_fn_unstable, Normal,
|
||||
template!(Word, List: &["feat1, feat2, ..."]), DuplicatesOk, EncodeCrossCrate::No,
|
||||
"rustc_allow_const_fn_unstable side-steps feature gating and stability checks"
|
||||
|
|
|
|||
|
|
@ -287,10 +287,6 @@ declare_features! (
|
|||
(internal, panic_runtime, "1.10.0", Some(32837)),
|
||||
/// Allows using pattern types.
|
||||
(internal, pattern_types, "1.79.0", Some(123646)),
|
||||
/// Allows using `#[rustc_allow_const_fn_unstable]`.
|
||||
/// This is an attribute on `const fn` for the same
|
||||
/// purpose as `#[allow_internal_unstable]`.
|
||||
(internal, rustc_allow_const_fn_unstable, "1.49.0", Some(69399)),
|
||||
/// Allows using compiler's own crates.
|
||||
(unstable, rustc_private, "1.0.0", Some(27812)),
|
||||
/// Allows using internal rustdoc features like `doc(keyword)`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue