Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dario23 committed May 6, 2022
1 parent e997d62 commit 02e868f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NOTE: Keep in sync with nightly date on README
[toolchain]
channel = "nightly-2022-01-26"
channel = "nightly-2022-01-27"
components = ["llvm-tools-preview", "rustc-dev"]
8 changes: 2 additions & 6 deletions src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1163,11 +1163,9 @@ fn diff_trait_impls<'tcx>(
let structural_trait_def_ids = [structural_peq_def_id, structural_teq_def_id];

let cstore = CStore::from_tcx(tcx);
for (old_impl_def_id, _) in
for (old_trait_def_id, old_impl_def_id, _) in
cstore.trait_impls_in_crate_untracked(id_mapping.get_old_crate())
{
let old_trait_def_id = tcx.impl_trait_ref(old_impl_def_id).unwrap().def_id;

if structural_trait_def_ids.contains(&old_trait_def_id) {
continue;
}
Expand All @@ -1186,11 +1184,9 @@ fn diff_trait_impls<'tcx>(
}
}

for (new_impl_def_id, _) in
for (new_trait_def_id, new_impl_def_id, _) in
cstore.trait_impls_in_crate_untracked(id_mapping.get_new_crate())
{
let new_trait_def_id = tcx.impl_trait_ref(new_impl_def_id).unwrap().def_id;

if structural_trait_def_ids.contains(&new_trait_def_id) {
continue;
}
Expand Down

0 comments on commit 02e868f

Please sign in to comment.