remove redundant mk_const
This commit is contained in:
parent
4512721156
commit
461891a000
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue