Revise HIR lowering comment

This commit is contained in:
Edward Shen 2021-02-15 00:28:58 -05:00
parent f856224e16
commit a4b2fafcc1
No known key found for this signature in database
GPG key ID: 19182661E818369F

View file

@ -634,8 +634,8 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
| GenericArgKind::Const(_),
_,
) => {
// HIR lowering is insufficient in erroneous programs, so
// we need to use delay_span_bug here. See #82126.
// HIR lowering sometimes doesn't catch this in erroneous
// programs, so we need to use delay_span_bug here. See #82126.
self.infcx.tcx.sess.delay_span_bug(
hir_arg.span(),
&format!("unmatched subst and hir arg: found {:?} vs {:?}", kind, hir_arg),