Skip to content

Commit ac912be

Browse files
committed
Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyup
1 parent c18d6f1 commit ac912be

File tree

114 files changed

+6060
-453
lines changed

Some content is hidden

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

114 files changed

+6060
-453
lines changed

.cargo/config

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[alias]
22
uitest = "test --test compile-test"
33
dev = "run --target-dir clippy_dev/target --package clippy_dev --bin clippy_dev --manifest-path clippy_dev/Cargo.toml --"
4+
dev-lintcheck = "run --target-dir clippy_dev/target --package clippy_dev --bin clippy_dev --manifest-path clippy_dev/Cargo.toml --features lintcheck -- lintcheck"
45

56
[build]
67
rustflags = ["-Zunstable-options"]

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,7 @@ Released 2018-09-13
18781878
[`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
18791879
[`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
18801880
[`cargo_common_metadata`]: https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
1881+
[`case_sensitive_file_extension_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons
18811882
[`cast_lossless`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
18821883
[`cast_possible_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation
18831884
[`cast_possible_wrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
@@ -1937,6 +1938,8 @@ Released 2018-09-13
19371938
[`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
19381939
[`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
19391940
[`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
1941+
[`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
1942+
[`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
19401943
[`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
19411944
[`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
19421945
[`expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
@@ -1996,6 +1999,7 @@ Released 2018-09-13
19961999
[`inline_asm_x86_att_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
19972000
[`inline_asm_x86_intel_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
19982001
[`inline_fn_without_body`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body
2002+
[`inspect_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#inspect_for_each
19992003
[`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
20002004
[`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
20012005
[`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
@@ -2033,6 +2037,8 @@ Released 2018-09-13
20332037
[`macro_use_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#macro_use_imports
20342038
[`main_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
20352039
[`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
2040+
[`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
2041+
[`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
20362042
[`manual_memcpy`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
20372043
[`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
20382044
[`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
@@ -2161,6 +2167,7 @@ Released 2018-09-13
21612167
[`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
21622168
[`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
21632169
[`redundant_pub_crate`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate
2170+
[`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
21642171
[`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
21652172
[`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
21662173
[`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
@@ -2271,6 +2278,7 @@ Released 2018-09-13
22712278
[`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
22722279
[`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
22732280
[`unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
2281+
[`upper_case_acronyms`]: https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
22742282
[`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
22752283
[`use_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_self
22762284
[`used_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding

CONTRIBUTING.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,19 @@ currently. Between writing new lints, fixing issues, reviewing pull requests and
310310
responding to issues there may not always be enough time to stay on top of it
311311
all.
312312
313-
Our highest priority is fixing [crashes][l-crash] and [bugs][l-bug]. We don't
313+
Our highest priority is fixing [crashes][l-crash] and [bugs][l-bug], for example
314+
an ICE in a popular crate that many other crates depend on. We don't
314315
want Clippy to crash on your code and we want it to be as reliable as the
315316
suggestions from Rust compiler errors.
316317

318+
We have prioritization labels and a sync-blocker label, which are described below.
319+
- [P-low][p-low]: Requires attention (fix/response/evaluation) by a team member but isn't urgent.
320+
- [P-medium][p-medium]: Should be addressed by a team member until the next sync.
321+
- [P-high][p-high]: Should be immediately addressed and will require an out-of-cycle sync or a backport.
322+
- [L-sync-blocker][l-sync-blocker]: An issue that "blocks" a sync.
323+
Or rather: before the sync this should be addressed,
324+
e.g. by removing a lint again, so it doesn't hit beta/stable.
325+
317326
## Bors and Homu
318327

319328
We use a bot powered by [Homu][homu] to help automate testing and landing of pull
@@ -327,6 +336,10 @@ commands [here][homu_instructions].
327336
[triage]: https://forge.rust-lang.org/release/triage-procedure.html
328337
[l-crash]: https://github.com/rust-lang/rust-clippy/labels/L-crash
329338
[l-bug]: https://github.com/rust-lang/rust-clippy/labels/L-bug
339+
[p-low]: https://github.com/rust-lang/rust-clippy/labels/P-low
340+
[p-medium]: https://github.com/rust-lang/rust-clippy/labels/P-medium
341+
[p-high]: https://github.com/rust-lang/rust-clippy/labels/P-high
342+
[l-sync-blocker]: https://github.com/rust-lang/rust-clippy/labels/L-sync-blocker
330343
[homu]: https://github.com/rust-lang/homu
331344
[homu_instructions]: https://bors.rust-lang.org/
332345
[homu_queue]: https://bors.rust-lang.org/queue/clippy

clippy_dev/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@ version = "0.0.1"
44
authors = ["Philipp Hansch <[email protected]>"]
55
edition = "2018"
66

7+
78
[dependencies]
89
bytecount = "0.6"
910
clap = "2.33"
11+
flate2 = { version = "1.0.19", optional = true }
1012
itertools = "0.9"
1113
opener = "0.4"
1214
regex = "1"
15+
serde = { version = "1.0", features = ["derive"], optional = true }
16+
serde_json = { version = "1.0", optional = true }
1317
shell-escape = "0.1"
18+
tar = { version = "0.4.30", optional = true }
19+
toml = { version = "0.5", optional = true }
20+
ureq = { version = "2.0.0-rc3", optional = true }
1421
walkdir = "2"
1522

1623
[features]
24+
lintcheck = ["flate2", "serde_json", "tar", "toml", "ureq", "serde"]
1725
deny-warnings = []

clippy_dev/lintcheck_crates.toml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[crates]
2+
# some of these are from cargotest
3+
cargo = ['0.49.0']
4+
iron = ['0.6.1']
5+
ripgrep = ['12.1.1']
6+
xsv = ['0.13.0']
7+
#tokei = ['12.0.4']
8+
rayon = ['1.5.0']
9+
serde = ['1.0.118']
10+
# top 10 crates.io dls
11+
bitflags = ['1.2.1']
12+
libc = ['0.2.81']
13+
log = ['0.4.11']
14+
proc-macro2 = ['1.0.24']
15+
quote = ['1.0.7']
16+
rand = ['0.7.3']
17+
rand_core = ['0.6.0']
18+
regex = ['1.3.2']
19+
syn = ['1.0.54']
20+
unicode-xid = ['0.2.1']

clippy_dev/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use walkdir::WalkDir;
1212

1313
pub mod bless;
1414
pub mod fmt;
15+
pub mod lintcheck;
1516
pub mod new_lint;
1617
pub mod ra_setup;
1718
pub mod serve;

0 commit comments

Comments
 (0)