From 7dbb5e3b49b00c6bf0ce7b0e11a32eee38aeb8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Steen=20M=C3=B8ller?= Date: Thu, 2 May 2019 11:56:45 +0200 Subject: [PATCH] Use binding autoref, because we can. --- src/librustc/ich/impls_hir.rs | 4 ++-- 1 file 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> for hir::TraitCandidate { hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) { 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