Rollup merge of #145972 - neeko-cat:patch-2, r=ibraheemdev

fix `core::marker::Destruct` doc

`~const` bounds are now `[const]` I think...

Related:   rust-lang/rust#143874, rust-lang/rust#133214
This commit is contained in:
Stuart Cook
2025-08-29 12:54:13 +10:00
committed by GitHub

View File

@@ -1049,7 +1049,7 @@ marker_impls! {
/// A marker for types that can be dropped.
///
/// This should be used for `~const` bounds,
/// This should be used for `[const]` bounds,
/// as non-const bounds will always hold for every type.
#[unstable(feature = "const_destruct", issue = "133214")]
#[rustc_const_unstable(feature = "const_destruct", issue = "133214")]