1
Fork 0

Rollup merge of #138477 - compiler-errors:deny-bikeshed-guaranteed-no-drop, r=lcnr

Deny impls for `BikeshedGuaranteedNoDrop`

r? lcnr
This commit is contained in:
León Orell Valerian Liehr 2025-03-14 17:26:36 +01:00 committed by GitHub
commit c42866f89d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -465,9 +465,13 @@ impl<T: ?Sized> Copy for &T {}
/// Notably, this doesn't include all trivially-destructible types for semver
/// reasons.
///
/// Bikeshed name for now.
/// Bikeshed name for now. This trait does not do anything other than reflect the
/// set of types that are allowed within unions for field validity.
#[unstable(feature = "bikeshed_guaranteed_no_drop", issue = "none")]
#[lang = "bikeshed_guaranteed_no_drop"]
#[rustc_deny_explicit_impl]
#[rustc_do_not_implement_via_object]
#[doc(hidden)]
pub trait BikeshedGuaranteedNoDrop {}
/// Types for which it is safe to share references between threads.