Skip to content

Commit 054fbf4

Browse files
authoredMay 29, 2020
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.
2 parents 05229f7 + 461891a commit 054fbf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/librustc_mir/transform/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
606606
Operand::Constant(Box::new(Constant {
607607
span,
608608
user_ty: None,
609-
literal: self.tcx.mk_const(*ty::Const::from_scalar(self.tcx, scalar, ty)),
609+
literal: ty::Const::from_scalar(self.tcx, scalar, ty),
610610
}))
611611
}
612612

0 commit comments

Comments
 (0)