Skip to content

Commit

Permalink
Pass extra parameter to CrateStore::item_children for rustc nightly
Browse files Browse the repository at this point in the history
rust-lang/rust#42507

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Jun 10, 2017
1 parent 3cbf126 commit 00b4368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 00b4368

Please sign in to comment.