]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_analysis/src/coherence/inherent_impls.rs
Rollup merge of #107154 - glaubitz:m68k-alloc, r=JohnTitor
[rust.git] / compiler / rustc_hir_analysis / src / coherence / inherent_impls.rs
index 6469f389bf91b313141ce01452fe74cb68b72f98..c1b0237b2d1f13813c9ccd195d60441e532b4ea2 100644 (file)
@@ -182,7 +182,7 @@ fn check_item(&mut self, id: hir::ItemId) {
         }
 
         let item = self.tcx.hir().item(id);
-        let hir::ItemKind::Impl(hir::Impl { of_trait: None, self_ty: ty, ref items, .. }) = item.kind else {
+        let hir::ItemKind::Impl(hir::Impl { of_trait: None, self_ty: ty, items, .. }) = item.kind else {
             return;
         };
 
@@ -240,6 +240,7 @@ fn check_item(&mut self, id: hir::ItemId) {
             | ty::Closure(..)
             | ty::Generator(..)
             | ty::GeneratorWitness(..)
+            | ty::GeneratorWitnessMIR(..)
             | ty::Bound(..)
             | ty::Placeholder(_)
             | ty::Infer(_) => {