We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b32319 commit caa01adCopy full SHA for caa01ad
compiler/rustc_smir/src/rustc_smir/mod.rs
@@ -132,7 +132,7 @@ impl<'tcx> Tables<'tcx> {
132
ty::Dynamic(_, _, _) => todo!(),
133
ty::Closure(_, _) => todo!(),
134
ty::Generator(_, _, _) => todo!(),
135
- ty::Never => todo!(),
+ ty::Never => TyKind::RigidTy(RigidTy::Never),
136
ty::Tuple(fields) => TyKind::RigidTy(RigidTy::Tuple(
137
fields.iter().map(|ty| self.intern_ty(ty)).collect(),
138
)),
compiler/rustc_smir/src/stable_mir/ty.rs
@@ -32,6 +32,7 @@ pub enum RigidTy {
32
Slice(Ty),
33
RawPtr(Ty, Mutability),
34
Ref(Region, Ty, Mutability),
35
+ Never,
36
Tuple(Vec<Ty>),
37
}
38
0 commit comments