Skip to content
Permalink
Browse files

WIP rebase for `shallow_resolve` call

  • Loading branch information...
nikomatsakis committed Oct 2, 2019
1 parent 094f3a8 commit 81cd596bc57f5a02b8de14c70a2ed2fc31ca3dfd
Showing with 1 addition and 1 deletion.
  1. +1 −1 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!(

0 comments on commit 81cd596

Please sign in to comment.
You can’t perform that action at this time.