Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store/scope.rs')
-rw-r--r--crates/hir-def/src/expr_store/scope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-def/src/expr_store/scope.rs b/crates/hir-def/src/expr_store/scope.rs
index 2250cf5f16..22a3a7b079 100644
--- a/crates/hir-def/src/expr_store/scope.rs
+++ b/crates/hir-def/src/expr_store/scope.rs
@@ -64,7 +64,7 @@ impl ExprScopes {
#[salsa::tracked(returns(ref))]
pub fn sig_expr_scopes(db: &dyn DefDatabase, def: GenericDefId) -> ExprScopes {
- let (_, store) = GenericParams::of(db, def);
+ let (_, store) = GenericParams::with_store(db, def);
let roots = store.signature_const_expr_roots();
let mut scopes = ExprScopes::new_store(store, roots);
scopes.shrink_to_fit();