diff options
Diffstat (limited to 'crates/test_utils')
-rw-r--r-- | crates/test_utils/src/minicore.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/test_utils/src/minicore.rs b/crates/test_utils/src/minicore.rs index 629c06ed0..8f8f1c9f8 100644 --- a/crates/test_utils/src/minicore.rs +++ b/crates/test_utils/src/minicore.rs | |||
@@ -9,7 +9,8 @@ | |||
9 | //! | 9 | //! |
10 | //! Available flags: | 10 | //! Available flags: |
11 | //! sized: | 11 | //! sized: |
12 | //! coerce_unsized: sized | 12 | //! unsize: sized |
13 | //! coerce_unsized: unsize | ||
13 | 14 | ||
14 | pub mod marker { | 15 | pub mod marker { |
15 | // region:sized | 16 | // region:sized |
@@ -17,10 +18,12 @@ pub mod marker { | |||
17 | #[fundamental] | 18 | #[fundamental] |
18 | #[rustc_specialization_trait] | 19 | #[rustc_specialization_trait] |
19 | pub trait Sized {} | 20 | pub trait Sized {} |
21 | // endregion:sized | ||
20 | 22 | ||
23 | // region:unsize | ||
21 | #[lang = "unsize"] | 24 | #[lang = "unsize"] |
22 | pub trait Unsize<T: ?Sized> {} | 25 | pub trait Unsize<T: ?Sized> {} |
23 | // endregion:sized | 26 | // endregion:unsize |
24 | } | 27 | } |
25 | 28 | ||
26 | pub mod ops { | 29 | pub mod ops { |
@@ -44,6 +47,8 @@ pub mod ops { | |||
44 | impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {} | 47 | impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {} |
45 | // endregion:coerce_unsized | 48 | // endregion:coerce_unsized |
46 | } | 49 | } |
50 | |||
51 | pub use self::unsize::CoerceUnsized; // :coerce_unsized | ||
47 | } | 52 | } |
48 | 53 | ||
49 | pub mod prelude { | 54 | pub mod prelude { |