@@ -842,7 +842,11 @@ impl<'tcx> GotocCtx<'tcx> {
842842 ty:: Bound ( _, _) | ty:: Param ( _) => unreachable ! ( "monomorphization bug" ) ,
843843
844844 // type checking remnants which shouldn't be reachable
845- ty:: GeneratorWitness ( _) | ty:: Infer ( _) | ty:: Placeholder ( _) | ty:: Error ( _) => {
845+ ty:: GeneratorWitness ( _)
846+ | ty:: GeneratorWitnessMIR ( _, _)
847+ | ty:: Infer ( _)
848+ | ty:: Placeholder ( _)
849+ | ty:: Error ( _) => {
846850 unreachable ! ( "remnants of type checking" )
847851 }
848852 }
@@ -1280,6 +1284,7 @@ impl<'tcx> GotocCtx<'tcx> {
12801284 ty:: Bound ( _, _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12811285 ty:: Error ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12821286 ty:: GeneratorWitness ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
1287+ ty:: GeneratorWitnessMIR ( _, _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12831288 ty:: Infer ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12841289 ty:: Param ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12851290 ty:: Placeholder ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
@@ -1630,7 +1635,7 @@ impl<'tcx> GotocCtx<'tcx> {
16301635
16311636 Primitive :: F32 => self . tcx . types . f32 ,
16321637 Primitive :: F64 => self . tcx . types . f64 ,
1633- Primitive :: Pointer => {
1638+ Primitive :: Pointer ( _ ) => {
16341639 self . tcx . mk_ptr ( ty:: TypeAndMut { ty : self . tcx . types . u8 , mutbl : Mutability :: Not } )
16351640 }
16361641 }
0 commit comments