WIP rebase for shallow_resolve call

This commit is contained in:
Niko Matsakis 2019-10-02 10:39:58 -04:00
parent 094f3a844e
commit 81cd596bc5

View file

@ -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!(