@@ -15,7 +15,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
15
15
error : & mut traits:: FulfillmentError < ' tcx > ,
16
16
) -> bool {
17
17
let ( ObligationCauseCode :: MiscItemInExpr ( def_id, hir_id, idx)
18
- | ObligationCauseCode :: WhereInExpr ( def_id, _, hir_id, idx) ) =
18
+ | ObligationCauseCode :: SpannedItemInExpr ( def_id, _, hir_id, idx) ) =
19
19
* error. obligation . cause . code ( ) . peel_derives ( )
20
20
else {
21
21
return false ;
@@ -512,7 +512,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
512
512
expr : & ' tcx hir:: Expr < ' tcx > ,
513
513
) -> Result < & ' tcx hir:: Expr < ' tcx > , & ' tcx hir:: Expr < ' tcx > > {
514
514
match obligation_cause_code {
515
- traits:: ObligationCauseCode :: WhereInExpr ( _, _, _, _) => {
515
+ traits:: ObligationCauseCode :: SpannedItemInExpr ( _, _, _, _) => {
516
516
// This is the "root"; we assume that the `expr` is already pointing here.
517
517
// Therefore, we return `Ok` so that this `expr` can be refined further.
518
518
Ok ( expr)
@@ -555,7 +555,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
555
555
/// only a partial success - but it cannot be refined even further.
556
556
fn blame_specific_expr_if_possible_for_derived_predicate_obligation (
557
557
& self ,
558
- obligation : & traits:: ImplDerivedObligationCause < ' tcx > ,
558
+ obligation : & traits:: ImplDerivedCause < ' tcx > ,
559
559
expr : & ' tcx hir:: Expr < ' tcx > ,
560
560
) -> Result < & ' tcx hir:: Expr < ' tcx > , & ' tcx hir:: Expr < ' tcx > > {
561
561
// First, we attempt to refine the `expr` for our span using the parent obligation.
0 commit comments