Fix missing tcx

This commit is contained in:
varkor 2019-05-24 20:47:39 +01:00 committed by Oliver Scherer
parent a0275e3bf3
commit e694807650

View File

@ -506,7 +506,8 @@ impl<'a, 'mir, 'tcx> ConstPropagator<'a, 'mir, 'tcx> {
span,
ty,
user_ty: None,
literal: self.tcx.mk_const(ty::Const::from_scalar(
literal: self.tcx.mk_const(*ty::Const::from_scalar(
self.tcx,
scalar,
ty,
))