diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-06-18 18:22:41 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-07-23 18:04:21 +0900 |
| commit | cb3b3cf6abcd29f408b28cf3d59489a22ccc8897 (patch) | |
| tree | 6bdd753c6e6d593b20f5f810be9c8fd1ef6ed039 /compiler/rustc_middle | |
| parent | b2b7c859c1aae39d26884e760201f5e6c7feeff9 (diff) | |
| download | rust-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.rs | 2 |
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. |
