@@ -39,7 +39,6 @@ use rustc_span::Span;
3939use std:: cell:: { Cell , Ref , RefCell } ;
4040use std:: collections:: BTreeMap ;
4141use std:: fmt;
42- use std:: marker:: PhantomData ;
4342
4443use self :: combine:: CombineFields ;
4544use self :: free_regions:: RegionRelations ;
@@ -241,7 +240,7 @@ impl<'tcx> InferCtxtInner<'tcx> {
241240 & mut InferCtxtUndoLogs < ' tcx > ,
242241 > ,
243242 > {
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 )
245244 }
246245
247246 fn float_unification_table (
@@ -253,7 +252,7 @@ impl<'tcx> InferCtxtInner<'tcx> {
253252 & mut InferCtxtUndoLogs < ' tcx > ,
254253 > ,
255254 > {
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 )
257256 }
258257
259258 fn const_unification_table (
@@ -265,7 +264,7 @@ impl<'tcx> InferCtxtInner<'tcx> {
265264 & mut InferCtxtUndoLogs < ' tcx > ,
266265 > ,
267266 > {
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 )
269268 }
270269
271270 pub fn unwrap_region_constraints ( & mut self ) -> RegionConstraintCollector < ' tcx , ' _ > {
@@ -711,9 +710,9 @@ pub struct FullSnapshot<'a, 'tcx> {
711710 snapshot : CombinedSnapshot < ' a , ' tcx > ,
712711 region_constraints_snapshot : RegionSnapshot ,
713712 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 ,
717716}
718717
719718#[ must_use = "once you start a snapshot, you should always consume it" ]
@@ -837,9 +836,9 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
837836 FullSnapshot {
838837 snapshot,
839838 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 ( ) ,
843842 region_constraints_snapshot : inner. unwrap_region_constraints ( ) . start_snapshot ( ) ,
844843 }
845844 }
0 commit comments