Skip to content

Commit ed61be6

Browse files
committed
Some ICE debugging aids
1 parent fedcc73 commit ed61be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/subst.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl<'tcx> InternalSubsts<'tcx> {
348348
substs.reserve(defs.params.len());
349349
for param in &defs.params {
350350
let kind = mk_kind(param, substs);
351-
assert_eq!(param.index as usize, substs.len());
351+
assert_eq!(param.index as usize, substs.len(), "{substs:#?}, {defs:#?}");
352352
substs.push(kind);
353353
}
354354
}

0 commit comments

Comments
 (0)