mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix float-split hack not setting up spans correctly
This commit is contained in:
parent
8423893d1c
commit
394d11b0fa
15 changed files with 197 additions and 58 deletions
|
@ -1322,6 +1322,7 @@ fn derive_macro_as_call_id(
|
|||
item_attr: &AstIdWithPath<ast::Adt>,
|
||||
derive_attr_index: AttrId,
|
||||
derive_pos: u32,
|
||||
call_site: SyntaxContextId,
|
||||
krate: CrateId,
|
||||
resolver: impl Fn(path::ModPath) -> Option<(MacroId, MacroDefId)>,
|
||||
) -> Result<(MacroId, MacroDefId, MacroCallId), UnresolvedMacro> {
|
||||
|
@ -1336,8 +1337,7 @@ fn derive_macro_as_call_id(
|
|||
derive_index: derive_pos,
|
||||
derive_attr_index,
|
||||
},
|
||||
//FIXME
|
||||
SyntaxContextId::ROOT,
|
||||
call_site,
|
||||
);
|
||||
Ok((macro_id, def_id, call_id))
|
||||
}
|
||||
|
@ -1367,8 +1367,7 @@ fn attr_macro_as_call_id(
|
|||
attr_args: Arc::new(arg),
|
||||
invoc_attr_index: macro_attr.id,
|
||||
},
|
||||
//FIXME
|
||||
SyntaxContextId::ROOT,
|
||||
macro_attr.ctxt,
|
||||
)
|
||||
}
|
||||
intern::impl_internable!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue