mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: switch some tests to minicore
This commit is contained in:
parent
f521e41853
commit
f841369fee
2 changed files with 88 additions and 118 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue