Skip to content

Commit a4b2faf

Browse files
committedFeb 15, 2021
Revise HIR lowering comment
1 parent f856224 commit a4b2faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎compiler/rustc_mir/src/borrow_check/diagnostics/region_name.rs

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

0 commit comments

Comments
 (0)