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 9663612 commit e997d62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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-19"
channel = "nightly-2022-01-26"
components = ["llvm-tools-preview", "rustc-dev"]
8 changes: 4 additions & 4 deletions src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ fn diff_adts(changes: &mut ChangeSet, id_mapping: &mut IdMapping, tcx: TyCtxt, o
id_mapping.add_inherent_item(
old_def_id,
item.kind,
item.ident.name,
item.ident(tcx).name,
*impl_def_id,
*item_def_id,
);
Expand All @@ -559,7 +559,7 @@ fn diff_adts(changes: &mut ChangeSet, id_mapping: &mut IdMapping, tcx: TyCtxt, o
id_mapping.add_inherent_item(
new_def_id,
item.kind,
item.ident.name,
item.ident(tcx).name,
*impl_def_id,
*item_def_id,
);
Expand Down Expand Up @@ -622,13 +622,13 @@ fn diff_traits<'tcx>(

for old_def_id in tcx.associated_item_def_ids(old).iter() {
let item = tcx.associated_item(*old_def_id);
items.entry(item.ident.name).or_insert((None, None)).0 = Some(item);
items.entry(item.ident(tcx).name).or_insert((None, None)).0 = Some(item);
// tcx.describe_def(*old_def_id).map(|d| (d, item));
}

for new_def_id in tcx.associated_item_def_ids(new).iter() {
let item = tcx.associated_item(*new_def_id);
items.entry(item.ident.name).or_insert((None, None)).1 = Some(item);
items.entry(item.ident(tcx).name).or_insert((None, None)).1 = Some(item);
// tcx.describe_def(*new_def_id).map(|d| (d, item));
}

Expand Down

0 comments on commit e997d62

Please sign in to comment.