diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs index 9d88e78afa78..52bdc6a14757 100644 --- a/src/librustc/hir/map/mod.rs +++ b/src/librustc/hir/map/mod.rs @@ -400,7 +400,7 @@ impl<'hir> Map<'hir> { } fn find_entry(&self, id: HirId) -> Option> { - self.lookup(id).cloned() + Some(self.get_entry(id)) } fn get_entry(&self, id: HirId) -> Entry<'hir> {