Skip to content

Commit 429bbbd

Browse files
committed
Make ToChalk implementations identity
1 parent 77d974a commit 429bbbd

File tree

2 files changed

+42
-272
lines changed

2 files changed

+42
-272
lines changed

crates/hir_ty/src/traits.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,7 @@ fn solution_from_chalk(
173173
db: &dyn HirDatabase,
174174
solution: chalk_solve::Solution<Interner>,
175175
) -> Solution {
176-
match solution {
177-
chalk_solve::Solution::Unique(constr_subst) => {
178-
Solution::Unique(from_chalk(db, constr_subst))
179-
}
180-
chalk_solve::Solution::Ambig(chalk_solve::Guidance::Definite(subst)) => {
181-
Solution::Ambig(Guidance::Definite(from_chalk(db, subst)))
182-
}
183-
chalk_solve::Solution::Ambig(chalk_solve::Guidance::Suggested(subst)) => {
184-
Solution::Ambig(Guidance::Suggested(from_chalk(db, subst)))
185-
}
186-
chalk_solve::Solution::Ambig(chalk_solve::Guidance::Unknown) => {
187-
Solution::Ambig(Guidance::Unknown)
188-
}
189-
}
176+
solution
190177
}
191178

192179
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]

0 commit comments

Comments
 (0)