]> git.lizzy.rs Git - rust.git/commitdiff
Test with trans_apply_param_substs
authorMaik Klein <maikklein@googlemail.com>
Thu, 23 Nov 2017 09:20:55 +0000 (10:20 +0100)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Mon, 18 Dec 2017 15:08:49 +0000 (17:08 +0200)
src/librustc/ty/instance.rs

index 5259e790e925422000f995626b06bc459c25efaa..0506b0e8eff73836b7eeac80c665150d0f26abf1 100644 (file)
@@ -50,7 +50,8 @@ pub fn ty(&self,
               tcx: TyCtxt<'a, 'tcx, 'tcx>)
               -> Ty<'tcx>
     {
-        self.def.def_ty(tcx).subst(tcx, self.substs)
+        let ty = self.def.def_ty(tcx);
+        tcx.trans_apply_param_substs(self.substs, &ty)
     }
 }