diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2019-10-02 10:39:58 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2019-10-02 10:39:58 -0400 |
| commit | 81cd596bc57f5a02b8de14c70a2ed2fc31ca3dfd (patch) | |
| tree | 7a2e10a07d6d5341a84fe6a615bc7f5e60c00552 | |
| parent | 094f3a844ed95e2aeda8708cf32a85bd40e7e229 (diff) | |
| download | rust-81cd596bc57f5a02b8de14c70a2ed2fc31ca3dfd.tar.gz rust-81cd596bc57f5a02b8de14c70a2ed2fc31ca3dfd.zip | |
WIP rebase for `shallow_resolve` call
| -rw-r--r-- | src/librustc_typeck/check/closure.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/closure.rs b/src/librustc_typeck/check/closure.rs index e53f90ea719..b8def243635 100644 --- a/src/librustc_typeck/check/closure.rs +++ b/src/librustc_typeck/check/closure.rs @@ -663,7 +663,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { // be inferring. let ret_ty = ret_coercion.borrow().expected_ty(); let ret_ty = self.inh.infcx.shallow_resolve(ret_ty); - let ret_vid = match ret_ty.sty { + let ret_vid = match ret_ty.kind { ty::Infer(ty::TyVar(ret_vid)) => ret_vid, _ => { span_bug!( |
