From c43014794208963c4180a3c51ed06ec36d8a57b7 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 3 Oct 2018 02:02:50 -0700 Subject: [PATCH] Fix push_item_path call (rustup to 4cf11765dc98536c6eedf33f2df7f72f6e161263) --- clippy_lints/src/utils/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index 0011065db67..fa3c72dbb7d 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -72,6 +72,7 @@ pub fn in_macro(span: Span) -> bool { pub fn match_def_path(tcx: TyCtxt<'_, '_, '_>, def_id: DefId, path: &[&str]) -> bool { use crate::syntax::symbol; + #[derive(Debug)] struct AbsolutePathBuffer { names: Vec, } @@ -89,7 +90,7 @@ pub fn match_def_path(tcx: TyCtxt<'_, '_, '_>, def_id: DefId, path: &[&str]) -> let mut apb = AbsolutePathBuffer { names: vec![] }; - tcx.push_item_path(&mut apb, def_id); + tcx.push_item_path(&mut apb, def_id, false); apb.names.len() == path.len() && apb.names