Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/nameres/assoc.rs')
| -rw-r--r-- | crates/hir-def/src/nameres/assoc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/nameres/assoc.rs b/crates/hir-def/src/nameres/assoc.rs index 1b3d10f098..eb7f8b0061 100644 --- a/crates/hir-def/src/nameres/assoc.rs +++ b/crates/hir-def/src/nameres/assoc.rs @@ -167,13 +167,13 @@ impl<'a> AssocItemCollector<'a> { 'items: for &item in assoc_items { let attrs = item_tree.attrs(self.db, self.module_id.krate, ModItem::from(item).into()); - if !attrs.is_cfg_enabled(self.expander.cfg_options()) { + if !attrs.is_cfg_enabled(self.expander.cfg_options(self.db)) { self.diagnostics.push(DefDiagnostic::unconfigured_code( self.module_id.local_id, tree_id, ModItem::from(item).into(), attrs.cfg().unwrap(), - self.expander.cfg_options().clone(), + self.expander.cfg_options(self.db).clone(), )); continue; } |