Add type system canaries for potential future bugs

This commit is contained in:
Oliver Schneider 2018-07-25 10:50:30 +02:00
parent 01eacd8583
commit 33712a8a10
1 changed files with 5 additions and 1 deletions

View File

@ -385,7 +385,11 @@ impl<'a, 'gcx, 'tcx> Ancestors {
| (Type, Existential)
=> tcx.hygienic_eq(impl_item.ident, trait_item_name, trait_def_id),
_ => false,
| (Const, _)
| (Method, _)
| (Type, _)
| (Existential, _)
=> false,
}).map(move |item| NodeItem { node: node, item: item })
})
}