Skip to content

Commit 1b7ad40

Browse files
committed
Update lints
1 parent a3c5fbe commit 1b7ad40

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,7 @@ Released 2018-09-13
996996
[`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
997997
[`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
998998
[`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
999+
[`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
9991000
[`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
10001001
[`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
10011002
[`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
948948
LintId::of(&arithmetic::INTEGER_ARITHMETIC),
949949
LintId::of(&dbg_macro::DBG_MACRO),
950950
LintId::of(&else_if_without_else::ELSE_IF_WITHOUT_ELSE),
951+
LintId::of(&exit::EXIT),
951952
LintId::of(&implicit_return::IMPLICIT_RETURN),
952953
LintId::of(&indexing_slicing::INDEXING_SLICING),
953954
LintId::of(&inherent_impl::MULTIPLE_INHERENT_IMPL),

src/lintlist/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,13 @@ pub const ALL_LINTS: [Lint; 332] = [
490490
deprecation: None,
491491
module: "excessive_precision",
492492
},
493+
Lint {
494+
name: "exit",
495+
group: "restriction",
496+
desc: "`std::process::exit` is called, terminating the program",
497+
deprecation: None,
498+
module: "exit",
499+
},
493500
Lint {
494501
name: "expect_fun_call",
495502
group: "perf",

0 commit comments

Comments
 (0)