@@ -126,10 +126,7 @@ impl<'a, 'tcx> FulfillmentContext<'tcx> {
126
126
}
127
127
128
128
/// 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 > > {
133
130
let span = debug_span ! ( "select" , obligation_forest_size = ?self . predicates. len( ) ) ;
134
131
let _enter = span. enter ( ) ;
135
132
@@ -223,23 +220,15 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx> {
223
220
. register_obligation ( PendingPredicateObligation { obligation, stalled_on : vec ! [ ] } ) ;
224
221
}
225
222
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 > > {
230
224
{
231
225
let errors = self . select_where_possible ( infcx) ;
232
226
if !errors. is_empty ( ) {
233
227
return errors;
234
228
}
235
229
}
236
230
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 ( )
243
232
}
244
233
245
234
fn select_all_with_constness_or_error (
@@ -254,12 +243,7 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx> {
254
243
}
255
244
}
256
245
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 ( )
263
247
}
264
248
265
249
fn select_where_possible (
0 commit comments