Skip to content

Commit

Permalink
Auto merge of #1960 - RalfJung:rustup, r=RalfJung
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jan 9, 2022
2 parents 5d21a5d + ee6198f commit c8b3cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
66f64a441a05cee8d5d701477b43ed851f778f3a
e19ca1d946269f7b7eb13171531caf2e16f42076
4 changes: 2 additions & 2 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn try_resolve_did<'mir, 'tcx>(tcx: TyCtxt<'tcx>, path: &[&str]) -> Option<DefId
tcx.crates(()).iter().find(|&&krate| tcx.crate_name(krate).as_str() == path[0]).and_then(
|krate| {
let krate = DefId { krate: *krate, index: CRATE_DEF_INDEX };
let mut items = tcx.item_children(krate);
let mut items = tcx.module_children(krate);
let mut path_it = path.iter().skip(1).peekable();

while let Some(segment) = path_it.next() {
Expand All @@ -37,7 +37,7 @@ fn try_resolve_did<'mir, 'tcx>(tcx: TyCtxt<'tcx>, path: &[&str]) -> Option<DefId
return Some(item.res.def_id());
}

items = tcx.item_children(item.res.def_id());
items = tcx.module_children(item.res.def_id());
break;
}
}
Expand Down

0 comments on commit c8b3cf0

Please sign in to comment.