From 00b43687e523fbf72c7dcc9fcad6372b6070524a Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 10 Jun 2017 01:41:01 -0400 Subject: [PATCH] Pass extra parameter to CrateStore::item_children for rustc nightly rust-lang/rust#42507 Signed-off-by: Anders Kaseorg --- clippy_lints/src/utils/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index d068fa51ca40..fa14be236499 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -268,7 +268,7 @@ pub fn path_to_def(cx: &LateContext, path: &[&str]) -> Option { 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 { return Some(item.def); } - items = cstore.item_children(item.def.def_id()); + items = cstore.item_children(item.def.def_id(), cx.tcx.sess); break; } }