mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Support new #[rustc_intrinsic] attribute and fallback bodies
This commit is contained in:
parent
78f3112626
commit
36d68c5d0f
9 changed files with 143 additions and 174 deletions
|
@ -370,15 +370,13 @@ pub mod mem {
|
|||
// endregion:drop
|
||||
|
||||
// region:transmute
|
||||
extern "rust-intrinsic" {
|
||||
pub fn transmute<Src, Dst>(src: Src) -> Dst;
|
||||
}
|
||||
#[rustc_intrinsic]
|
||||
pub fn transmute<Src, Dst>(src: Src) -> Dst;
|
||||
// endregion:transmute
|
||||
|
||||
// region:size_of
|
||||
extern "rust-intrinsic" {
|
||||
pub fn size_of<T>() -> usize;
|
||||
}
|
||||
#[rustc_intrinsic]
|
||||
pub fn size_of<T>() -> usize;
|
||||
// endregion:size_of
|
||||
|
||||
// region:discriminant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue