diff options
| author | Caio <c410.f3r@gmail.com> | 2022-07-18 14:29:45 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2022-07-18 14:29:45 -0300 |
| commit | 31e5465f8a0e35b8f9e8e28d359e4098e9f44e4f (patch) | |
| tree | ab9ebedf90f8b4c92600c41208cf665694f91f19 /clippy_lints/src/lib.rs | |
| parent | cce617165ded6648cadf2b6fe2f3f0232ce12459 (diff) | |
Add Arithmetic lint
Diffstat (limited to 'clippy_lints/src/lib.rs')
| -rw-r--r-- | clippy_lints/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 8444532f6bb..8ac40cc73e0 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -548,6 +548,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf: store.register_late_pass(|| Box::new(utils::internal_lints::MsrvAttrImpl)); } + let arithmetic_allowed = conf.arithmetic_allowed.clone(); + store.register_late_pass(move || Box::new(operators::arithmetic::Arithmetic::new(arithmetic_allowed.clone()))); store.register_late_pass(|| Box::new(utils::dump_hir::DumpHir)); store.register_late_pass(|| Box::new(utils::author::Author)); let await_holding_invalid_types = conf.await_holding_invalid_types.clone(); |
