diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2021-06-26 20:27:37 +0200 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2021-08-15 09:11:03 +0200 |
| commit | 19dfea552aeba5049b5a51aec206fcaf08d6d7c0 (patch) | |
| tree | aed0cbf193c61a32a8f64a67a4bf8a09d6b2fe05 | |
| parent | 5cf6edb4c539f93ea1409c0d31b2ccd2e99620a0 (diff) | |
| download | rust-19dfea552aeba5049b5a51aec206fcaf08d6d7c0.tar.gz rust-19dfea552aeba5049b5a51aec206fcaf08d6d7c0.zip | |
Slight cleanup
| -rw-r--r-- | compiler/rustc_mir/src/borrow_check/diagnostics/bound_region_errors.rs | 5 |
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)| { |
