Add Ty
to ConstKind::Value
This commit is contained in:
parent
58feec9b85
commit
a9702a6668
30 changed files with 180 additions and 186 deletions
|
@ -116,12 +116,10 @@ fn encode_const<'tcx>(
|
|||
}
|
||||
|
||||
// Literal arguments
|
||||
ty::ConstKind::Value(..) => {
|
||||
ty::ConstKind::Value(ct_ty, ..) => {
|
||||
// L<element-type>[n]<element-value>E as literal argument
|
||||
|
||||
// Element type
|
||||
// THISPR
|
||||
let ct_ty: Ty<'tcx> = todo!();
|
||||
s.push_str(&encode_ty(tcx, ct_ty, dict, options));
|
||||
|
||||
// The only allowed types of const values are bool, u8, u16, u32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue