remove redundant mk_const

This commit is contained in:
Bastian Kauschke 2020-05-28 23:59:54 +02:00
parent 4512721156
commit 461891a000

View File

@ -606,7 +606,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
Operand::Constant(Box::new(Constant {
span,
user_ty: None,
literal: self.tcx.mk_const(*ty::Const::from_scalar(self.tcx, scalar, ty)),
literal: ty::Const::from_scalar(self.tcx, scalar, ty),
}))
}