mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +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
|
@ -13,7 +13,6 @@ use syntax::{ast, Parse};
|
|||
use triomphe::Arc;
|
||||
|
||||
use crate::{
|
||||
attr::Attrs,
|
||||
db::DefDatabase,
|
||||
expander::{Expander, Mark},
|
||||
item_tree::{self, AssocItem, FnFlags, ItemTree, ItemTreeId, MacroCall, ModItem, TreeId},
|
||||
|
@ -37,8 +36,6 @@ pub struct FunctionData {
|
|||
pub name: Name,
|
||||
pub params: Box<[TypeRefId]>,
|
||||
pub ret_type: TypeRefId,
|
||||
// FIXME: why are these stored here? They should be accessed via the query
|
||||
pub attrs: Attrs,
|
||||
pub visibility: RawVisibility,
|
||||
pub abi: Option<Symbol>,
|
||||
pub legacy_const_generics_indices: Option<Box<Box<[u32]>>>,
|
||||
|
@ -115,7 +112,6 @@ impl FunctionData {
|
|||
.filter_map(|(_, param)| param.type_ref)
|
||||
.collect(),
|
||||
ret_type: func.ret_type,
|
||||
attrs: item_tree.attrs(db, krate, ModItem::from(loc.id.value).into()),
|
||||
visibility,
|
||||
abi: func.abi.clone(),
|
||||
legacy_const_generics_indices,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue