]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/freshen.rs
Introduce GeneratorWitnessMIR.
[rust.git] / compiler / rustc_infer / src / infer / freshen.rs
index 8f53b1ccdf45829c758721072cf55d1063f730ff..83d71edc2abd927a640819ce5a71e28b4b8409a4 100644 (file)
@@ -209,6 +209,7 @@ fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx> {
             | ty::Foreign(..)
             | ty::Param(..)
             | ty::Closure(..)
+            | ty::GeneratorWitnessMIR(..)
             | ty::GeneratorWitness(..) => t.super_fold_with(self),
 
             ty::Placeholder(..) | ty::Bound(..) => bug!("unexpected type {:?}", t),