Skip to content

Commit e694807

Browse files
varkoroli-obk
authored andcommitted
Fix missing tcx
1 parent a0275e3 commit e694807

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_mir/transform/const_prop.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ impl<'a, 'mir, 'tcx> ConstPropagator<'a, 'mir, 'tcx> {
506506
span,
507507
ty,
508508
user_ty: None,
509-
literal: self.tcx.mk_const(ty::Const::from_scalar(
509+
literal: self.tcx.mk_const(*ty::Const::from_scalar(
510+
self.tcx,
510511
scalar,
511512
ty,
512513
))

0 commit comments

Comments
 (0)