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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-completion/src/completions/attribute/derive.rs b/crates/ide-completion/src/completions/attribute/derive.rs
index 267d92b6c0..57ea609a40 100644
--- a/crates/ide-completion/src/completions/attribute/derive.rs
+++ b/crates/ide-completion/src/completions/attribute/derive.rs
@@ -56,7 +56,7 @@ pub(crate) fn complete_derive_path(
_ => return,
};
- match (core, mac.module(ctx.db).krate()) {
+ match (core, mac.module(ctx.db).krate(ctx.db)) {
// show derive dependencies for `core`/`std` derives
(Some(core), mac_krate) if core == mac_krate => {}
_ => return acc.add_macro(ctx, path_ctx, mac, name),