Skip to content

Commit 1f65617

Browse files
committed
Merge branch 'macro-use' into HEAD
2 parents 77b0300 + 2a37a62 commit 1f65617

File tree

123 files changed

+189
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+189
-20
lines changed

clippy_lints/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ edition = "2018"
2121
[dependencies]
2222
cargo_metadata = "0.5"
2323
itertools = "0.7"
24-
lazy_static = "1.0"
25-
matches = "0.1.2"
24+
lazy_static = "1.0.2"
25+
matches = "0.1.7"
2626
quine-mc_cluskey = "0.2.2"
2727
regex-syntax = "0.6"
2828
semver = "0.9.0"
@@ -32,7 +32,7 @@ toml = "0.4"
3232
unicode-normalization = "0.1"
3333
pulldown-cmark = "0.1"
3434
url = "1.7.0"
35-
if_chain = "0.1"
35+
if_chain = "0.1.3"
3636

3737
[features]
3838
debugging = []

clippy_lints/src/approx_const.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::utils::span_lint;
22
use rustc::hir::*;
33
use rustc::lint::*;
4+
use rustc::{declare_lint, lint_array};
45
use std::f64::consts as f64;
56
use syntax::ast::{FloatTy, Lit, LitKind};
67
use syntax::symbol;

clippy_lints/src/arithmetic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::utils::span_lint;
22
use rustc::hir;
33
use rustc::lint::*;
4+
use rustc::{declare_lint, lint_array};
45
use syntax::codemap::Span;
56

67
/// **What it does:** Checks for plain integer arithmetic.

clippy_lints/src/assign_ops.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use crate::utils::{higher, sugg};
33
use rustc::hir;
44
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
55
use rustc::lint::*;
6+
use rustc::{declare_lint, lint_array};
7+
use if_chain::if_chain;
68
use syntax::ast;
79

810
/// **What it does:** Checks for compound assignment operations (`+=` and

clippy_lints/src/attrs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use crate::utils::{
77
};
88
use rustc::hir::*;
99
use rustc::lint::*;
10+
use rustc::{declare_lint, lint_array};
11+
use if_chain::if_chain;
1012
use rustc::ty::{self, TyCtxt};
1113
use semver::Version;
1214
use syntax::ast::{AttrStyle, Attribute, Lit, LitKind, MetaItemKind, NestedMetaItem, NestedMetaItemKind};

clippy_lints/src/bit_mask.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use rustc::hir::*;
22
use rustc::lint::*;
3+
use rustc::{declare_lint, lint_array};
4+
use if_chain::if_chain;
35
use syntax::ast::LitKind;
46
use syntax::codemap::Span;
57
use crate::utils::{span_lint, span_lint_and_then};

clippy_lints/src/blacklisted_name.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use rustc::lint::*;
2+
use rustc::{declare_lint, lint_array};
23
use rustc::hir::*;
34
use crate::utils::span_lint;
45

clippy_lints/src/block_in_if_condition.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
use matches::matches;
12
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
3+
use rustc::{declare_lint, lint_array};
24
use rustc::hir::*;
35
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
46
use crate::utils::*;

clippy_lints/src/booleans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
2+
use rustc::{declare_lint, lint_array};
23
use rustc::hir::*;
34
use rustc::hir::intravisit::*;
45
use syntax::ast::{LitKind, NodeId, DUMMY_NODE_ID};

clippy_lints/src/bytecount.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use rustc::hir::*;
22
use rustc::lint::*;
3+
use rustc::{declare_lint, lint_array};
4+
use if_chain::if_chain;
35
use rustc::ty;
46
use syntax::ast::{Name, UintTy};
57
use crate::utils::{contains_name, get_pat_name, match_type, paths, single_segment_path, snippet, span_lint_and_sugg,

0 commit comments

Comments
 (0)