Update Chalk, clean up Chalk integration a bit

This commit is contained in:
Florian Diebold 2019-12-21 14:29:33 +01:00
parent 60aa4d12f9
commit 67a2555f6d
5 changed files with 131 additions and 153 deletions

View file

@ -209,9 +209,9 @@ fn solution_from_chalk(
.parameters
.into_iter()
.map(|p| {
let ty = match p {
chalk_ir::Parameter(chalk_ir::ParameterKind::Ty(ty)) => from_chalk(db, ty),
chalk_ir::Parameter(chalk_ir::ParameterKind::Lifetime(_)) => unimplemented!(),
let ty = match p.ty() {
Some(ty) => from_chalk(db, ty.clone()),
None => unimplemented!(),
};
ty
})