11use crate :: utils:: { match_type, match_def_path, paths, span_help_and_lint, span_lint, walk_ptrs_ty} ;
2- use crate :: utils:: sym;
32use if_chain:: if_chain;
43use rustc:: hir;
54use rustc:: hir:: def:: { DefKind , Res } ;
@@ -8,9 +7,8 @@ use rustc::hir::*;
87use rustc:: lint:: { EarlyContext , EarlyLintPass , LateContext , LateLintPass , LintArray , LintPass } ;
98use rustc:: { declare_lint_pass, declare_tool_lint, impl_lint_pass} ;
109use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
11- use syntax:: ast:: { Crate as AstCrate , ItemKind , Name } ;
10+ use syntax:: ast:: { Crate as AstCrate , Name } ;
1211use syntax:: source_map:: Span ;
13- use syntax:: symbol:: LocalInternedString ;
1412
1513declare_clippy_lint ! {
1614 /// **What it does:** Checks for various things we like to keep tidy in clippy.
@@ -76,7 +74,9 @@ declare_clippy_lint! {
7674declare_lint_pass ! ( ClippyLintsInternal => [ CLIPPY_LINTS_INTERNAL ] ) ;
7775
7876impl EarlyLintPass for ClippyLintsInternal {
79- fn check_crate ( & mut self , cx : & EarlyContext < ' _ > , krate : & AstCrate ) {
77+ fn check_crate ( & mut self , _cx : & EarlyContext < ' _ > , _krate : & AstCrate ) {
78+ /*
79+ FIXME: turn back on when we get rid of all the lazy_statics
8080 if let Some(utils) = krate.module.items.iter().find(|item| item.ident.name == *sym::utils) {
8181 if let ItemKind::Mod(ref utils_mod) = utils.node {
8282 if let Some(paths) = utils_mod.items.iter().find(|item| item.ident.name == *sym::paths) {
@@ -101,6 +101,7 @@ impl EarlyLintPass for ClippyLintsInternal {
101101 }
102102 }
103103 }
104+ */
104105 }
105106}
106107
0 commit comments