File tree 1 file changed +7
-1
lines changed
compiler/rustc_mir/src/borrow_check/diagnostics
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -246,8 +246,14 @@ where
246
246
let mut fulfill_cx = <dyn TraitEngine < ' _ > >:: new ( tcx) ;
247
247
248
248
let mut selcx = SelectionContext :: new ( infcx) ;
249
- let ( param_env, value) = key. into_parts ( ) ;
250
249
250
+ // FIXME(lqd): Unify and de-duplicate the following with the actual
251
+ // `rustc_traits::type_op::type_op_normalize` query to allow the span we need in the
252
+ // `ObligationCause`. The normalization results are currently different between
253
+ // `AtExt::normalize` used in the query and `normalize` called below: the former fails
254
+ // to normalize the `nll/relate_tys/impl-fn-ignore-binder-via-bottom.rs` test. Check
255
+ // after #85499 lands to see if its fixes have erased this difference.
256
+ let ( param_env, value) = key. into_parts ( ) ;
251
257
let Normalized { value : _, obligations } = rustc_trait_selection:: traits:: normalize (
252
258
& mut selcx,
253
259
param_env,
You can’t perform that action at this time.
0 commit comments