@@ -15,7 +15,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1515 error : & mut traits:: FulfillmentError < ' tcx > ,
1616 ) -> bool {
1717 let ( ObligationCauseCode :: MiscItemInExpr ( def_id, hir_id, idx)
18- | ObligationCauseCode :: WhereInExpr ( def_id, _, hir_id, idx) ) =
18+ | ObligationCauseCode :: SpannedItemInExpr ( def_id, _, hir_id, idx) ) =
1919 * error. obligation . cause . code ( ) . peel_derives ( )
2020 else {
2121 return false ;
@@ -512,7 +512,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
512512 expr : & ' tcx hir:: Expr < ' tcx > ,
513513 ) -> Result < & ' tcx hir:: Expr < ' tcx > , & ' tcx hir:: Expr < ' tcx > > {
514514 match obligation_cause_code {
515- traits:: ObligationCauseCode :: WhereInExpr ( _, _, _, _) => {
515+ traits:: ObligationCauseCode :: SpannedItemInExpr ( _, _, _, _) => {
516516 // This is the "root"; we assume that the `expr` is already pointing here.
517517 // Therefore, we return `Ok` so that this `expr` can be refined further.
518518 Ok ( expr)
@@ -555,7 +555,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
555555 /// only a partial success - but it cannot be refined even further.
556556 fn blame_specific_expr_if_possible_for_derived_predicate_obligation (
557557 & self ,
558- obligation : & traits:: ImplDerivedObligationCause < ' tcx > ,
558+ obligation : & traits:: ImplDerivedCause < ' tcx > ,
559559 expr : & ' tcx hir:: Expr < ' tcx > ,
560560 ) -> Result < & ' tcx hir:: Expr < ' tcx > , & ' tcx hir:: Expr < ' tcx > > {
561561 // First, we attempt to refine the `expr` for our span using the parent obligation.
0 commit comments