Skip to content

Commit 5f4aca3

Browse files
Merge pull request #21238 from Colepng/is_transmutable-fix
fix: is_transmutable always panicking
2 parents cdc7296 + fc5a683 commit 5f4aca3

File tree

1 file changed

+3
-1
lines changed
  • src/tools/rust-analyzer/crates/hir-ty/src/next_solver

1 file changed

+3
-1
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/next_solver/solver.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ impl<'db> SolverDelegate for SolverContext<'db> {
225225
_src: Ty<'db>,
226226
_assume: <Self::Interner as rustc_type_ir::Interner>::Const,
227227
) -> Result<Certainty, NoSolution> {
228-
unimplemented!()
228+
// It's better to return some value while not fully implement
229+
// then panic in the mean time
230+
Ok(Certainty::Yes)
229231
}
230232

231233
fn evaluate_const(

0 commit comments

Comments
 (0)