@@ -195,10 +195,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
195
195
let Trace { at, trace, a_is_expected } = self ;
196
196
at. infcx . commit_if_ok ( |_| {
197
197
let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
198
- fields. sub ( a_is_expected ) . relate ( a , b ) . map ( move |_| {
199
- let _ = & fields ;
200
- InferOk { value : ( ) , obligations : fields . obligations }
201
- } )
198
+ fields
199
+ . sub ( a_is_expected )
200
+ . relate ( a , b )
201
+ . map ( move |_| InferOk { value : ( ) , obligations : fields . obligations } )
202
202
} )
203
203
}
204
204
@@ -212,10 +212,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
212
212
let Trace { at, trace, a_is_expected } = self ;
213
213
at. infcx . commit_if_ok ( |_| {
214
214
let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
215
- fields. equate ( a_is_expected ) . relate ( a , b ) . map ( move |_| {
216
- let _ = & fields ;
217
- InferOk { value : ( ) , obligations : fields . obligations }
218
- } )
215
+ fields
216
+ . equate ( a_is_expected )
217
+ . relate ( a , b )
218
+ . map ( move |_| InferOk { value : ( ) , obligations : fields . obligations } )
219
219
} )
220
220
}
221
221
@@ -227,10 +227,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
227
227
let Trace { at, trace, a_is_expected } = self ;
228
228
at. infcx . commit_if_ok ( |_| {
229
229
let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
230
- fields. lub ( a_is_expected ) . relate ( a , b ) . map ( move |t| {
231
- let _ = & fields ;
232
- InferOk { value : t , obligations : fields . obligations }
233
- } )
230
+ fields
231
+ . lub ( a_is_expected )
232
+ . relate ( a , b )
233
+ . map ( move |t| InferOk { value : t , obligations : fields . obligations } )
234
234
} )
235
235
}
236
236
@@ -242,10 +242,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
242
242
let Trace { at, trace, a_is_expected } = self ;
243
243
at. infcx . commit_if_ok ( |_| {
244
244
let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
245
- fields. glb ( a_is_expected ) . relate ( a , b ) . map ( move |t| {
246
- let _ = & fields ;
247
- InferOk { value : t , obligations : fields . obligations }
248
- } )
245
+ fields
246
+ . glb ( a_is_expected )
247
+ . relate ( a , b )
248
+ . map ( move |t| InferOk { value : t , obligations : fields . obligations } )
249
249
} )
250
250
}
251
251
}
0 commit comments