Skip to content

Commit cdd15b7

Browse files
committed
Update find_entry
1 parent 0ff1bb1 commit cdd15b7

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
@@ -405,7 +405,7 @@ impl<'hir> Map<'hir> {
405405
}
406406

407407
fn find_entry(&self, id: HirId) -> Option<Entry<'hir>> {
408-
self.lookup(id).cloned()
408+
Some(self.get_entry(id))
409409
}
410410

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

0 commit comments

Comments
 (0)