Skip to content

Commit 6930427

Browse files
committed
Update lints
1 parent 0eee11b commit 6930427

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@ Released 2018-09-13
11341134
[`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
11351135
[`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
11361136
[`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
1137+
[`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
11371138
[`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
11381139
[`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
11391140
[`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
@@ -1194,6 +1195,7 @@ Released 2018-09-13
11941195
[`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
11951196
[`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
11961197
[`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
1198+
[`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
11971199
[`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
11981200
[`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
11991201
[`toplevel_ref_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
@@ -1223,6 +1225,7 @@ Released 2018-09-13
12231225
[`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
12241226
[`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
12251227
[`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern
1228+
[`unreachable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreachable
12261229
[`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
12271230
[`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
12281231
[`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
88

9-
[There are 321 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 324 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
1010

1111
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
1212

clippy_lints/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,10 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
627627
misc::FLOAT_CMP_CONST,
628628
missing_doc::MISSING_DOCS_IN_PRIVATE_ITEMS,
629629
missing_inline::MISSING_INLINE_IN_PUBLIC_ITEMS,
630+
panic_unimplemented::PANIC,
631+
panic_unimplemented::TODO,
630632
panic_unimplemented::UNIMPLEMENTED,
633+
panic_unimplemented::UNREACHABLE,
631634
shadow::SHADOW_REUSE,
632635
shadow::SHADOW_SAME,
633636
strings::STRING_ADD,

src/lintlist/mod.rs

+22-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use lint::Lint;
66
pub use lint::LINT_LEVELS;
77

88
// begin lint list, do not remove this comment, it’s used in `update_lints`
9-
pub const ALL_LINTS: [Lint; 321] = [
9+
pub const ALL_LINTS: [Lint; 324] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -1428,6 +1428,13 @@ pub const ALL_LINTS: [Lint; 321] = [
14281428
deprecation: None,
14291429
module: "overflow_check_conditional",
14301430
},
1431+
Lint {
1432+
name: "panic",
1433+
group: "restriction",
1434+
desc: "missing parameters in `panic!` calls",
1435+
deprecation: None,
1436+
module: "panic_unimplemented",
1437+
},
14311438
Lint {
14321439
name: "panic_params",
14331440
group: "style",
@@ -1820,6 +1827,13 @@ pub const ALL_LINTS: [Lint; 321] = [
18201827
deprecation: None,
18211828
module: "methods",
18221829
},
1830+
Lint {
1831+
name: "todo",
1832+
group: "restriction",
1833+
desc: "`todo!` should not be present in production code",
1834+
deprecation: None,
1835+
module: "panic_unimplemented",
1836+
},
18231837
Lint {
18241838
name: "too_many_arguments",
18251839
group: "complexity",
@@ -2023,6 +2037,13 @@ pub const ALL_LINTS: [Lint; 321] = [
20232037
deprecation: None,
20242038
module: "misc_early",
20252039
},
2040+
Lint {
2041+
name: "unreachable",
2042+
group: "restriction",
2043+
desc: "`unreachable!` should not be present in production code",
2044+
deprecation: None,
2045+
module: "panic_unimplemented",
2046+
},
20262047
Lint {
20272048
name: "unreadable_literal",
20282049
group: "style",

0 commit comments

Comments
 (0)