diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs index 004121147d90..cca5983e62b0 100644 --- a/src/librustc/hir/lowering.rs +++ b/src/librustc/hir/lowering.rs @@ -3142,7 +3142,7 @@ impl<'a> LoweringContext<'a> { self.lower_impl_trait_ids(decl, &mut ids); ids }, - ItemKind::Impl(.., ref items) => { + ItemKind::Impl(.., None, _, ref items) => { let mut ids = SmallVector::one(hir::ItemId { id: i.id }); for item in items { if let ImplItemKind::Method(ref sig, _) = item.node {