Add Never to SMIR
This commit is contained in:
parent
9b32319205
commit
caa01adbd0
2 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,7 @@ impl<'tcx> Tables<'tcx> {
|
||||||
ty::Dynamic(_, _, _) => todo!(),
|
ty::Dynamic(_, _, _) => todo!(),
|
||||||
ty::Closure(_, _) => todo!(),
|
ty::Closure(_, _) => todo!(),
|
||||||
ty::Generator(_, _, _) => todo!(),
|
ty::Generator(_, _, _) => todo!(),
|
||||||
ty::Never => todo!(),
|
ty::Never => TyKind::RigidTy(RigidTy::Never),
|
||||||
ty::Tuple(fields) => TyKind::RigidTy(RigidTy::Tuple(
|
ty::Tuple(fields) => TyKind::RigidTy(RigidTy::Tuple(
|
||||||
fields.iter().map(|ty| self.intern_ty(ty)).collect(),
|
fields.iter().map(|ty| self.intern_ty(ty)).collect(),
|
||||||
)),
|
)),
|
||||||
|
|
|
@ -32,6 +32,7 @@ pub enum RigidTy {
|
||||||
Slice(Ty),
|
Slice(Ty),
|
||||||
RawPtr(Ty, Mutability),
|
RawPtr(Ty, Mutability),
|
||||||
Ref(Region, Ty, Mutability),
|
Ref(Region, Ty, Mutability),
|
||||||
|
Never,
|
||||||
Tuple(Vec<Ty>),
|
Tuple(Vec<Ty>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue