mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Support more intrinsics in mir interpreter
This commit is contained in:
parent
403433a355
commit
5eb4796d3d
6 changed files with 493 additions and 60 deletions
|
@ -20,6 +20,7 @@
|
|||
//! deref_mut: deref
|
||||
//! deref: sized
|
||||
//! derive:
|
||||
//! discriminant:
|
||||
//! drop:
|
||||
//! eq: sized
|
||||
//! error: fmt
|
||||
|
@ -129,6 +130,14 @@ pub mod marker {
|
|||
#[lang = "phantom_data"]
|
||||
pub struct PhantomData<T: ?Sized>;
|
||||
// endregion:phantom_data
|
||||
|
||||
// region:discriminant
|
||||
#[lang = "discriminant_kind"]
|
||||
pub trait DiscriminantKind {
|
||||
#[lang = "discriminant_type"]
|
||||
type Discriminant;
|
||||
}
|
||||
// endregion:discriminant
|
||||
}
|
||||
|
||||
// region:default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue