mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Update Chalk, clean up Chalk integration a bit
This commit is contained in:
parent
60aa4d12f9
commit
67a2555f6d
5 changed files with 131 additions and 153 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue