Skip to content

Commit ef01f29

Browse files
committedMay 9, 2019
Auto merge of #60668 - Zoxc:hir-map-vec, r=matthewjasper
Fix typo
2 parents 9f83961 + f3993d0 commit ef01f29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/librustc/hir/map/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ impl<'hir> Map<'hir> {
10571057
in_which: &parts[..parts.len() - 1],
10581058
};
10591059

1060-
self.all_ids().filter(move |hir| nodes.matces_suffix(*hir)).map(move |hir| {
1060+
self.all_ids().filter(move |hir| nodes.matches_suffix(*hir)).map(move |hir| {
10611061
self.hir_to_node_id(hir)
10621062
})
10631063
}
@@ -1198,7 +1198,7 @@ impl<'a> NodesMatchingSuffix<'a> {
11981198
name == &**self.item_name && self.suffix_matches(parent_of_n)
11991199
}
12001200

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

0 commit comments

Comments
 (0)
Please sign in to comment.