Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_completion/src/completions/attribute/derive.rs')
| -rw-r--r-- | crates/ide_completion/src/completions/attribute/derive.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_completion/src/completions/attribute/derive.rs b/crates/ide_completion/src/completions/attribute/derive.rs index 0daf114788..3cab1918f3 100644 --- a/crates/ide_completion/src/completions/attribute/derive.rs +++ b/crates/ide_completion/src/completions/attribute/derive.rs @@ -1,7 +1,7 @@ //! Completion for derives use hir::{HasAttrs, MacroDef, MacroKind}; use ide_db::{ - helpers::{import_assets::ImportAssets, insert_use::ImportScope, FamousDefs}, + helpers::{import_assets::ImportAssets, insert_use::ImportScope}, SymbolKind, }; use itertools::Itertools; @@ -18,7 +18,7 @@ pub(super) fn complete_derive( ctx: &CompletionContext, existing_derives: &[ast::Path], ) { - let core = FamousDefs(&ctx.sema, ctx.krate).core(); + let core = ctx.famous_defs().core(); let existing_derives: FxHashSet<_> = existing_derives .into_iter() .filter_map(|path| ctx.scope.speculative_resolve_as_mac(&path)) |