Skip to content

Commit a7052f4

Browse files
committed
let add_element return by itself
1 parent e3bf634 commit a7052f4

File tree

1 file changed

+1
-5
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer

1 file changed

+1
-5
lines changed

src/librustc_mir/borrow_check/nll/region_infer/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
377377
debug!("add_live_point: @{:?} Adding cause {:?}", point, cause);
378378

379379
let element = self.elements.index(point);
380-
if self.liveness_constraints.add_element(v, element, &cause) {
381-
true
382-
} else {
383-
false
384-
}
380+
self.liveness_constraints.add_element(v, element, &cause)
385381
}
386382

387383
/// Indicates that the region variable `sup` must outlive `sub` is live at the point `point`.

0 commit comments

Comments
 (0)