Skip to content

Fix #45268 by saving all NodeId's for resolved traits. #60415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 5, 2019
Prev Previous commit
Next Next commit
Use binding autoref, because we can.
  • Loading branch information
jespersm committed May 4, 2019
commit 7dbb5e3b49b00c6bf0ce7b0e11a32eee38aeb8a3
4 changes: 2 additions & 2 deletions src/librustc/ich/impls_hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down