@@ -150,7 +150,7 @@ crate enum RegionElement {
150150
151151 /// A placeholder (e.g., instantiated from a `for<'a> fn(&'a u32)`
152152 /// type).
153- PlaceholderRegion ( ty:: Placeholder ) ,
153+ PlaceholderRegion ( ty:: PlaceholderRegion ) ,
154154}
155155
156156/// When we initially compute liveness, we use a bit matrix storing
@@ -219,17 +219,17 @@ impl<N: Idx> LivenessValues<N> {
219219 }
220220}
221221
222- /// Maps from `ty::Placeholder ` values that are used in the rest of
222+ /// Maps from `ty::PlaceholderRegion ` values that are used in the rest of
223223/// rustc to the internal `PlaceholderIndex` values that are used in
224224/// NLL.
225225#[ derive( Default ) ]
226226crate struct PlaceholderIndices {
227- to_index : FxHashMap < ty:: Placeholder , PlaceholderIndex > ,
228- from_index : IndexVec < PlaceholderIndex , ty:: Placeholder > ,
227+ to_index : FxHashMap < ty:: PlaceholderRegion , PlaceholderIndex > ,
228+ from_index : IndexVec < PlaceholderIndex , ty:: PlaceholderRegion > ,
229229}
230230
231231impl PlaceholderIndices {
232- crate fn insert ( & mut self , placeholder : ty:: Placeholder ) -> PlaceholderIndex {
232+ crate fn insert ( & mut self , placeholder : ty:: PlaceholderRegion ) -> PlaceholderIndex {
233233 let PlaceholderIndices {
234234 to_index,
235235 from_index,
@@ -239,11 +239,11 @@ impl PlaceholderIndices {
239239 . or_insert_with ( || from_index. push ( placeholder) )
240240 }
241241
242- crate fn lookup_index ( & self , placeholder : ty:: Placeholder ) -> PlaceholderIndex {
242+ crate fn lookup_index ( & self , placeholder : ty:: PlaceholderRegion ) -> PlaceholderIndex {
243243 self . to_index [ & placeholder]
244244 }
245245
246- crate fn lookup_placeholder ( & self , placeholder : PlaceholderIndex ) -> ty:: Placeholder {
246+ crate fn lookup_placeholder ( & self , placeholder : PlaceholderIndex ) -> ty:: PlaceholderRegion {
247247 self . from_index [ placeholder]
248248 }
249249
@@ -375,7 +375,7 @@ impl<N: Idx> RegionValues<N> {
375375 crate fn placeholders_contained_in < ' a > (
376376 & ' a self ,
377377 r : N ,
378- ) -> impl Iterator < Item = ty:: Placeholder > + ' a {
378+ ) -> impl Iterator < Item = ty:: PlaceholderRegion > + ' a {
379379 self . placeholders
380380 . row ( r)
381381 . into_iter ( )
@@ -432,7 +432,7 @@ impl ToElementIndex for RegionVid {
432432 }
433433}
434434
435- impl ToElementIndex for ty:: Placeholder {
435+ impl ToElementIndex for ty:: PlaceholderRegion {
436436 fn add_to_row < N : Idx > ( self , values : & mut RegionValues < N > , row : N ) -> bool {
437437 let index = values. placeholder_indices . lookup_index ( self ) ;
438438 values. placeholders . insert ( row, index)
0 commit comments