mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +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
|
@ -16,7 +16,7 @@ use crate::{
|
|||
pub(super) fn complete_derive(acc: &mut Completions, ctx: &CompletionContext, attr: &ast::Attr) {
|
||||
let core = ctx.famous_defs().core();
|
||||
let existing_derives: FxHashSet<_> =
|
||||
ctx.sema.resolve_derive_macro(attr).into_iter().flatten().collect();
|
||||
ctx.sema.resolve_derive_macro(attr).into_iter().flatten().flatten().collect();
|
||||
|
||||
for (name, mac) in get_derives_in_scope(ctx) {
|
||||
if existing_derives.contains(&mac) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue