Add Char ty to SMIR
This commit is contained in:
parent
61adcaf87b
commit
73e816e37c
3 changed files with 8 additions and 3 deletions
|
@ -71,7 +71,7 @@ impl<'tcx> Tables<'tcx> {
|
|||
fn rustc_ty_to_ty(&mut self, ty: Ty<'tcx>) -> TyKind {
|
||||
match ty.kind() {
|
||||
ty::Bool => TyKind::RigidTy(RigidTy::Bool),
|
||||
ty::Char => todo!(),
|
||||
ty::Char => TyKind::RigidTy(RigidTy::Char),
|
||||
ty::Int(_) => todo!(),
|
||||
ty::Uint(_) => todo!(),
|
||||
ty::Float(_) => todo!(),
|
||||
|
|
|
@ -17,5 +17,6 @@ pub enum TyKind {
|
|||
#[derive(Clone, Debug)]
|
||||
pub enum RigidTy {
|
||||
Bool,
|
||||
Char,
|
||||
Tuple(Vec<Ty>),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue