File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -957,6 +957,7 @@ marker_impls! {
957
957
#[ lang = "destruct" ]
958
958
#[ rustc_on_unimplemented( message = "can't drop `{Self}`" , append_const_msg) ]
959
959
#[ rustc_deny_explicit_impl( implement_via_object = false ) ]
960
+ #[ cfg_attr( not( bootstrap) , const_trait) ]
960
961
pub trait Destruct { }
961
962
962
963
/// A marker for tuple types.
Original file line number Diff line number Diff line change 203
203
/// [nomicon]: ../../nomicon/phantom-data.html#an-exception-the-special-case-of-the-standard-library-and-its-unstable-may_dangle
204
204
#[ lang = "drop" ]
205
205
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
206
- // FIXME(const_trait_impl) #[ const_trait]
206
+ # [ cfg_attr ( not ( bootstrap ) , const_trait) ]
207
207
pub trait Drop {
208
208
/// Executes the destructor for this type.
209
209
///
You can’t perform that action at this time.
0 commit comments