Skip to content

Commit 61527c8

Browse files
committed
Update find_entry
1 parent 21942a5 commit 61527c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ impl<'hir> Map<'hir> {
400400
}
401401

402402
fn find_entry(&self, id: HirId) -> Option<Entry<'hir>> {
403-
self.lookup(id).cloned()
403+
Some(self.get_entry(id))
404404
}
405405

406406
fn get_entry(&self, id: HirId) -> Entry<'hir> {

0 commit comments

Comments
 (0)