@@ -39,7 +39,6 @@ use rustc_span::Span;
39
39
use std:: cell:: { Cell , Ref , RefCell } ;
40
40
use std:: collections:: BTreeMap ;
41
41
use std:: fmt;
42
- use std:: marker:: PhantomData ;
43
42
44
43
use self :: combine:: CombineFields ;
45
44
use self :: free_regions:: RegionRelations ;
@@ -241,7 +240,7 @@ impl<'tcx> InferCtxtInner<'tcx> {
241
240
& mut InferCtxtUndoLogs < ' tcx > ,
242
241
> ,
243
242
> {
244
- ut :: UnificationTable :: with_log ( & mut self . int_unification_table , & mut self . undo_log )
243
+ self . int_unification_table . with_log ( & mut self . undo_log )
245
244
}
246
245
247
246
fn float_unification_table (
@@ -253,7 +252,7 @@ impl<'tcx> InferCtxtInner<'tcx> {
253
252
& mut InferCtxtUndoLogs < ' tcx > ,
254
253
> ,
255
254
> {
256
- ut :: UnificationTable :: with_log ( & mut self . float_unification_table , & mut self . undo_log )
255
+ self . float_unification_table . with_log ( & mut self . undo_log )
257
256
}
258
257
259
258
fn const_unification_table (
@@ -265,7 +264,7 @@ impl<'tcx> InferCtxtInner<'tcx> {
265
264
& mut InferCtxtUndoLogs < ' tcx > ,
266
265
> ,
267
266
> {
268
- ut :: UnificationTable :: with_log ( & mut self . const_unification_table , & mut self . undo_log )
267
+ self . const_unification_table . with_log ( & mut self . undo_log )
269
268
}
270
269
271
270
pub fn unwrap_region_constraints ( & mut self ) -> RegionConstraintCollector < ' tcx , ' _ > {
@@ -711,9 +710,9 @@ pub struct FullSnapshot<'a, 'tcx> {
711
710
snapshot : CombinedSnapshot < ' a , ' tcx > ,
712
711
region_constraints_snapshot : RegionSnapshot ,
713
712
type_snapshot : type_variable:: Snapshot < ' tcx > ,
714
- const_snapshot : usize ,
715
- int_snapshot : usize ,
716
- float_snapshot : usize ,
713
+ const_var_len : usize ,
714
+ int_var_len : usize ,
715
+ float_var_len : usize ,
717
716
}
718
717
719
718
#[ must_use = "once you start a snapshot, you should always consume it" ]
@@ -837,9 +836,9 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
837
836
FullSnapshot {
838
837
snapshot,
839
838
type_snapshot : inner. type_variables ( ) . snapshot ( ) ,
840
- const_snapshot : inner. const_unification_table ( ) . len ( ) ,
841
- int_snapshot : inner. int_unification_table ( ) . len ( ) ,
842
- float_snapshot : inner. float_unification_table ( ) . len ( ) ,
839
+ const_var_len : inner. const_unification_table ( ) . len ( ) ,
840
+ int_var_len : inner. int_unification_table ( ) . len ( ) ,
841
+ float_var_len : inner. float_unification_table ( ) . len ( ) ,
843
842
region_constraints_snapshot : inner. unwrap_region_constraints ( ) . start_snapshot ( ) ,
844
843
}
845
844
}
0 commit comments