Skip to content

Commit 19dfea5

Browse files
committed
Slight cleanup
1 parent 5cf6edb commit 19dfea5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_mir/src/borrow_check/diagnostics/bound_region_errors.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl<'tcx, F, G> ToUniverseInfo<'tcx> for Canonical<'tcx, type_op::custom::Custo
119119

120120
#[allow(unused_lifetimes)]
121121
trait TypeOpInfo<'tcx> {
122-
/// Returns an rrror to be reported if rerunning the type op fails to
122+
/// Returns an error to be reported if rerunning the type op fails to
123123
/// recover the error's cause.
124124
fn fallback_error(&self, tcx: TyCtxt<'tcx>, span: Span) -> DiagnosticBuilder<'tcx>;
125125

@@ -283,9 +283,6 @@ fn try_extract_error_from_fulfill_cx<'tcx>(
283283
// when we're going to emit an error here anyway.
284284
let _errors = fulfill_cx.select_all_or_error(infcx).err().unwrap_or_else(Vec::new);
285285

286-
let region_obligations = infcx.take_registered_region_obligations();
287-
debug!(?region_obligations);
288-
289286
let (sub_region, cause) = infcx.with_region_constraints(|region_constraints| {
290287
debug!(?region_constraints);
291288
region_constraints.constraints.iter().find_map(|(constraint, cause)| {

0 commit comments

Comments
 (0)