We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f83961 + f3993d0 commit ef01f29Copy full SHA for ef01f29
src/librustc/hir/map/mod.rs
@@ -1057,7 +1057,7 @@ impl<'hir> Map<'hir> {
1057
in_which: &parts[..parts.len() - 1],
1058
};
1059
1060
- 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| {
1061
self.hir_to_node_id(hir)
1062
})
1063
}
@@ -1198,7 +1198,7 @@ impl<'a> NodesMatchingSuffix<'a> {
1198
name == &**self.item_name && self.suffix_matches(parent_of_n)
1199
1200
1201
- fn matces_suffix(&self, hir: HirId) -> bool {
+ fn matches_suffix(&self, hir: HirId) -> bool {
1202
let name = match self.map.find_entry(hir).map(|entry| entry.node) {
1203
Some(Node::Item(n)) => n.name(),
1204
Some(Node::ForeignItem(n)) => n.name(),
0 commit comments