Fix missing tcx
This commit is contained in:
parent
a0275e3bf3
commit
e694807650
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue