Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/test-utils/src/minicore.rs')
-rw-r--r--crates/test-utils/src/minicore.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/crates/test-utils/src/minicore.rs b/crates/test-utils/src/minicore.rs
index cc41d87f5d..f2ca9d82ed 100644
--- a/crates/test-utils/src/minicore.rs
+++ b/crates/test-utils/src/minicore.rs
@@ -44,7 +44,7 @@
//! panic: fmt
//! phantom_data:
//! pin:
-//! pointee:
+//! pointee: copy, send, sync, ord, hash, unpin
//! range:
//! result:
//! send: sized
@@ -54,6 +54,7 @@
//! sync: sized
//! transmute:
//! try: infallible
+//! unpin: sized
//! unsize: sized
#![rustc_coherence_is_core]
@@ -89,6 +90,11 @@ pub mod marker {
pub trait Unsize<T: ?Sized> {}
// endregion:unsize
+ // region:unpin
+ #[lang = "unpin"]
+ pub auto trait Unpin {}
+ // endregion:unpin
+
// region:copy
#[lang = "copy"]
pub trait Copy: Clone {}
@@ -387,9 +393,10 @@ pub mod ptr {
// region:pointee
#[lang = "pointee_trait"]
+ #[rustc_deny_explicit_impl(implement_via_object = false)]
pub trait Pointee {
#[lang = "metadata_type"]
- type Metadata;
+ type Metadata: Copy + Send + Sync + Ord + Hash + Unpin;
}
// endregion:pointee
// region:non_null