]> git.lizzy.rs Git - rust.git/commitdiff
Revise HIR lowering comment
authorEdward Shen <code@eddie.sh>
Mon, 15 Feb 2021 05:28:58 +0000 (00:28 -0500)
committerEdward Shen <code@eddie.sh>
Mon, 15 Feb 2021 05:28:58 +0000 (00:28 -0500)
compiler/rustc_mir/src/borrow_check/diagnostics/region_name.rs

index 77297ded40d753d46ec4fb6e0695bf1119c24ab6..c8b45f87639a2730b248e6c34c31e5b5c9aad2d2 100644 (file)
@@ -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),