Skip to content

Commit 6400d90

Browse files
committed
Add a no-op feature gate
1 parent e7f4317 commit 6400d90

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,11 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
655655
DuplicatesOk, EncodeCrossCrate::Yes,
656656
"allow_internal_unstable side-steps feature gating and stability checks",
657657
),
658+
gated!(
659+
impl_stability, Normal, template!(Word, List: "feat1, feat2, ..."),
660+
DuplicatesOk, EncodeCrossCrate::Yes,
661+
"allow unstable impl",
662+
),
658663
gated!(
659664
allow_internal_unsafe, Normal, template!(Word), WarnFollowing,
660665
EncodeCrossCrate::No, "allow_internal_unsafe side-steps the unsafe_code lint",

compiler/rustc_feature/src/unstable.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,13 @@ declare_features! (
213213
(internal, custom_mir, "1.65.0", None),
214214
/// Outputs useful `assert!` messages
215215
(unstable, generic_assert, "1.63.0", None),
216+
<<<<<<< HEAD
216217
/// Allows using the #[rustc_intrinsic] attribute.
218+
=======
219+
/// Allow declaring an impl as unstable.
220+
(internal, impl_stability, "CURRENT_RUSTC_VERSION", None),
221+
/// Allows using the `rust-intrinsic`'s "ABI".
222+
>>>>>>> bde3d4141a1 (Add a no-op feature gate)
217223
(internal, intrinsics, "1.0.0", None),
218224
/// Allows using `#[lang = ".."]` attribute for linking items to special compiler logic.
219225
(internal, lang_items, "1.0.0", None),

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ symbols! {
11511151
ignore,
11521152
impl_header_lifetime_elision,
11531153
impl_lint_pass,
1154+
impl_stability,
11541155
impl_trait_in_assoc_type,
11551156
impl_trait_in_bindings,
11561157
impl_trait_in_fn_trait_return,

0 commit comments

Comments
 (0)