File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
compiler/rustc_borrowck/src/region_infer Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments