1
Fork 0

Add Destructible for replacing ~const Drop

This commit is contained in:
Deadbeef 2022-03-13 15:04:01 +11:00
parent 051d1176b7
commit 4df2a28aee
No known key found for this signature in database
GPG key ID: 6D017A96D8E6C2F9
3 changed files with 9 additions and 0 deletions

View file

@ -792,6 +792,13 @@ impl<T: ?Sized> Unpin for *const T {}
#[stable(feature = "pin_raw", since = "1.38.0")]
impl<T: ?Sized> Unpin for *mut T {}
/// A marker for types that can be dropped.
///
/// The compiler logic for this trait is currently unimplemented.
#[unstable(feature = "const_trait_impl", issue = "67792")]
#[cfg_attr(not(bootstrap), lang = "destructible")]
pub trait Destructible {}
/// Implementations of `Copy` for primitive types.
///
/// Implementations that cannot be described in Rust