Skip to content

Commit b2d16f3

Browse files
committed
let add_element return by itself
1 parent a7a60dc commit b2d16f3

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
@@ -343,11 +343,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
343343
debug!("add_live_point: @{:?} Adding cause {:?}", point, cause);
344344

345345
let element = self.elements.index(point);
346-
if self.liveness_constraints.add_element(v, element, &cause) {
347-
true
348-
} else {
349-
false
350-
}
346+
self.liveness_constraints.add_element(v, element, &cause)
351347
}
352348

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

0 commit comments

Comments
 (0)