remove redundant mk_const
This commit is contained in:
parent
4512721156
commit
461891a000
@ -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),
|
||||
}))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user