about summary refs log tree commit diff
path: root/crates/test-utils
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2023-11-14 10:08:19 +0100
committerLukas Wirth <lukastw97@gmail.com>2023-11-14 12:53:14 +0100
commite844784d8db048079db95e5b8b954eb7228e6047 (patch)
tree4c5799fb3d8de3181fd4076f2ce9869f7198c296 /crates/test-utils
parentd6b908ec41df85bb3d557f7be6637968611c58a0 (diff)
downloadrust-e844784d8db048079db95e5b8b954eb7228e6047.tar.gz
rust-e844784d8db048079db95e5b8b954eb7228e6047.zip
Simplify
Diffstat (limited to 'crates/test-utils')
-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 cc41d87f5d9..f2ca9d82ed0 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