Skip to content

Commit

Permalink
Auto merge of #60668 - Zoxc:hir-map-vec, r=matthewjasper
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
bors committed May 9, 2019
2 parents 9f83961 + f3993d0 commit ef01f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/hir/map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ impl<'hir> Map<'hir> {
in_which: &parts[..parts.len() - 1],
};

self.all_ids().filter(move |hir| nodes.matces_suffix(*hir)).map(move |hir| {
self.all_ids().filter(move |hir| nodes.matches_suffix(*hir)).map(move |hir| {
self.hir_to_node_id(hir)
})
}
Expand Down Expand Up @@ -1198,7 +1198,7 @@ impl<'a> NodesMatchingSuffix<'a> {
name == &**self.item_name && self.suffix_matches(parent_of_n)
}

fn matces_suffix(&self, hir: HirId) -> bool {
fn matches_suffix(&self, hir: HirId) -> bool {
let name = match self.map.find_entry(hir).map(|entry| entry.node) {
Some(Node::Item(n)) => n.name(),
Some(Node::ForeignItem(n)) => n.name(),
Expand Down

0 comments on commit ef01f29

Please sign in to comment.