diff options
| author | Edward Shen <code@eddie.sh> | 2021-02-15 00:28:58 -0500 |
|---|---|---|
| committer | Edward Shen <code@eddie.sh> | 2021-02-15 00:28:58 -0500 |
| commit | a4b2fafcc19801e858afc59ed3b319c39adefc20 (patch) | |
| tree | ae0093545fc3dee58bea0120d8a4e5c431d4fed4 | |
| parent | f856224e16ef378968114c3811d99bf5cd0e64cb (diff) | |
| download | rust-a4b2fafcc19801e858afc59ed3b319c39adefc20.tar.gz rust-a4b2fafcc19801e858afc59ed3b319c39adefc20.zip | |
Revise HIR lowering comment
| -rw-r--r-- | compiler/rustc_mir/src/borrow_check/diagnostics/region_name.rs | 4 |
1 files 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 @@ 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), |
