1
Fork 0

rustc: introduce ty::Const { ConstVal, Ty }.

This commit is contained in:
Eduard-Mihai Burtescu 2017-08-04 11:25:13 +03:00
parent 50076b00c2
commit 932289c12d
31 changed files with 409 additions and 194 deletions

View file

@ -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
})
}
})))
}