Remove ModuleId from TypeOwnerId

This commit is contained in:
Lukas Wirth 2023-12-14 14:11:12 +01:00
parent 070cd4e8b0
commit 9083017c9d
11 changed files with 112 additions and 45 deletions

View file

@ -113,7 +113,7 @@ pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<Infer
// FIXME(const-generic-body): We should not get the return type in this way.
ctx.return_ty = c
.lookup(db.upcast())
.thing
.expected_ty
.box_any()
.downcast::<InTypeConstIdMetadata>()
.unwrap()