mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
Pass extra parameter to CrateStore::item_children for rustc nightly
rust-lang/rust#42507 Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
3cbf126d59
commit
00b43687e5
1 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ pub fn path_to_def(cx: &LateContext, path: &[&str]) -> Option<def::Def> {
|
||||||
krate: *krate,
|
krate: *krate,
|
||||||
index: CRATE_DEF_INDEX,
|
index: CRATE_DEF_INDEX,
|
||||||
};
|
};
|
||||||
let mut items = cstore.item_children(krate);
|
let mut items = cstore.item_children(krate, cx.tcx.sess);
|
||||||
let mut path_it = path.iter().skip(1).peekable();
|
let mut path_it = path.iter().skip(1).peekable();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
@ -283,7 +283,7 @@ pub fn path_to_def(cx: &LateContext, path: &[&str]) -> Option<def::Def> {
|
||||||
return Some(item.def);
|
return Some(item.def);
|
||||||
}
|
}
|
||||||
|
|
||||||
items = cstore.item_children(item.def.def_id());
|
items = cstore.item_children(item.def.def_id(), cx.tcx.sess);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue