diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-14 03:07:36 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-14 03:11:43 +0000 |
| commit | 4c32adbadbeddfcff1691269e602c89ba9635a50 (patch) | |
| tree | fb79516d2bcfbc29437f7d465309f34f846d42b0 | |
| parent | cbfdf0b014cb04982a9cbeec1578001001167f6e (diff) | |
| download | rust-4c32adbadbeddfcff1691269e602c89ba9635a50.tar.gz rust-4c32adbadbeddfcff1691269e602c89ba9635a50.zip | |
Deny impls for BikeshedGuaranteedNoDrop
| -rw-r--r-- | library/core/src/marker.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index e234f105b0b..a4ab4674f4a 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -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. |
