Skip to content

Commit ab0f8fc

Browse files
MaikKleinarielb1
authored andcommitted
Test with trans_apply_param_substs
1 parent 1df6f83 commit ab0f8fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/ty/instance.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ impl<'a, 'tcx> Instance<'tcx> {
5050
tcx: TyCtxt<'a, 'tcx, 'tcx>)
5151
-> Ty<'tcx>
5252
{
53-
self.def.def_ty(tcx).subst(tcx, self.substs)
53+
let ty = self.def.def_ty(tcx);
54+
tcx.trans_apply_param_substs(self.substs, &ty)
5455
}
5556
}
5657

0 commit comments

Comments
 (0)