mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Handle projection types from Chalk
This commit is contained in:
parent
18bf278c25
commit
bc905d202c
1 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,11 @@ impl ToChalk for Ty {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
chalk_ir::Ty::Projection(_) => unimplemented!(),
|
chalk_ir::Ty::Projection(proj) => {
|
||||||
|
let associated_ty = from_chalk(db, proj.associated_ty_id);
|
||||||
|
let parameters = from_chalk(db, proj.parameters);
|
||||||
|
Ty::Projection(ProjectionTy { associated_ty, parameters })
|
||||||
|
}
|
||||||
chalk_ir::Ty::ForAll(_) => unimplemented!(),
|
chalk_ir::Ty::ForAll(_) => unimplemented!(),
|
||||||
chalk_ir::Ty::BoundVar(idx) => Ty::Bound(idx as u32),
|
chalk_ir::Ty::BoundVar(idx) => Ty::Bound(idx as u32),
|
||||||
chalk_ir::Ty::InferenceVar(_iv) => panic!("unexpected chalk infer ty"),
|
chalk_ir::Ty::InferenceVar(_iv) => panic!("unexpected chalk infer ty"),
|
||||||
|
|
Loading…
Reference in a new issue