about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-05-09 12:42:16 +0000
committerbors <bors@rust-lang.org>2019-05-09 12:42:16 +0000
commitef01f29964df207f181bd5bcf236e41372a17273 (patch)
treeb79a940d128e2a62465f42d1f5121376704380eb
parent9f8396158457943b63bb39534b9ef86868f7cfac (diff)
parentf3993d0619eeb5fee94905725ca16de48b16e0e6 (diff)
downloadrust-ef01f29964df207f181bd5bcf236e41372a17273.tar.gz
rust-ef01f29964df207f181bd5bcf236e41372a17273.zip
Auto merge of #60668 - Zoxc:hir-map-vec, r=matthewjasper
Fix typo
-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(),