@@ -85,16 +85,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
8585 /// to get more type information.
8686 // FIXME(-Ztrait-solver=next): A lot of the calls to this method should
8787 // probably be `try_structurally_resolve_type` or `structurally_resolve_type` instead.
88- pub ( in super :: super ) fn resolve_vars_with_obligations ( & self , ty : Ty < ' tcx > ) -> Ty < ' tcx > {
89- self . resolve_vars_with_obligations_and_mutate_fulfillment ( ty, |_| { } )
90- }
91-
92- #[ instrument( skip( self , mutate_fulfillment_errors) , level = "debug" , ret) ]
93- pub ( in super :: super ) fn resolve_vars_with_obligations_and_mutate_fulfillment (
94- & self ,
95- mut ty : Ty < ' tcx > ,
96- mutate_fulfillment_errors : impl Fn ( & mut Vec < traits:: FulfillmentError < ' tcx > > ) ,
97- ) -> Ty < ' tcx > {
88+ #[ instrument( skip( self ) , level = "debug" , ret) ]
89+ pub ( in super :: super ) fn resolve_vars_with_obligations ( & self , mut ty : Ty < ' tcx > ) -> Ty < ' tcx > {
9890 // No Infer()? Nothing needs doing.
9991 if !ty. has_non_region_infer ( ) {
10092 debug ! ( "no inference var, nothing needs doing" ) ;
@@ -112,7 +104,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
112104 // possible. This can help substantially when there are
113105 // indirect dependencies that don't seem worth tracking
114106 // precisely.
115- self . select_obligations_where_possible ( mutate_fulfillment_errors ) ;
107+ self . select_obligations_where_possible ( |_| { } ) ;
116108 self . resolve_vars_if_possible ( ty)
117109 }
118110
0 commit comments