mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 20:34:06 +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>,
|
hcx: &mut StableHashingContext<'a>,
|
||||||
hasher: &mut StableHasher<W>) {
|
hasher: &mut StableHasher<W>) {
|
||||||
hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
|
hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
|
||||||
let &hir::TraitCandidate {
|
let hir::TraitCandidate {
|
||||||
def_id,
|
def_id,
|
||||||
import_ids,
|
import_ids,
|
||||||
} = &self;
|
} = self;
|
||||||
|
|
||||||
def_id.hash_stable(hcx, hasher);
|
def_id.hash_stable(hcx, hasher);
|
||||||
// We only use the outermost import NodeId as key
|
// We only use the outermost import NodeId as key
|
||||||
|
Loading…
Reference in New Issue
Block a user