Skip to content

Commit 328249d

Browse files
committed
be happy, ignore regions
1 parent 02e9ab5 commit 328249d

File tree

1 file changed

+1
-8
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+1
-8
lines changed

compiler/rustc_trait_selection/src/traits/fulfill.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl<'a, 'b, 'tcx> FulfillProcessor<'a, 'b, 'tcx> {
433433
}
434434

435435
ty::PredicateKind::TypeOutlives(ty::OutlivesPredicate(t_a, r_b)) => {
436-
if true {
436+
if self.register_region_obligations {
437437
if t_a.is_ty_infer() {
438438
pending_obligation.stalled_on =
439439
vec![TyOrConstInferVar::maybe_from_ty(t_a).unwrap()];
@@ -452,13 +452,6 @@ impl<'a, 'b, 'tcx> FulfillProcessor<'a, 'b, 'tcx> {
452452
}
453453
}
454454
} else {
455-
if self.register_region_obligations {
456-
self.selcx.infcx().register_region_obligation_with_cause(
457-
t_a,
458-
r_b,
459-
&obligation.cause,
460-
);
461-
}
462455
ProcessResult::Changed(vec![])
463456
}
464457
}

0 commit comments

Comments
 (0)