mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 10:39:45 +00:00
Add regression tests to some S-blocked-on-new-solver issues
That were fixed by the migration.
This commit is contained in:
parent
760d378e4c
commit
40487c6a60
2 changed files with 137 additions and 1 deletions
|
|
@ -55,7 +55,7 @@
|
|||
//! panic: fmt
|
||||
//! phantom_data:
|
||||
//! pin:
|
||||
//! pointee: copy, send, sync, ord, hash, unpin
|
||||
//! pointee: copy, send, sync, ord, hash, unpin, phantom_data
|
||||
//! range:
|
||||
//! receiver: deref
|
||||
//! result:
|
||||
|
|
@ -504,6 +504,16 @@ pub mod ptr {
|
|||
#[lang = "metadata_type"]
|
||||
type Metadata: Copy + Send + Sync + Ord + Hash + Unpin;
|
||||
}
|
||||
|
||||
#[lang = "dyn_metadata"]
|
||||
pub struct DynMetadata<Dyn: PointeeSized> {
|
||||
_phantom: crate::marker::PhantomData<Dyn>,
|
||||
}
|
||||
|
||||
pub const fn metadata<T: PointeeSized>(ptr: *const T) -> <T as Pointee>::Metadata {
|
||||
loop {}
|
||||
}
|
||||
|
||||
// endregion:pointee
|
||||
// region:non_null
|
||||
#[rustc_layout_scalar_valid_range_start(1)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue