We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f94853d commit ef0c227Copy full SHA for ef0c227
core/src/marker.rs
@@ -957,6 +957,7 @@ marker_impls! {
957
#[lang = "destruct"]
958
#[rustc_on_unimplemented(message = "can't drop `{Self}`", append_const_msg)]
959
#[rustc_deny_explicit_impl(implement_via_object = false)]
960
+#[cfg_attr(not(bootstrap), const_trait)]
961
pub trait Destruct {}
962
963
/// A marker for tuple types.
core/src/ops/drop.rs
@@ -203,7 +203,7 @@
203
/// [nomicon]: ../../nomicon/phantom-data.html#an-exception-the-special-case-of-the-standard-library-and-its-unstable-may_dangle
204
#[lang = "drop"]
205
#[stable(feature = "rust1", since = "1.0.0")]
206
-// FIXME(const_trait_impl) #[const_trait]
207
pub trait Drop {
208
/// Executes the destructor for this type.
209
///
0 commit comments