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.
This commit is contained in:
parent
17ea490310
commit
1abb5bc992
3 changed files with 11 additions and 1 deletions
|
@ -692,7 +692,6 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
|
|||
sym::capture_disjoint_fields,
|
||||
sym::inherent_associated_types,
|
||||
sym::type_alias_impl_trait,
|
||||
sym::rustc_insignificant_dtor,
|
||||
sym::unnamed_fields,
|
||||
];
|
||||
|
||||
|
|
2
src/test/ui/feature-gates/rustc_insignificant_dtor.rs
Normal file
2
src/test/ui/feature-gates/rustc_insignificant_dtor.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
#![feature(rustc_insignificant_dtor)] //~ ERROR unknown feature `rustc_insignificant_dtor`
|
||||
fn main() {}
|
|
@ -0,0 +1,9 @@
|
|||
error[E0635]: unknown feature `rustc_insignificant_dtor`
|
||||
--> $DIR/rustc_insignificant_dtor.rs:1:12
|
||||
|
|
||||
LL | #![feature(rustc_insignificant_dtor)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0635`.
|
Loading…
Add table
Reference in a new issue