Skip to content

Commit

Permalink
Rollup merge of #72711 - lcnr:fixme-heyho, r=jonas-schievink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JohnTitor authored May 29, 2020
2 parents 05229f7 + 461891a commit 054fbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/transform/const_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}))
}

Expand Down

0 comments on commit 054fbf4

Please sign in to comment.