We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3bf634 commit a7052f4Copy full SHA for a7052f4
src/librustc_mir/borrow_check/nll/region_infer/mod.rs
@@ -377,11 +377,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
377
debug!("add_live_point: @{:?} Adding cause {:?}", point, cause);
378
379
let element = self.elements.index(point);
380
- if self.liveness_constraints.add_element(v, element, &cause) {
381
- true
382
- } else {
383
- false
384
- }
+ self.liveness_constraints.add_element(v, element, &cause)
385
}
386
387
/// Indicates that the region variable `sup` must outlive `sub` is live at the point `point`.
0 commit comments