Auto merge of #113639 - ericmarkmartin:more-smir-types, r=oli-obk
Add more ty conversions to smir add str, slice, and array to smir types r? `@spastorino`
This commit is contained in:
commit
320b412f9c
@ -114,9 +114,11 @@ impl<'tcx> Tables<'tcx> {
|
||||
),
|
||||
)),
|
||||
ty::Foreign(_) => todo!(),
|
||||
ty::Str => todo!(),
|
||||
ty::Array(_, _) => todo!(),
|
||||
ty::Slice(_) => todo!(),
|
||||
ty::Str => TyKind::RigidTy(RigidTy::Str),
|
||||
ty::Array(ty, constant) => {
|
||||
TyKind::RigidTy(RigidTy::Array(self.intern_ty(*ty), opaque(constant)))
|
||||
}
|
||||
ty::Slice(ty) => TyKind::RigidTy(RigidTy::Slice(self.intern_ty(*ty))),
|
||||
ty::RawPtr(_) => todo!(),
|
||||
ty::Ref(_, _, _) => todo!(),
|
||||
ty::FnDef(_, _) => todo!(),
|
||||
|
@ -26,6 +26,9 @@ pub enum RigidTy {
|
||||
Uint(UintTy),
|
||||
Float(FloatTy),
|
||||
Adt(AdtDef, AdtSubsts),
|
||||
Str,
|
||||
Array(Ty, Const),
|
||||
Slice(Ty),
|
||||
Tuple(Vec<Ty>),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user