about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer <github35764891676564198441@oli-obk.de>2018-10-03 11:48:31 +0200
committerGitHub <noreply@github.com>2018-10-03 11:48:31 +0200
commitc47b9489ab4f2124e2e93a3b1ec8a2eeafe54cf4 (patch)
tree3554591ef26cdf65eb4807e2182f3e27ccd32558
parent11cc8472a925dff88e856cf37d107de107c65c53 (diff)
parentc43014794208963c4180a3c51ed06ec36d8a57b7 (diff)
downloadrust-c47b9489ab4f2124e2e93a3b1ec8a2eeafe54cf4.tar.gz
rust-c47b9489ab4f2124e2e93a3b1ec8a2eeafe54cf4.zip
Merge pull request #3252 from rust-lang-nursery/rustup
Fix push_item_path call (rustup to 4cf11765dc98536c6eedf33f2df7f72f6e161263)
-rw-r--r--clippy_lints/src/utils/mod.rs3
1 files changed, 2 insertions, 1 deletions
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<symbol::LocalInternedString>,
     }
@@ -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