@@ -199,7 +199,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
199199 // code is so hot. 1 and 0 dominate; 2+ is fairly rare.
200200 1 => {
201201 let infer_var = pending_obligation. stalled_on [ 0 ] ;
202- self . selcx . infcx ( ) . ty_or_const_infer_var_changed ( infer_var)
202+ self . selcx . infcx . ty_or_const_infer_var_changed ( infer_var)
203203 }
204204 0 => {
205205 // In this case we haven't changed, but wish to make a change.
@@ -210,7 +210,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
210210 // form was a perf win. See #64545 for details.
211211 ( || {
212212 for & infer_var in & pending_obligation. stalled_on {
213- if self . selcx . infcx ( ) . ty_or_const_infer_var_changed ( infer_var) {
213+ if self . selcx . infcx . ty_or_const_infer_var_changed ( infer_var) {
214214 return true ;
215215 }
216216 }
@@ -240,13 +240,12 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
240240 debug ! ( ?obligation, "pre-resolve" ) ;
241241
242242 if obligation. predicate . has_non_region_infer ( ) {
243- obligation. predicate =
244- self . selcx . infcx ( ) . resolve_vars_if_possible ( obligation. predicate ) ;
243+ obligation. predicate = self . selcx . infcx . resolve_vars_if_possible ( obligation. predicate ) ;
245244 }
246245
247246 let obligation = & pending_obligation. obligation ;
248247
249- let infcx = self . selcx . infcx ( ) ;
248+ let infcx = self . selcx . infcx ;
250249
251250 if obligation. predicate . has_projections ( ) {
252251 let mut obligations = Vec :: new ( ) ;
@@ -353,7 +352,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
353352 }
354353
355354 ty:: PredicateKind :: ClosureKind ( _, closure_substs, kind) => {
356- match self . selcx . infcx ( ) . closure_kind ( closure_substs) {
355+ match self . selcx . infcx . closure_kind ( closure_substs) {
357356 Some ( closure_kind) => {
358357 if closure_kind. extends ( kind) {
359358 ProcessResult :: Changed ( vec ! [ ] )
@@ -367,7 +366,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
367366
368367 ty:: PredicateKind :: WellFormed ( arg) => {
369368 match wf:: obligations (
370- self . selcx . infcx ( ) ,
369+ self . selcx . infcx ,
371370 obligation. param_env ,
372371 obligation. cause . body_id ,
373372 obligation. recursion_depth + 1 ,
@@ -384,7 +383,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
384383 }
385384
386385 ty:: PredicateKind :: Subtype ( subtype) => {
387- match self . selcx . infcx ( ) . subtype_predicate (
386+ match self . selcx . infcx . subtype_predicate (
388387 & obligation. cause ,
389388 obligation. param_env ,
390389 Binder :: dummy ( subtype) ,
@@ -408,7 +407,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
408407 }
409408
410409 ty:: PredicateKind :: Coerce ( coerce) => {
411- match self . selcx . infcx ( ) . coerce_predicate (
410+ match self . selcx . infcx . coerce_predicate (
412411 & obligation. cause ,
413412 obligation. param_env ,
414413 Binder :: dummy ( coerce) ,
@@ -432,7 +431,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
432431
433432 ty:: PredicateKind :: ConstEvaluatable ( uv) => {
434433 match const_evaluatable:: is_const_evaluatable (
435- self . selcx . infcx ( ) ,
434+ self . selcx . infcx ,
436435 uv,
437436 obligation. param_env ,
438437 obligation. cause . span ,
@@ -503,7 +502,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
503502
504503 let mut evaluate = |c : Const < ' tcx > | {
505504 if let ty:: ConstKind :: Unevaluated ( unevaluated) = c. kind ( ) {
506- match self . selcx . infcx ( ) . try_const_eval_resolve (
505+ match self . selcx . infcx . try_const_eval_resolve (
507506 obligation. param_env ,
508507 unevaluated,
509508 c. ty ( ) ,
@@ -531,7 +530,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
531530 ( Ok ( c1) , Ok ( c2) ) => {
532531 match self
533532 . selcx
534- . infcx ( )
533+ . infcx
535534 . at ( & obligation. cause , obligation. param_env )
536535 . eq ( c1, c2)
537536 {
@@ -601,7 +600,7 @@ impl<'a, 'tcx> FulfillProcessor<'a, 'tcx> {
601600 trait_obligation : TraitObligation < ' tcx > ,
602601 stalled_on : & mut Vec < TyOrConstInferVar < ' tcx > > ,
603602 ) -> ProcessResult < PendingPredicateObligation < ' tcx > , FulfillmentErrorCode < ' tcx > > {
604- let infcx = self . selcx . infcx ( ) ;
603+ let infcx = self . selcx . infcx ;
605604 if obligation. predicate . is_global ( ) {
606605 // no type variables present, can use evaluation for better caching.
607606 // FIXME: consider caching errors too.
@@ -659,7 +658,7 @@ impl<'a, 'tcx> FulfillProcessor<'a, 'tcx> {
659658 if obligation. predicate . is_global ( ) {
660659 // no type variables present, can use evaluation for better caching.
661660 // FIXME: consider caching errors too.
662- if self . selcx . infcx ( ) . predicate_must_hold_considering_regions ( obligation) {
661+ if self . selcx . infcx . predicate_must_hold_considering_regions ( obligation) {
663662 if let Some ( key) = ProjectionCacheKey :: from_poly_projection_predicate (
664663 & mut self . selcx ,
665664 project_obligation. predicate ,
@@ -668,7 +667,7 @@ impl<'a, 'tcx> FulfillProcessor<'a, 'tcx> {
668667 // evaluated all sub-obligations. We can therefore mark the 'root'
669668 // obligation as complete, and skip evaluating sub-obligations.
670669 self . selcx
671- . infcx ( )
670+ . infcx
672671 . inner
673672 . borrow_mut ( )
674673 . projection_cache ( )
@@ -707,7 +706,7 @@ fn substs_infer_vars<'a, 'tcx>(
707706 substs : ty:: Binder < ' tcx , SubstsRef < ' tcx > > ,
708707) -> impl Iterator < Item = TyOrConstInferVar < ' tcx > > {
709708 selcx
710- . infcx ( )
709+ . infcx
711710 . resolve_vars_if_possible ( substs)
712711 . skip_binder ( ) // ok because this check doesn't care about regions
713712 . iter ( )
0 commit comments