Skip to content

Commit

Permalink
Fix missing tcx
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor authored and oli-obk committed May 25, 2019
1 parent a0275e3 commit e694807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/transform/const_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ impl<'a, 'mir, 'tcx> ConstPropagator<'a, 'mir, 'tcx> {
span,
ty,
user_ty: None,
literal: self.tcx.mk_const(ty::Const::from_scalar(
literal: self.tcx.mk_const(*ty::Const::from_scalar(
self.tcx,
scalar,
ty,
))
Expand Down

0 comments on commit e694807

Please sign in to comment.