about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/hir/map/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs
index c2b513a39a8..807b90b0807 100644
--- a/src/librustc/hir/map/mod.rs
+++ b/src/librustc/hir/map/mod.rs
@@ -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)
         })
     }
@@ -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(),