From f841369fee0f49125c83046340b228b032ebc702 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 15 Jun 2021 21:11:53 +0300 Subject: internal: switch some tests to minicore --- crates/test_utils/src/minicore.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crates/test_utils') 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 @@ //! //! Available flags: //! sized: -//! coerce_unsized: sized +//! unsize: sized +//! coerce_unsized: unsize pub mod marker { // region:sized @@ -17,10 +18,12 @@ pub mod marker { #[fundamental] #[rustc_specialization_trait] pub trait Sized {} + // endregion:sized + // region:unsize #[lang = "unsize"] pub trait Unsize {} - // endregion:sized + // endregion:unsize } pub mod ops { @@ -44,6 +47,8 @@ pub mod ops { impl, U: ?Sized> CoerceUnsized<*const U> for *const T {} // endregion:coerce_unsized } + + pub use self::unsize::CoerceUnsized; // :coerce_unsized } pub mod prelude { -- cgit v1.2.3