Update lints

This commit is contained in:
Heinz N. Gies 2019-10-18 21:10:35 +02:00
parent 695aa59c6d
commit 60c2fdd0b9
3 changed files with 9 additions and 0 deletions

View file

@ -996,6 +996,7 @@ Released 2018-09-13
[`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
[`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
[`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
[`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
[`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
[`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
[`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop

View file

@ -949,6 +949,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
LintId::of(&arithmetic::INTEGER_ARITHMETIC),
LintId::of(&dbg_macro::DBG_MACRO),
LintId::of(&else_if_without_else::ELSE_IF_WITHOUT_ELSE),
LintId::of(&exit::EXIT),
LintId::of(&implicit_return::IMPLICIT_RETURN),
LintId::of(&indexing_slicing::INDEXING_SLICING),
LintId::of(&inherent_impl::MULTIPLE_INHERENT_IMPL),

View file

@ -490,6 +490,13 @@ pub const ALL_LINTS: [Lint; 331] = [
deprecation: None,
module: "excessive_precision",
},
Lint {
name: "exit",
group: "restriction",
desc: "`std::process::exit` is called, terminating the program",
deprecation: None,
module: "exit",
},
Lint {
name: "expect_fun_call",
group: "perf",