aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-15 19:11:53 +0100
committerAleksey Kladov <[email protected]>2021-06-15 19:11:53 +0100
commitf841369fee0f49125c83046340b228b032ebc702 (patch)
treec165c15099a73638f6082a5c3ceef62654cdcc0a /crates/test_utils/src
parentf521e4185323699cd5d063b2704367a319583982 (diff)
internal: switch some tests to minicore
Diffstat (limited to 'crates/test_utils/src')
-rw-r--r--crates/test_utils/src/minicore.rs9
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
14pub mod marker { 15pub 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
26pub mod ops { 29pub 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
49pub mod prelude { 54pub mod prelude {