Rollup merge of #72711 - lcnr:fixme-heyho, r=jonas-schievink
remove redundant `mk_const` Taken from #72675 as this is fairly unrelated and that PR is more difficult than I imagined, so it may take some time until it lands.
This commit is contained in:
commit
054fbf4019
@ -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