From a4b2fafcc19801e858afc59ed3b319c39adefc20 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Mon, 15 Feb 2021 00:28:58 -0500 Subject: [PATCH] Revise HIR lowering comment --- .../rustc_mir/src/borrow_check/diagnostics/region_name.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_mir/src/borrow_check/diagnostics/region_name.rs b/compiler/rustc_mir/src/borrow_check/diagnostics/region_name.rs index 77297ded40d..c8b45f87639 100644 --- a/compiler/rustc_mir/src/borrow_check/diagnostics/region_name.rs +++ b/compiler/rustc_mir/src/borrow_check/diagnostics/region_name.rs @@ -634,8 +634,8 @@ fn try_match_adt_and_generic_args<'hir>( | 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), -- 2.44.0