Skip to content

Commit 81cd596

Browse files
committed
WIP rebase for shallow_resolve call
1 parent 094f3a8 commit 81cd596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/closure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
663663
// be inferring.
664664
let ret_ty = ret_coercion.borrow().expected_ty();
665665
let ret_ty = self.inh.infcx.shallow_resolve(ret_ty);
666-
let ret_vid = match ret_ty.sty {
666+
let ret_vid = match ret_ty.kind {
667667
ty::Infer(ty::TyVar(ret_vid)) => ret_vid,
668668
_ => {
669669
span_bug!(

0 commit comments

Comments
 (0)