From 19dfea552aeba5049b5a51aec206fcaf08d6d7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Rakic?= Date: Sat, 26 Jun 2021 20:27:37 +0200 Subject: [PATCH] Slight cleanup --- .../src/borrow_check/diagnostics/bound_region_errors.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/rustc_mir/src/borrow_check/diagnostics/bound_region_errors.rs b/compiler/rustc_mir/src/borrow_check/diagnostics/bound_region_errors.rs index 01860b89a00..103e3d9a9ad 100644 --- a/compiler/rustc_mir/src/borrow_check/diagnostics/bound_region_errors.rs +++ b/compiler/rustc_mir/src/borrow_check/diagnostics/bound_region_errors.rs @@ -119,7 +119,7 @@ impl<'tcx, F, G> ToUniverseInfo<'tcx> for Canonical<'tcx, type_op::custom::Custo #[allow(unused_lifetimes)] trait TypeOpInfo<'tcx> { - /// Returns an rrror to be reported if rerunning the type op fails to + /// Returns an error to be reported if rerunning the type op fails to /// recover the error's cause. fn fallback_error(&self, tcx: TyCtxt<'tcx>, span: Span) -> DiagnosticBuilder<'tcx>; @@ -283,9 +283,6 @@ fn try_extract_error_from_fulfill_cx<'tcx>( // when we're going to emit an error here anyway. let _errors = fulfill_cx.select_all_or_error(infcx).err().unwrap_or_else(Vec::new); - let region_obligations = infcx.take_registered_region_obligations(); - debug!(?region_obligations); - let (sub_region, cause) = infcx.with_region_constraints(|region_constraints| { debug!(?region_constraints); region_constraints.constraints.iter().find_map(|(constraint, cause)| {