Skip to content

Commit 994de9c

Browse files
committed
Update lints
1 parent b6c9b09 commit 994de9c

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ Released 2018-09-13
995995
[`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
996996
[`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
997997
[`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
998+
[`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
998999
[`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
9991000
[`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
10001001
[`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop

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 331 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 332 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

+1
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
618618
arithmetic::INTEGER_ARITHMETIC,
619619
dbg_macro::DBG_MACRO,
620620
else_if_without_else::ELSE_IF_WITHOUT_ELSE,
621+
exit::EXIT,
621622
implicit_return::IMPLICIT_RETURN,
622623
indexing_slicing::INDEXING_SLICING,
623624
inherent_impl::MULTIPLE_INHERENT_IMPL,

src/lintlist/mod.rs

+8-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; 331] = [
9+
pub const ALL_LINTS: [Lint; 332] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -483,6 +483,13 @@ pub const ALL_LINTS: [Lint; 331] = [
483483
deprecation: None,
484484
module: "excessive_precision",
485485
},
486+
Lint {
487+
name: "exit",
488+
group: "restriction",
489+
desc: "`std::process::exit` is called, terminating the program",
490+
deprecation: None,
491+
module: "exit",
492+
},
486493
Lint {
487494
name: "expect_fun_call",
488495
group: "perf",

0 commit comments

Comments
 (0)