From b2d16f3b966766cd654c756bcec5f8f8d0a39c20 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 26 Jun 2018 14:24:54 -0300 Subject: [PATCH] let add_element return by itself --- src/librustc_mir/borrow_check/nll/region_infer/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs index 09e425ff555..014b37a0a27 100644 --- a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs +++ b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs @@ -343,11 +343,7 @@ pub(super) fn add_live_point(&mut self, v: RegionVid, point: Location, cause: &C 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`. -- 2.44.0