about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJesper Steen Møller <jesper@selskabet.org>2019-05-02 11:56:45 +0200
committerJesper Steen Møller <jesper@selskabet.org>2019-05-04 20:29:34 +0200
commit7dbb5e3b49b00c6bf0ce7b0e11a32eee38aeb8a3 (patch)
treebd5f6b8994eb404e96c895ef0add8b59b7c720ee
parent42255d93efe160600dd02711b7b009ea240945b4 (diff)
downloadrust-7dbb5e3b49b00c6bf0ce7b0e11a32eee38aeb8a3.tar.gz
rust-7dbb5e3b49b00c6bf0ce7b0e11a32eee38aeb8a3.zip
Use binding autoref, because we can.
-rw-r--r--src/librustc/ich/impls_hir.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ich/impls_hir.rs b/src/librustc/ich/impls_hir.rs
index 0869893fbad..5bd359ba1f6 100644
--- a/src/librustc/ich/impls_hir.rs
+++ b/src/librustc/ich/impls_hir.rs
@@ -391,10 +391,10 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::TraitCandidate {
                                           hcx: &mut StableHashingContext<'a>,
                                           hasher: &mut StableHasher<W>) {
         hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
-            let &hir::TraitCandidate {
+            let hir::TraitCandidate {
                 def_id,
                 import_ids,
-            } = &self;
+            } = self;
 
             def_id.hash_stable(hcx, hasher);
             // We only use the outermost import NodeId as key