Skip to content

Commit 9859a52

Browse files
committed
Don't try to do impl Trait lowering for impl Trait for Type items
1 parent 398a5f8 commit 9859a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/hir/lowering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2837,7 +2837,7 @@ impl<'a> LoweringContext<'a> {
28372837
self.lower_impl_trait_ids(decl, &mut ids);
28382838
ids
28392839
},
2840-
ItemKind::Impl(.., ref items) => {
2840+
ItemKind::Impl(.., None, _, ref items) => {
28412841
let mut ids = SmallVector::one(hir::ItemId { id: i.id });
28422842
for item in items {
28432843
if let ImplItemKind::Method(ref sig, _) = item.node {

0 commit comments

Comments
 (0)