Switch to declare_tool_lint macro
This commit is contained in:
parent
392235d6e1
commit
8c07772dbb
@ -1,7 +1,7 @@
|
|||||||
use crate::utils::span_lint;
|
use crate::utils::span_lint;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use std::f64::consts as f64;
|
use std::f64::consts as f64;
|
||||||
use syntax::ast::{FloatTy, Lit, LitKind};
|
use syntax::ast::{FloatTy, Lit, LitKind};
|
||||||
use syntax::symbol;
|
use syntax::symbol;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use crate::utils::span_lint;
|
use crate::utils::span_lint;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
|
|
||||||
/// **What it does:** Checks for plain integer arithmetic.
|
/// **What it does:** Checks for plain integer arithmetic.
|
||||||
|
@ -3,7 +3,7 @@ use crate::utils::{higher, sugg};
|
|||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ use crate::utils::{
|
|||||||
};
|
};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::{self, TyCtxt};
|
use rustc::ty::{self, TyCtxt};
|
||||||
use semver::Version;
|
use semver::Version;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::ast::LitKind;
|
use syntax::ast::LitKind;
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::span_lint;
|
use crate::utils::span_lint;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use matches::matches;
|
use matches::matches;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
||||||
use crate::utils::*;
|
use crate::utils::*;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit::*;
|
use rustc::hir::intravisit::*;
|
||||||
use syntax::ast::{LitKind, NodeId, DUMMY_NODE_ID};
|
use syntax::ast::{LitKind, NodeId, DUMMY_NODE_ID};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::ast::{Name, UintTy};
|
use syntax::ast::{Name, UintTy};
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
//! This lint is **warn** by default
|
//! This lint is **warn** by default
|
||||||
|
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use crate::utils::{in_macro, snippet, span_lint_and_then};
|
use crate::utils::{in_macro, snippet, span_lint_and_then};
|
||||||
|
|
||||||
/// **What it does:** Checks for constants with an explicit `'static` lifetime.
|
/// **What it does:** Checks for constants with an explicit `'static` lifetime.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty::Ty;
|
use rustc::ty::Ty;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use rustc::cfg::CFG;
|
use rustc::cfg::CFG;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::TyKind;
|
use rustc::ty::TyKind;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::{self, Ty};
|
use rustc::ty::{self, Ty};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use pulldown_cmark;
|
use pulldown_cmark;
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use syntax::source_map::{BytePos, Span};
|
use syntax::source_map::{BytePos, Span};
|
||||||
use syntax_pos::Pos;
|
use syntax_pos::Pos;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
|
|
||||||
use crate::utils::{snippet, span_lint_and_sugg, SpanlessEq};
|
use crate::utils::{snippet, span_lint_and_sugg, SpanlessEq};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintContext, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintContext, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
|
|
||||||
/// **What it does:** Checks for unnecessary double parentheses.
|
/// **What it does:** Checks for unnecessary double parentheses.
|
||||||
///
|
///
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::source_map::Spanned;
|
use syntax::source_map::Spanned;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! lint on if expressions with an else if, but without a final else branch
|
//! lint on if expressions with an else if, but without a final else branch
|
||||||
|
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
|
|
||||||
use crate::utils::span_lint_and_sugg;
|
use crate::utils::span_lint_and_sugg;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! lint when there is an enum with no variants
|
//! lint when there is an enum with no variants
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::span_lint_and_then;
|
use crate::utils::span_lint_and_then;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
use crate::utils::SpanlessEq;
|
use crate::utils::SpanlessEq;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//! don't fit into an `i32`
|
//! don't fit into an `i32`
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::ty::subst::Substs;
|
use rustc::ty::subst::Substs;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::NodeId;
|
use syntax::ast::NodeId;
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
use crate::utils::span_lint;
|
use crate::utils::span_lint;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! lint on enum variants that are prefixed or suffixed by the same characters
|
//! lint on enum variants that are prefixed or suffixed by the same characters
|
||||||
|
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, Lint};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, Lint};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
use syntax::symbol::LocalInternedString;
|
use syntax::symbol::LocalInternedString;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use crate::utils::{in_macro, implements_trait, is_copy, multispan_sugg, snippet, span_lint, span_lint_and_then, SpanlessEq};
|
use crate::utils::{in_macro, implements_trait, is_copy, multispan_sugg, snippet, span_lint, span_lint_and_then, SpanlessEq};
|
||||||
|
|
||||||
/// **What it does:** Checks for equal operands to comparison, logical and
|
/// **What it does:** Checks for equal operands to comparison, logical and
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use crate::consts::{constant_simple, Constant};
|
use crate::consts::{constant_simple, Constant};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
use crate::utils::{in_macro, span_lint};
|
use crate::utils::{in_macro, span_lint};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit as visit;
|
use rustc::hir::intravisit as visit;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::middle::expr_use_visitor::*;
|
use rustc::middle::expr_use_visitor::*;
|
||||||
use rustc::middle::mem_categorization::{cmt_, Categorization};
|
use rustc::middle::mem_categorization::{cmt_, Categorization};
|
||||||
use rustc::ty::{self, Ty};
|
use rustc::ty::{self, Ty};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::{is_adjusted, iter_input_pats, snippet_opt, span_lint_and_then};
|
use crate::utils::{is_adjusted, iter_input_pats, snippet_opt, span_lint_and_then};
|
||||||
|
@ -2,7 +2,7 @@ use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use crate::utils::{get_parent_expr, span_lint, span_note_and_lint};
|
use crate::utils::{get_parent_expr, span_lint, span_note_and_lint};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::TyKind;
|
use rustc::ty::TyKind;
|
||||||
use std::f32;
|
use std::f32;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use crate::utils::{is_expn_of, match_def_path, resolve_node, span_lint};
|
use crate::utils::{is_expn_of, match_def_path, resolve_node, span_lint};
|
||||||
use crate::utils::opt_def_id;
|
use crate::utils::opt_def_id;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::ast::LitKind;
|
use syntax::ast::LitKind;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use crate::utils::{differing_macro_contexts, in_macro, snippet_opt, span_note_and_lint};
|
use crate::utils::{differing_macro_contexts, in_macro, snippet_opt, span_note_and_lint};
|
||||||
use syntax::ptr::P;
|
use syntax::ptr::P;
|
||||||
|
@ -2,7 +2,7 @@ use matches::matches;
|
|||||||
use rustc::hir::intravisit;
|
use rustc::hir::intravisit;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use syntax::ast::NodeId;
|
use syntax::ast::NodeId;
|
||||||
use crate::utils::{in_macro, match_def_path, match_trait_method, same_tys, snippet, span_lint_and_then};
|
use crate::utils::{in_macro, match_def_path, match_trait_method, same_tys, snippet, span_lint_and_then};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use crate::consts::{constant_simple, Constant};
|
use crate::consts::{constant_simple, Constant};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
use crate::utils::{in_macro, snippet, span_lint, unsext, clip};
|
use crate::utils::{in_macro, snippet, span_lint, unsext, clip};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::{match_qpath, paths, snippet, span_lint_and_then};
|
use crate::utils::{match_qpath, paths, snippet, span_lint_and_then};
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//! on the condition
|
//! on the condition
|
||||||
|
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
|
|
||||||
use crate::utils::span_help_and_lint;
|
use crate::utils::span_help_and_lint;
|
||||||
|
@ -6,7 +6,7 @@ use crate::utils::higher;
|
|||||||
use crate::utils::higher::Range;
|
use crate::utils::higher::Range;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::ast::RangeLimits;
|
use syntax::ast::RangeLimits;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use super::utils::{get_arg_name, match_var, remove_blocks, snippet, span_lint_and_sugg};
|
use super::utils::{get_arg_name, match_var, remove_blocks, snippet, span_lint_and_sugg};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
|
|
||||||
/// **What it does:** Checks for matches being used to destructure a single-variant enum
|
/// **What it does:** Checks for matches being used to destructure a single-variant enum
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use crate::utils::{get_trait_def_id, higher, implements_trait, match_qpath, paths, span_lint};
|
use crate::utils::{get_trait_def_id, higher, implements_trait, match_qpath, paths, span_lint};
|
||||||
|
|
||||||
/// **What it does:** Checks for iteration that is guaranteed to be infinite.
|
/// **What it does:** Checks for iteration that is guaranteed to be infinite.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
use syntax_pos::Span;
|
use syntax_pos::Span;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! checks for `#[inline]` on trait methods without bodies
|
//! checks for `#[inline]` on trait methods without bodies
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use syntax::ast::{Attribute, Name};
|
use syntax::ast::{Attribute, Name};
|
||||||
use crate::utils::span_lint_and_then;
|
use crate::utils::span_lint_and_then;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! lint on blocks unnecessarily using >= with a + 1 or - 1
|
//! lint on blocks unnecessarily using >= with a + 1 or - 1
|
||||||
|
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
|
|
||||||
use crate::utils::{snippet_opt, span_lint_and_then};
|
use crate::utils::{snippet_opt, span_lint_and_then};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use matches::matches;
|
use matches::matches;
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use crate::utils::{in_macro, span_lint};
|
use crate::utils::{in_macro, span_lint};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! lint when there is a large size difference between variants on an enum
|
//! lint when there is a large size difference between variants on an enum
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::{snippet_opt, span_lint_and_then};
|
use crate::utils::{snippet_opt, span_lint_and_then};
|
||||||
use rustc::ty::layout::LayoutOf;
|
use rustc::ty::layout::LayoutOf;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use rustc::hir::def_id::DefId;
|
use rustc::hir::def_id::DefId;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use syntax::ast::{Lit, LitKind, Name};
|
use syntax::ast::{Lit, LitKind, Name};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::hir::BindingAnnotation;
|
use rustc::hir::BindingAnnotation;
|
||||||
|
@ -17,34 +17,34 @@ use rustc;
|
|||||||
|
|
||||||
macro_rules! declare_clippy_lint {
|
macro_rules! declare_clippy_lint {
|
||||||
{ pub $name:tt, style, $description:tt } => {
|
{ pub $name:tt, style, $description:tt } => {
|
||||||
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Warn, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, correctness, $description:tt } => {
|
{ pub $name:tt, correctness, $description:tt } => {
|
||||||
declare_lint! { pub $name, Deny, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Deny, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, complexity, $description:tt } => {
|
{ pub $name:tt, complexity, $description:tt } => {
|
||||||
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Warn, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, perf, $description:tt } => {
|
{ pub $name:tt, perf, $description:tt } => {
|
||||||
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Warn, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, pedantic, $description:tt } => {
|
{ pub $name:tt, pedantic, $description:tt } => {
|
||||||
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Allow, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, restriction, $description:tt } => {
|
{ pub $name:tt, restriction, $description:tt } => {
|
||||||
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Allow, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, cargo, $description:tt } => {
|
{ pub $name:tt, cargo, $description:tt } => {
|
||||||
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Allow, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, nursery, $description:tt } => {
|
{ pub $name:tt, nursery, $description:tt } => {
|
||||||
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Allow, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, internal, $description:tt } => {
|
{ pub $name:tt, internal, $description:tt } => {
|
||||||
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Allow, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
{ pub $name:tt, internal_warn, $description:tt } => {
|
{ pub $name:tt, internal_warn, $description:tt } => {
|
||||||
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true, clippy }
|
declare_tool_lint! { pub clippy::$name, Warn, $description, report_in_external_macro: true }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use crate::reexport::*;
|
use crate::reexport::*;
|
||||||
use matches::matches;
|
use matches::matches;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit::*;
|
use rustc::hir::intravisit::*;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//! floating-point literal expressions.
|
//! floating-point literal expressions.
|
||||||
|
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use syntax_pos;
|
use syntax_pos;
|
||||||
|
@ -5,7 +5,7 @@ use rustc::hir::def::Def;
|
|||||||
use rustc::hir::def_id;
|
use rustc::hir::def_id;
|
||||||
use rustc::hir::intravisit::{walk_block, walk_decl, walk_expr, walk_pat, walk_stmt, NestedVisitorMap, Visitor};
|
use rustc::hir::intravisit::{walk_block, walk_decl, walk_expr, walk_pat, walk_stmt, NestedVisitorMap, Visitor};
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::middle::region;
|
use rustc::middle::region;
|
||||||
// use rustc::middle::region::CodeExtent;
|
// use rustc::middle::region::CodeExtent;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc_errors::Applicability;
|
use rustc_errors::Applicability;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::{self, Ty};
|
use rustc::ty::{self, Ty};
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::{Expr, ExprKind};
|
use rustc::hir::{Expr, ExprKind};
|
||||||
use crate::utils::{match_def_path, opt_def_id, paths, span_lint};
|
use crate::utils::{match_def_path, opt_def_id, paths, span_lint};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use matches::matches;
|
use matches::matches;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, Lint, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, Lint, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::{self, Ty};
|
use rustc::ty::{self, Ty};
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
|
@ -2,7 +2,7 @@ use crate::consts::{constant_simple, Constant};
|
|||||||
use crate::utils::{match_def_path, opt_def_id, paths, span_lint};
|
use crate::utils::{match_def_path, opt_def_id, paths, span_lint};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
|
|
||||||
/// **What it does:** Checks for expressions where `std::cmp::min` and `max` are
|
/// **What it does:** Checks for expressions where `std::cmp::min` and `max` are
|
||||||
|
@ -3,7 +3,7 @@ use matches::matches;
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit::FnKind;
|
use rustc::hir::intravisit::FnKind;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::source_map::{ExpnFormat, Span};
|
use syntax::source_map::{ExpnFormat, Span};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, LintContext, in_external_macro};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, LintContext, in_external_macro};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::char;
|
use std::char;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use syntax::attr;
|
use syntax::attr;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
use crate::utils::span_lint;
|
use crate::utils::span_lint;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! lint on multiple versions of a crate being used
|
//! lint on multiple versions of a crate being used
|
||||||
|
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use crate::utils::span_lint;
|
use crate::utils::span_lint;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::hir::intravisit;
|
use rustc::hir::intravisit;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use crate::utils::{higher, span_lint};
|
use crate::utils::{higher, span_lint};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty::{self, Ty};
|
use rustc::ty::{self, Ty};
|
||||||
use rustc::ty::subst::Subst;
|
use rustc::ty::subst::Subst;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! This lint is **warn** by default
|
//! This lint is **warn** by default
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty::{self, Ty};
|
use rustc::ty::{self, Ty};
|
||||||
use rustc::hir::Expr;
|
use rustc::hir::Expr;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! This lint is **warn** by default
|
//! This lint is **warn** by default
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use syntax::ast::LitKind;
|
use syntax::ast::LitKind;
|
||||||
use syntax::source_map::Spanned;
|
use syntax::source_map::Spanned;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! This lint is **warn** by default
|
//! This lint is **warn** by default
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::{BindingAnnotation, Expr, ExprKind, MutImmutable, Pat, PatKind};
|
use rustc::hir::{BindingAnnotation, Expr, ExprKind, MutImmutable, Pat, PatKind};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! This lint is **warn** by default
|
//! This lint is **warn** by default
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::{BindingAnnotation, MutImmutable, Pat, PatKind};
|
use rustc::hir::{BindingAnnotation, MutImmutable, Pat, PatKind};
|
||||||
use crate::utils::{in_macro, snippet, span_lint_and_then};
|
use crate::utils::{in_macro, snippet, span_lint_and_then};
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
//!
|
//!
|
||||||
//! This lint is **warn** by default.
|
//! This lint is **warn** by default.
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use syntax::source_map::{original_sp, DUMMY_SP};
|
use syntax::source_map::{original_sp, DUMMY_SP};
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
@ -2,7 +2,7 @@ use matches::matches;
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit::FnKind;
|
use rustc::hir::intravisit::FnKind;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::{self, RegionKind, TypeFoldable};
|
use rustc::ty::{self, RegionKind, TypeFoldable};
|
||||||
use rustc::traits;
|
use rustc::traits;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc::hir::{Expr, ExprKind};
|
use rustc::hir::{Expr, ExprKind};
|
||||||
use crate::utils::span_lint;
|
use crate::utils::span_lint;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
|
|
||||||
use crate::utils::{self, paths, span_lint};
|
use crate::utils::{self, paths, span_lint};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::source_map::{Span, Spanned};
|
use syntax::source_map::{Span, Spanned};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use rustc::hir::def_id::DefId;
|
use rustc::hir::def_id::DefId;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty::{self, Ty};
|
use rustc::ty::{self, Ty};
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
use rustc::hir::{BinOpKind, BlockCheckMode, Expr, ExprKind, Stmt, StmtKind, UnsafeSource};
|
use rustc::hir::{BinOpKind, BlockCheckMode, Expr, ExprKind, Stmt, StmtKind, UnsafeSource};
|
||||||
use crate::utils::{has_drop, in_macro, snippet_opt, span_lint, span_lint_and_sugg};
|
use crate::utils::{has_drop, in_macro, snippet_opt, span_lint, span_lint_and_sugg};
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! This lint is **deny** by default.
|
//! This lint is **deny** by default.
|
||||||
|
|
||||||
use rustc::lint::{LateContext, LateLintPass, Lint, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, Lint, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
use rustc::ty::{self, TypeFlags};
|
use rustc::ty::{self, TypeFlags};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LintArray, LintPass, EarlyContext, EarlyLintPass};
|
use rustc::lint::{LintArray, LintPass, EarlyContext, EarlyLintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
use syntax::symbol::LocalInternedString;
|
use syntax::symbol::LocalInternedString;
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::{match_type, method_chain_args, paths, snippet, span_help_and_lint};
|
use crate::utils::{match_type, method_chain_args, paths, snippet, span_help_and_lint};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::{Expr, ExprKind};
|
use rustc::hir::{Expr, ExprKind};
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::LitKind;
|
use syntax::ast::LitKind;
|
||||||
use syntax::source_map::{Span, Spanned};
|
use syntax::source_map::{Span, Spanned};
|
||||||
use crate::utils::{match_type, paths, span_lint, walk_ptrs_ty};
|
use crate::utils::{match_type, paths, span_lint, walk_ptrs_ty};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::{span_lint, SpanlessEq};
|
use crate::utils::{span_lint, SpanlessEq};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::ast::LitKind;
|
use syntax::ast::LitKind;
|
||||||
use syntax::ptr::P;
|
use syntax::ptr::P;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::{is_automatically_derived, span_lint};
|
use crate::utils::{is_automatically_derived, span_lint};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use syntax::source_map::Spanned;
|
use syntax::source_map::Spanned;
|
||||||
use crate::utils::{in_macro, snippet, span_lint_and_sugg};
|
use crate::utils::{in_macro, snippet, span_lint_and_sugg};
|
||||||
|
@ -4,7 +4,7 @@ use std::borrow::Cow;
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::QPath;
|
use rustc::hir::QPath;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::ast::NodeId;
|
use syntax::ast::NodeId;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use syntax::ast::RangeLimits;
|
use syntax::ast::RangeLimits;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use syntax::ast::*;
|
use syntax::ast::*;
|
||||||
use crate::utils::{span_lint_and_sugg};
|
use crate::utils::{span_lint_and_sugg};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use syntax::ast::{Expr, ExprKind, UnOp};
|
use syntax::ast::{Expr, ExprKind, UnOp};
|
||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use crate::utils::{snippet, span_lint_and_sugg};
|
use crate::utils::{snippet, span_lint_and_sugg};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use regex_syntax;
|
use regex_syntax;
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use syntax::ast::{LitKind, NodeId, StrStyle};
|
use syntax::ast::{LitKind, NodeId, StrStyle};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use syntax::source_map::Span;
|
use syntax::source_map::Span;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use crate::utils::{get_trait_def_id, paths, span_lint};
|
use crate::utils::{get_trait_def_id, paths, span_lint};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::reexport::*;
|
use crate::reexport::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass, in_external_macro, LintContext};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::hir::intravisit::FnKind;
|
use rustc::hir::intravisit::FnKind;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use rustc::hir::*;
|
use rustc::hir::*;
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
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 syntax::source_map::Spanned;
|
||||||
use crate::utils::SpanlessEq;
|
use crate::utils::SpanlessEq;
|
||||||
use crate::utils::{get_parent_expr, is_allowed, match_type, paths, span_lint, span_lint_and_sugg, walk_ptrs_ty};
|
use crate::utils::{get_parent_expr, is_allowed, match_type, paths, span_lint, span_lint_and_sugg, walk_ptrs_ty};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use rustc::{declare_lint, lint_array};
|
use rustc::{declare_tool_lint, lint_array};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc::hir;
|
use rustc::hir;
|
||||||
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user