rustc: introduce ty::Const { ConstVal, Ty }.
This commit is contained in:
parent
50076b00c2
commit
932289c12d
31 changed files with 409 additions and 194 deletions
|
@ -521,7 +521,10 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
|
|||
span,
|
||||
ty: self.tcx.types.bool,
|
||||
literal: Literal::Value {
|
||||
value: self.tcx.mk_const(ConstVal::Bool(val))
|
||||
value: self.tcx.mk_const(ty::Const {
|
||||
val: ConstVal::Bool(val),
|
||||
ty: self.tcx.types.bool
|
||||
})
|
||||
}
|
||||
})))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue