Skip to content

Commit

Permalink
Gate const drop behind const_destruct feature, and fix const_precise_…
Browse files Browse the repository at this point in the history
…live_drops post-drop-elaboration check
  • Loading branch information
compiler-errors committed Nov 22, 2024
1 parent 23a1b31 commit 6f3ec5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 6f3ec5c

Please sign in to comment.