internal: switch some tests to minicore

This commit is contained in:
Aleksey Kladov 2021-06-15 21:11:53 +03:00
parent f521e41853
commit f841369fee
2 changed files with 88 additions and 118 deletions

View file

@ -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<T: ?Sized> {}
// endregion:sized
// endregion:unsize
}
pub mod ops {
@ -44,6 +47,8 @@ pub mod ops {
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
// endregion:coerce_unsized
}
pub use self::unsize::CoerceUnsized; // :coerce_unsized
}
pub mod prelude {