Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/lower.rs')
| -rw-r--r-- | crates/hir-ty/src/mir/lower.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/mir/lower.rs b/crates/hir-ty/src/mir/lower.rs index 763d52398b..3852db909e 100644 --- a/crates/hir-ty/src/mir/lower.rs +++ b/crates/hir-ty/src/mir/lower.rs @@ -2320,7 +2320,7 @@ pub fn mir_body_query<'db>(db: &'db dyn HirDatabase, def: InferBodyId) -> Result let (store, root_expr, self_param, params) = match def { InferBodyId::DefWithBodyId(def) => { let body = Body::of(db, def); - (&**body, body.root_expr(), body.self_param, &*body.params) + (&**body, body.root_expr(), body.self_param(), &*body.params) } InferBodyId::AnonConstId(def) => { let loc = def.loc(db); |