@@ -126,10 +126,7 @@ impl<'a, 'tcx> FulfillmentContext<'tcx> {
126126 }
127127
128128 /// Attempts to select obligations using `selcx`.
129- fn select (
130- & mut self ,
131- selcx : & mut SelectionContext < ' a , ' tcx > ,
132- ) -> Vec < FulfillmentError < ' tcx > > {
129+ fn select ( & mut self , selcx : & mut SelectionContext < ' a , ' tcx > ) -> Vec < FulfillmentError < ' tcx > > {
133130 let span = debug_span ! ( "select" , obligation_forest_size = ?self . predicates. len( ) ) ;
134131 let _enter = span. enter ( ) ;
135132
@@ -223,23 +220,15 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx> {
223220 . register_obligation ( PendingPredicateObligation { obligation, stalled_on : vec ! [ ] } ) ;
224221 }
225222
226- fn select_all_or_error (
227- & mut self ,
228- infcx : & InferCtxt < ' _ , ' tcx > ,
229- ) -> Vec < FulfillmentError < ' tcx > > {
223+ fn select_all_or_error ( & mut self , infcx : & InferCtxt < ' _ , ' tcx > ) -> Vec < FulfillmentError < ' tcx > > {
230224 {
231225 let errors = self . select_where_possible ( infcx) ;
232226 if !errors. is_empty ( ) {
233227 return errors;
234228 }
235229 }
236230
237- self
238- . predicates
239- . to_errors ( CodeAmbiguity )
240- . into_iter ( )
241- . map ( to_fulfillment_error)
242- . collect ( )
231+ self . predicates . to_errors ( CodeAmbiguity ) . into_iter ( ) . map ( to_fulfillment_error) . collect ( )
243232 }
244233
245234 fn select_all_with_constness_or_error (
@@ -254,12 +243,7 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx> {
254243 }
255244 }
256245
257- self
258- . predicates
259- . to_errors ( CodeAmbiguity )
260- . into_iter ( )
261- . map ( to_fulfillment_error)
262- . collect ( )
246+ self . predicates . to_errors ( CodeAmbiguity ) . into_iter ( ) . map ( to_fulfillment_error) . collect ( )
263247 }
264248
265249 fn select_where_possible (
0 commit comments