We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[derive]
1 parent 505329b commit 39533adCopy full SHA for 39533ad
crates/ide_completion/src/completions/attribute/derive.rs
@@ -50,8 +50,7 @@ fn get_derive_names_in_scope(ctx: &CompletionContext) -> FxHashSet<String> {
50
let mut result = FxHashSet::default();
51
ctx.scope.process_all_names(&mut |name, scope_def| {
52
if let hir::ScopeDef::MacroDef(mac) = scope_def {
53
- // FIXME kind() doesn't check whether proc-macro is a derive
54
- if mac.kind() == hir::MacroKind::Derive || mac.kind() == hir::MacroKind::ProcMacro {
+ if mac.kind() == hir::MacroKind::Derive {
55
result.insert(name.to_string());
56
}
57
0 commit comments