Skip to content

Commit 4404a4e

Browse files
author
Charisee
committed
updating the feature-gate listing and do not require the feature-gate to use the feature
1 parent 502d6aa commit 4404a4e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

compiler/rustc_feature/src/accepted.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ declare_features! (
7070
(accepted, cfg_attr_multi, "1.33.0", Some(54881), None),
7171
/// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.
7272
(accepted, cfg_doctest, "1.40.0", Some(62210), None),
73+
/// Enables `#[cfg(panic = "...")]` config key.
74+
(accepted, cfg_panic, "1.60.0", Some(77443), None),
7375
/// Allows `cfg(target_feature = "...")`.
7476
(accepted, cfg_target_feature, "1.27.0", Some(29717), None),
7577
/// Allows `cfg(target_has_atomic = "...")`.

compiler/rustc_feature/src/active.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,6 @@ declare_features! (
303303
(active, c_variadic, "1.34.0", Some(44930), None),
304304
/// Allows capturing disjoint fields in a closure/generator (RFC 2229).
305305
(incomplete, capture_disjoint_fields, "1.49.0", Some(53488), None),
306-
/// Enables `#[cfg(panic = "...")]` config key.
307-
(active, cfg_panic, "1.49.0", Some(77443), None),
308306
/// Allows the use of `#[cfg(sanitize = "option")]`; set when -Zsanitizer is used.
309307
(active, cfg_sanitize, "1.41.0", Some(39699), None),
310308
/// Allows `cfg(target_abi = "...")`.

compiler/rustc_feature/src/builtin_attrs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const GATED_CFGS: &[GatedCfg] = &[
3333
),
3434
(sym::sanitize, sym::cfg_sanitize, cfg_fn!(cfg_sanitize)),
3535
(sym::version, sym::cfg_version, cfg_fn!(cfg_version)),
36-
(sym::panic, sym::cfg_panic, cfg_fn!(cfg_panic)),
3736
];
3837

3938
/// Find a gated cfg determined by the `pred`icate which is given the cfg's name.

0 commit comments

Comments
 (0)