metadata: Constrain FoundAst::FoundParent to an Item.

This commit is contained in:
Eduard Burtescu 2016-02-23 21:10:29 +02:00
parent b918e37eb3
commit 062a05dde8
4 changed files with 69 additions and 100 deletions

View file

@ -122,7 +122,7 @@ pub struct ChildItem {
pub enum FoundAst<'ast> {
Found(&'ast InlinedItem),
FoundParent(DefId, &'ast InlinedItem),
FoundParent(DefId, &'ast hir::Item),
NotFound,
}