From 6f3ec5caf86dc4341f35d050f409deefc13119ef Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Tue, 19 Nov 2024 17:08:52 +0000 Subject: [PATCH] Gate const drop behind const_destruct feature, and fix const_precise_live_drops post-drop-elaboration check --- core/src/marker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/marker.rs b/core/src/marker.rs index c8ea52a1fb0b4..bd1a8a02dbf47 100644 --- a/core/src/marker.rs +++ b/core/src/marker.rs @@ -953,7 +953,7 @@ marker_impls! { /// /// This should be used for `~const` bounds, /// as non-const bounds will always hold for every type. -#[unstable(feature = "const_trait_impl", issue = "67792")] +#[unstable(feature = "const_destruct", issue = "10")] #[lang = "destruct"] #[rustc_on_unimplemented(message = "can't drop `{Self}`", append_const_msg)] #[rustc_deny_explicit_impl(implement_via_object = false)]