Skip to content

Commit 568a03a

Browse files
committed
Update lints
1 parent 9db10c0 commit 568a03a

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,7 @@ Released 2018-09-13
11371137
[`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
11381138
[`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
11391139
[`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
1140+
[`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
11401141
[`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
11411142
[`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
11421143
[`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
@@ -1197,6 +1198,7 @@ Released 2018-09-13
11971198
[`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
11981199
[`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
11991200
[`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
1201+
[`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
12001202
[`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
12011203
[`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
12021204
[`toplevel_ref_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
@@ -1226,6 +1228,7 @@ Released 2018-09-13
12261228
[`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
12271229
[`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
12281230
[`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern
1231+
[`unreachable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreachable
12291232
[`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
12301233
[`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
12311234
[`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization

clippy_lints/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,10 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
629629
misc::FLOAT_CMP_CONST,
630630
missing_doc::MISSING_DOCS_IN_PRIVATE_ITEMS,
631631
missing_inline::MISSING_INLINE_IN_PUBLIC_ITEMS,
632+
panic_unimplemented::PANIC,
633+
panic_unimplemented::TODO,
632634
panic_unimplemented::UNIMPLEMENTED,
635+
panic_unimplemented::UNREACHABLE,
633636
shadow::SHADOW_REUSE,
634637
shadow::SHADOW_SAME,
635638
strings::STRING_ADD,

src/lintlist/mod.rs

+21
Original file line numberDiff line numberDiff line change
@@ -1449,6 +1449,13 @@ pub const ALL_LINTS: [Lint; 325] = [
14491449
deprecation: None,
14501450
module: "overflow_check_conditional",
14511451
},
1452+
Lint {
1453+
name: "panic",
1454+
group: "restriction",
1455+
desc: "missing parameters in `panic!` calls",
1456+
deprecation: None,
1457+
module: "panic_unimplemented",
1458+
},
14521459
Lint {
14531460
name: "panic_params",
14541461
group: "style",
@@ -1841,6 +1848,13 @@ pub const ALL_LINTS: [Lint; 325] = [
18411848
deprecation: None,
18421849
module: "methods",
18431850
},
1851+
Lint {
1852+
name: "todo",
1853+
group: "restriction",
1854+
desc: "`todo!` should not be present in production code",
1855+
deprecation: None,
1856+
module: "panic_unimplemented",
1857+
},
18441858
Lint {
18451859
name: "too_many_arguments",
18461860
group: "complexity",
@@ -2044,6 +2058,13 @@ pub const ALL_LINTS: [Lint; 325] = [
20442058
deprecation: None,
20452059
module: "misc_early",
20462060
},
2061+
Lint {
2062+
name: "unreachable",
2063+
group: "restriction",
2064+
desc: "`unreachable!` should not be present in production code",
2065+
deprecation: None,
2066+
module: "panic_unimplemented",
2067+
},
20472068
Lint {
20482069
name: "unreadable_literal",
20492070
group: "style",

0 commit comments

Comments
 (0)