Skip to content

Commit 461891a

Browse files
committed
remove redundant mk_const
1 parent 4512721 commit 461891a

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)