about summary refs log tree commit diff
path: root/compiler/rustc_middle
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-06-18 18:22:41 +0900
committerYuki Okushi <yuki.okushi@huawei.com>2021-07-23 18:04:21 +0900
commitcb3b3cf6abcd29f408b28cf3d59489a22ccc8897 (patch)
tree6bdd753c6e6d593b20f5f810be9c8fd1ef6ed039 /compiler/rustc_middle
parentb2b7c859c1aae39d26884e760201f5e6c7feeff9 (diff)
downloadrust-cb3b3cf6abcd29f408b28cf3d59489a22ccc8897.tar.gz
rust-cb3b3cf6abcd29f408b28cf3d59489a22ccc8897.zip
Improve `get_by_key_enumerated` more
Diffstat (limited to 'compiler/rustc_middle')
-rw-r--r--compiler/rustc_middle/src/ty/assoc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/assoc.rs b/compiler/rustc_middle/src/ty/assoc.rs
index d005f63ed43..2d177551664 100644
--- a/compiler/rustc_middle/src/ty/assoc.rs
+++ b/compiler/rustc_middle/src/ty/assoc.rs
@@ -124,7 +124,7 @@ impl<'tcx> AssocItems<'tcx> {
         &self,
         name: Symbol,
     ) -> impl '_ + Iterator<Item = &ty::AssocItem> {
-        self.items.get_by_key(&name).copied()
+        self.items.get_by_key(name).copied()
     }
 
     /// Returns an iterator over all associated items with the given name.