@@ -98,15 +98,15 @@ pub struct AnalysisCtxt<'a, 'tcx> {
98
98
/// those `PointerId`s consistent, the `Rvalue`'s type must be stored rather than recomputed on
99
99
/// the fly.
100
100
pub rvalue_tys : HashMap < Location , LTy < ' tcx > > ,
101
- pub const_tys : HashMap < ConstantKind < ' tcx > , LTy < ' tcx > > ,
101
+ pub const_ref_tys : HashMap < ConstantKind < ' tcx > , LTy < ' tcx > > ,
102
102
next_ptr_id : NextLocalPointerId ,
103
103
}
104
104
105
105
pub struct AnalysisCtxtData < ' tcx > {
106
106
local_tys : IndexVec < Local , LTy < ' tcx > > ,
107
107
addr_of_local : IndexVec < Local , PointerId > ,
108
108
rvalue_tys : HashMap < Location , LTy < ' tcx > > ,
109
- const_tys : HashMap < ConstantKind < ' tcx > , LTy < ' tcx > > ,
109
+ const_ref_tys : HashMap < ConstantKind < ' tcx > , LTy < ' tcx > > ,
110
110
next_ptr_id : NextLocalPointerId ,
111
111
}
112
112
@@ -199,7 +199,7 @@ impl<'a, 'tcx> AnalysisCtxt<'a, 'tcx> {
199
199
c_void_casts : CVoidCasts :: new ( mir, tcx) ,
200
200
addr_of_local : IndexVec :: new ( ) ,
201
201
rvalue_tys : HashMap :: new ( ) ,
202
- const_tys : HashMap :: new ( ) ,
202
+ const_ref_tys : HashMap :: new ( ) ,
203
203
next_ptr_id : NextLocalPointerId :: new ( ) ,
204
204
}
205
205
}
@@ -213,7 +213,7 @@ impl<'a, 'tcx> AnalysisCtxt<'a, 'tcx> {
213
213
local_tys,
214
214
addr_of_local,
215
215
rvalue_tys,
216
- const_tys ,
216
+ const_ref_tys ,
217
217
next_ptr_id,
218
218
} = data;
219
219
AnalysisCtxt {
@@ -223,7 +223,7 @@ impl<'a, 'tcx> AnalysisCtxt<'a, 'tcx> {
223
223
c_void_casts : CVoidCasts :: default ( ) ,
224
224
addr_of_local,
225
225
rvalue_tys,
226
- const_tys ,
226
+ const_ref_tys ,
227
227
next_ptr_id,
228
228
}
229
229
}
@@ -233,7 +233,7 @@ impl<'a, 'tcx> AnalysisCtxt<'a, 'tcx> {
233
233
local_tys : self . local_tys ,
234
234
addr_of_local : self . addr_of_local ,
235
235
rvalue_tys : self . rvalue_tys ,
236
- const_tys : self . const_tys ,
236
+ const_ref_tys : self . const_ref_tys ,
237
237
next_ptr_id : self . next_ptr_id ,
238
238
}
239
239
}
@@ -426,7 +426,7 @@ impl<'tcx> AnalysisCtxtData<'tcx> {
426
426
ref mut local_tys,
427
427
ref mut addr_of_local,
428
428
ref mut rvalue_tys,
429
- ref mut const_tys ,
429
+ ref mut const_ref_tys ,
430
430
ref mut next_ptr_id,
431
431
} = * self ;
432
432
@@ -444,7 +444,7 @@ impl<'tcx> AnalysisCtxtData<'tcx> {
444
444
* lty = remap_lty_pointers ( lcx, & map, lty) ;
445
445
}
446
446
447
- for lty in const_tys . values_mut ( ) {
447
+ for lty in const_ref_tys . values_mut ( ) {
448
448
* lty = remap_lty_pointers ( lcx, & map, lty) ;
449
449
}
450
450
@@ -515,7 +515,7 @@ impl<'tcx> TypeOf<'tcx> for Operand<'tcx> {
515
515
Operand :: Move ( pl) | Operand :: Copy ( pl) => acx. type_of ( pl) ,
516
516
Operand :: Constant ( ref c) => {
517
517
let c = & * * c;
518
- match acx. const_tys . get ( & c. literal ) {
518
+ match acx. const_ref_tys . get ( & c. literal ) {
519
519
Some ( lty) => lty,
520
520
None => label_no_pointers ( acx, c. ty ( ) ) ,
521
521
}
0 commit comments