Skip to content

Commit 1abb5bc

Browse files
committed
Don't make rustc_insignificant_dtor feature gate
This isn't a feature gate, it's an attribute that is feature gated behind the `rustc_attrs` attribute. Closes #85680.
1 parent 17ea490 commit 1abb5bc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

compiler/rustc_feature/src/active.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
692692
sym::capture_disjoint_fields,
693693
sym::inherent_associated_types,
694694
sym::type_alias_impl_trait,
695-
sym::rustc_insignificant_dtor,
696695
sym::unnamed_fields,
697696
];
698697

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#![feature(rustc_insignificant_dtor)] //~ ERROR unknown feature `rustc_insignificant_dtor`
2+
fn main() {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0635]: unknown feature `rustc_insignificant_dtor`
2+
--> $DIR/rustc_insignificant_dtor.rs:1:12
3+
|
4+
LL | #![feature(rustc_insignificant_dtor)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0635`.

0 commit comments

Comments
 (0)