1
1
use crate :: utils:: { match_type, match_def_path, paths, span_help_and_lint, span_lint, walk_ptrs_ty} ;
2
- use crate :: utils:: sym;
3
2
use if_chain:: if_chain;
4
3
use rustc:: hir;
5
4
use rustc:: hir:: def:: { DefKind , Res } ;
@@ -8,9 +7,8 @@ use rustc::hir::*;
8
7
use rustc:: lint:: { EarlyContext , EarlyLintPass , LateContext , LateLintPass , LintArray , LintPass } ;
9
8
use rustc:: { declare_lint_pass, declare_tool_lint, impl_lint_pass} ;
10
9
use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
11
- use syntax:: ast:: { Crate as AstCrate , ItemKind , Name } ;
10
+ use syntax:: ast:: { Crate as AstCrate , Name } ;
12
11
use syntax:: source_map:: Span ;
13
- use syntax:: symbol:: LocalInternedString ;
14
12
15
13
declare_clippy_lint ! {
16
14
/// **What it does:** Checks for various things we like to keep tidy in clippy.
@@ -76,7 +74,9 @@ declare_clippy_lint! {
76
74
declare_lint_pass ! ( ClippyLintsInternal => [ CLIPPY_LINTS_INTERNAL ] ) ;
77
75
78
76
impl 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
80
80
if let Some(utils) = krate.module.items.iter().find(|item| item.ident.name == *sym::utils) {
81
81
if let ItemKind::Mod(ref utils_mod) = utils.node {
82
82
if let Some(paths) = utils_mod.items.iter().find(|item| item.ident.name == *sym::paths) {
@@ -101,6 +101,7 @@ impl EarlyLintPass for ClippyLintsInternal {
101
101
}
102
102
}
103
103
}
104
+ */
104
105
}
105
106
}
106
107
0 commit comments