about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-02-07 19:17:48 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-03-14 22:52:29 +0100
commit61527c8d8c7d301e37d241c6dfa7e5c281e9a5b7 (patch)
tree6d94f511beacc3b8b8744712afc3393e5248786e
parent21942a5cf6f75be68bcef22bd830e6379ede7df8 (diff)
downloadrust-61527c8d8c7d301e37d241c6dfa7e5c281e9a5b7.tar.gz
rust-61527c8d8c7d301e37d241c6dfa7e5c281e9a5b7.zip
Update `find_entry`
-rw-r--r--src/librustc/hir/map/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs
index 9d88e78afa7..52bdc6a1475 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<Entry<'hir>> {
-        self.lookup(id).cloned()
+        Some(self.get_entry(id))
     }
 
     fn get_entry(&self, id: HirId) -> Entry<'hir> {