Merge pull request #2977 from flip1995/tool_lints

Implement tool_lints
This commit is contained in:
Manish Goregaokar
2018-09-01 11:22:23 +05:30
committed by GitHub
525 changed files with 3272 additions and 3151 deletions

View File

@@ -1,6 +1,6 @@
use rustc::hir::*;
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
use rustc::{declare_lint, lint_array};
use rustc::{declare_tool_lint, lint_array};
use syntax::source_map::Spanned;
use crate::utils::SpanlessEq;
use crate::utils::{get_parent_expr, is_allowed, match_type, paths, span_lint, span_lint_and_sugg, walk_ptrs_ty};