Revise HIR lowering comment
This commit is contained in:
parent
f856224e16
commit
a4b2fafcc1
1 changed files with 2 additions and 2 deletions
|
@ -634,8 +634,8 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
|
||||||
| GenericArgKind::Const(_),
|
| GenericArgKind::Const(_),
|
||||||
_,
|
_,
|
||||||
) => {
|
) => {
|
||||||
// HIR lowering is insufficient in erroneous programs, so
|
// HIR lowering sometimes doesn't catch this in erroneous
|
||||||
// we need to use delay_span_bug here. See #82126.
|
// programs, so we need to use delay_span_bug here. See #82126.
|
||||||
self.infcx.tcx.sess.delay_span_bug(
|
self.infcx.tcx.sess.delay_span_bug(
|
||||||
hir_arg.span(),
|
hir_arg.span(),
|
||||||
&format!("unmatched subst and hir arg: found {:?} vs {:?}", kind, hir_arg),
|
&format!("unmatched subst and hir arg: found {:?} vs {:?}", kind, hir_arg),
|
||||||
|
|
Loading…
Add table
Reference in a new issue