X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_typeck%2Fcheck%2F_match.rs;h=5ffe34d61bf7d72243f3d9a70997cd3e0d779fa4;hb=5dc91a74b1428cf3d09a868727bf20b347664137;hp=aaaca48600661878662050f31c608c3232611904;hpb=b7f6d7239b03d1f7b8a9713412e1b74364879432;p=rust.git diff --git a/src/librustc_typeck/check/_match.rs b/src/librustc_typeck/check/_match.rs index aaaca486006..5ffe34d61bf 100644 --- a/src/librustc_typeck/check/_match.rs +++ b/src/librustc_typeck/check/_match.rs @@ -9,7 +9,7 @@ // except according to those terms. use middle::def; -use middle::infer; +use middle::infer::{self, TypeOrigin}; use middle::pat_util::{PatIdMap, pat_id_map, pat_is_binding}; use middle::pat_util::pat_is_resolved_const; use middle::privacy::{AllPublic, LastMod}; @@ -509,12 +509,12 @@ pub fn check_match<'a, 'tcx>(fcx: &FnCtxt<'a, 'tcx>, /* if-let construct without an else block */ hir::MatchSource::IfLetDesugar { contains_else_clause } if !contains_else_clause => ( - infer::IfExpressionWithNoElse(expr.span), + TypeOrigin::IfExpressionWithNoElse(expr.span), bty, result_ty, ), _ => ( - infer::MatchExpressionArm(expr.span, arm.body.span, match_src), + TypeOrigin::MatchExpressionArm(expr.span, arm.body.span, match_src), result_ty, bty, ),