We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b82e5 commit 715cd99Copy full SHA for 715cd99
compiler/rustc_smir/src/rustc_smir/mod.rs
@@ -101,21 +101,23 @@ impl<'tcx> Tables<'tcx> {
101
ty::Ref(_, _, _) => todo!(),
102
ty::FnDef(_, _) => todo!(),
103
ty::FnPtr(_) => todo!(),
104
- ty::Placeholder(..) => todo!(),
105
ty::Dynamic(_, _, _) => todo!(),
106
ty::Closure(_, _) => todo!(),
107
ty::Generator(_, _, _) => todo!(),
108
- ty::GeneratorWitness(_) => todo!(),
109
- ty::GeneratorWitnessMIR(_, _) => todo!(),
110
ty::Never => todo!(),
111
ty::Tuple(fields) => TyKind::RigidTy(RigidTy::Tuple(
112
fields.iter().map(|ty| self.intern_ty(ty)).collect(),
113
)),
114
ty::Alias(_, _) => todo!(),
115
ty::Param(_) => todo!(),
116
ty::Bound(_, _) => todo!(),
117
- ty::Infer(_) => todo!(),
118
- ty::Error(_) => todo!(),
+ ty::Placeholder(..)
+ | ty::GeneratorWitness(_)
+ | ty::GeneratorWitnessMIR(_, _)
+ | ty::Infer(_)
+ | ty::Error(_) => {
119
+ unreachable!();
120
+ }
121
}
122
123
0 commit comments