Skip to content

Commit

Permalink
let add_element return by itself
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jul 1, 2018
1 parent a7a60dc commit b2d16f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/librustc_mir/borrow_check/nll/region_infer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
debug!("add_live_point: @{:?} Adding cause {:?}", point, cause);

let element = self.elements.index(point);
if self.liveness_constraints.add_element(v, element, &cause) {
true
} else {
false
}
self.liveness_constraints.add_element(v, element, &cause)
}

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

0 comments on commit b2d16f3

Please sign in to comment.