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:
Anders Kaseorg 2017-06-10 01:41:01 -04:00
parent 3cbf126d59
commit 00b43687e5

View file

@ -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;
} }
} }