mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Merge pull request #1820 from andersk/nightly
Pass extra parameter to CrateStore::item_children for rustc nightly
This commit is contained in:
commit
72ed74adfb
@ -268,7 +268,7 @@ pub fn path_to_def(cx: &LateContext, path: &[&str]) -> Option<def::Def> {
|
||||
krate: *krate,
|
||||
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();
|
||||
|
||||
loop {
|
||||
@ -283,7 +283,7 @@ pub fn path_to_def(cx: &LateContext, path: &[&str]) -> Option<def::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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user