mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 12:23:22 +00:00
Use binding autoref, because we can.
This commit is contained in:
parent
42255d93ef
commit
7dbb5e3b49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user