diff options
| author | Michael Goulet <michael@errs.io> | 2023-06-16 23:45:01 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-06-20 04:38:55 +0000 |
| commit | ca68cf0d46ec3485be177eeec3f4a4662b21bc8c (patch) | |
| tree | c7571dca43b2bd7d7c391c4640c20dd6e993c797 /library/core/src/ptr | |
| parent | 91e5c3f2e5d0a20ffc9b2e80ea049e77d5721da0 (diff) | |
| download | rust-ca68cf0d46ec3485be177eeec3f4a4662b21bc8c.tar.gz rust-ca68cf0d46ec3485be177eeec3f4a4662b21bc8c.zip | |
Merge attrs, better validation
Diffstat (limited to 'library/core/src/ptr')
| -rw-r--r-- | library/core/src/ptr/metadata.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ptr/metadata.rs b/library/core/src/ptr/metadata.rs index 34f31fb9fc6..daaa44b1d9a 100644 --- a/library/core/src/ptr/metadata.rs +++ b/library/core/src/ptr/metadata.rs @@ -50,8 +50,8 @@ use crate::hash::{Hash, Hasher}; /// /// [`to_raw_parts`]: *const::to_raw_parts #[lang = "pointee_trait"] -#[rustc_deny_explicit_impl] -#[cfg_attr(not(bootstrap), rustc_do_not_implement_via_object)] +#[cfg_attr(not(bootstrap), rustc_deny_explicit_impl(implement_via_object = false))] +#[cfg_attr(bootstrap, rustc_deny_explicit_impl)] pub trait Pointee { /// The type for metadata in pointers and references to `Self`. #[lang = "metadata_type"] |
