Introduce ContainerId

This commit is contained in:
Aleksey Kladov 2019-12-20 12:07:23 +01:00
parent 8fc20b6503
commit 94ad07af4b
7 changed files with 42 additions and 19 deletions

View file

@ -456,7 +456,7 @@ fn transform_receiver_ty(
.fill_with_unknown()
.build(),
AssocContainerId::ImplId(impl_id) => inherent_impl_substs(db, impl_id, &self_ty)?,
AssocContainerId::ModuleId(_) | AssocContainerId::DefWithBodyId(_) => unreachable!(),
AssocContainerId::ContainerId(_) => unreachable!(),
};
let sig = db.callable_item_signature(function_id.into());
Some(sig.params()[0].clone().subst(&substs))