Don't generate DefIds for impl trait in trait methods

This commit is contained in:
Oliver Schneider 2018-06-26 11:56:47 +02:00
parent 9eb75613f0
commit 62a5610791

View file

@ -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 {