Skip to content

Commit 23c9de3

Browse files
committed
remove unused return value from add_location
1 parent b09e8a8 commit 23c9de3

File tree

1 file changed

+4
-5
lines changed
  • compiler/rustc_borrowck/src/region_infer

1 file changed

+4
-5
lines changed

compiler/rustc_borrowck/src/region_infer/values.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,11 @@ impl<N: Idx> LivenessValues<N> {
136136
self.points.rows()
137137
}
138138

139-
/// Records `region` as being live at the given `location`. Returns whether the location is
140-
/// newly added (i.e., was not already present).
141-
pub(crate) fn add_location(&mut self, region: N, location: Location) -> bool {
139+
/// Records `region` as being live at the given `location`.
140+
pub(crate) fn add_location(&mut self, region: N, location: Location) {
142141
debug!("LivenessValues::add_location(region={:?}, location={:?})", region, location);
143-
let index = self.elements.point_from_location(location);
144-
self.points.insert(region, index)
142+
let point = self.elements.point_from_location(location);
143+
self.points.insert(region, point);
145144
}
146145

147146
/// Adds all the elements in the given bit array into the given

0 commit comments

Comments
 (0)