about summary refs log tree commit diff
path: root/library/core/src/ptr
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-06-16 23:45:01 +0000
committerMichael Goulet <michael@errs.io>2023-06-20 04:38:55 +0000
commitca68cf0d46ec3485be177eeec3f4a4662b21bc8c (patch)
treec7571dca43b2bd7d7c391c4640c20dd6e993c797 /library/core/src/ptr
parent91e5c3f2e5d0a20ffc9b2e80ea049e77d5721da0 (diff)
downloadrust-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.rs4
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"]