mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
internal: Record unresolved derive invocations in hir
This commit is contained in:
parent
0e5d8883cc
commit
44d61766b5
7 changed files with 55 additions and 28 deletions
|
@ -248,7 +248,7 @@ impl SourceToDefCtx<'_, '_> {
|
|||
&mut self,
|
||||
item: InFile<&ast::Item>,
|
||||
src: InFile<ast::Attr>,
|
||||
) -> Option<&[MacroCallId]> {
|
||||
) -> Option<&[Option<MacroCallId>]> {
|
||||
let map = self.dyn_map(item)?;
|
||||
map[keys::DERIVE_MACRO].get(&src).map(AsRef::as_ref)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue