@@ -424,7 +424,7 @@ impl<'tcx> GotocCtx<'tcx> {
424424 {
425425 // Instance is Some(..) only when current codegen unit is a function.
426426 if let Some ( current_fn) = & self . current_fn {
427- current_fn. instance ( ) . subst_mir_and_normalize_erasing_regions (
427+ current_fn. instance ( ) . instantiate_mir_and_normalize_erasing_regions (
428428 self . tcx ,
429429 ty:: ParamEnv :: reveal_all ( ) ,
430430 ty:: EarlyBinder :: bind ( value) ,
@@ -813,11 +813,7 @@ impl<'tcx> GotocCtx<'tcx> {
813813 ty:: Bound ( _, _) | ty:: Param ( _) => unreachable ! ( "monomorphization bug" ) ,
814814
815815 // type checking remnants which shouldn't be reachable
816- ty:: GeneratorWitness ( _)
817- | ty:: GeneratorWitnessMIR ( _, _)
818- | ty:: Infer ( _)
819- | ty:: Placeholder ( _)
820- | ty:: Error ( _) => {
816+ ty:: GeneratorWitness ( _, _) | ty:: Infer ( _) | ty:: Placeholder ( _) | ty:: Error ( _) => {
821817 unreachable ! ( "remnants of type checking" )
822818 }
823819 }
@@ -1254,8 +1250,7 @@ impl<'tcx> GotocCtx<'tcx> {
12541250 // For soundness, hold off on generating them till we have test-cases.
12551251 ty:: Bound ( _, _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12561252 ty:: Error ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
1257- ty:: GeneratorWitness ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
1258- ty:: GeneratorWitnessMIR ( _, _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
1253+ ty:: GeneratorWitness ( _, _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12591254 ty:: Infer ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12601255 ty:: Param ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
12611256 ty:: Placeholder ( _) => todo ! ( "{:?} {:?}" , pointee_type, pointee_type. kind( ) ) ,
0 commit comments