about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_mir/src/borrow_check/diagnostics/bound_region_errors.rs5
1 files changed, 1 insertions, 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)| {