Unnamed repository; edit this file 'description' to name the repository.
fix: is_transmutable always panicking
Cole Kauder-McMurrich 4 months ago
parent 7d052bd · commit 48fa324
-rw-r--r--crates/hir-ty/src/next_solver/solver.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir-ty/src/next_solver/solver.rs b/crates/hir-ty/src/next_solver/solver.rs
index b5ed770e16..859e26e376 100644
--- a/crates/hir-ty/src/next_solver/solver.rs
+++ b/crates/hir-ty/src/next_solver/solver.rs
@@ -225,7 +225,9 @@ impl<'db> SolverDelegate for SolverContext<'db> {
_src: Ty<'db>,
_assume: <Self::Interner as rustc_type_ir::Interner>::Const,
) -> Result<Certainty, NoSolution> {
- unimplemented!()
+ // It's better to return some value while not fully implement
+ // then panic in the mean time
+ Ok(Certainty::Yes)
}
fn evaluate_const(