We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[lang_item]
core::ptr::Unique
1 parent 65185fd commit e27e48eCopy full SHA for e27e48e
core/src/ptr/unique.rs
@@ -32,6 +32,8 @@ use crate::ptr::NonNull;
32
)]
33
#[doc(hidden)]
34
#[repr(transparent)]
35
+// Lang item used experimentally by Miri to define the semantics of `Unique`.
36
+#[cfg_attr(not(bootstrap), lang = "ptr_unique")]
37
pub struct Unique<T: ?Sized> {
38
pointer: NonNull<T>,
39
// NOTE: this marker has no consequences for variance, but is necessary
0 commit comments