Merge pull request #21880 from cuiweixie/fix/shim-ptr-guaranteed-cmp-error-msg fix: Correct internal error message for ptr_guaranteed_cmp shim
diff --git a/crates/hir-ty/src/generics.rs b/crates/hir-ty/src/generics.rs index b1500bc..b3c888d 100644 --- a/crates/hir-ty/src/generics.rs +++ b/crates/hir-ty/src/generics.rs
@@ -185,7 +185,7 @@ if param.parent == self.def { let idx = param.local_id.into_raw().into_u32() as usize; debug_assert!( - idx <= self.params.len_type_or_consts(), + idx < self.params.len_type_or_consts(), "idx: {} len: {}", idx, self.params.len_type_or_consts()