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/utils/conf.rs | |
| parent | cce617165ded6648cadf2b6fe2f3f0232ce12459 (diff) | |
Add Arithmetic lint
Diffstat (limited to 'clippy_lints/src/utils/conf.rs')
| -rw-r--r-- | clippy_lints/src/utils/conf.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index 6153dbbc88d..6e033b3be2d 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -191,6 +191,10 @@ macro_rules! define_Conf { } define_Conf! { + /// Lint: Arithmetic. + /// + /// Suppress checking of the passed type names. + (arithmetic_allowed: rustc_data_structures::fx::FxHashSet<String> = <_>::default()), /// Lint: ENUM_VARIANT_NAMES, LARGE_TYPES_PASSED_BY_VALUE, TRIVIALLY_COPY_PASS_BY_REF, UNNECESSARY_WRAPS, UNUSED_SELF, UPPER_CASE_ACRONYMS, WRONG_SELF_CONVENTION, BOX_COLLECTION, REDUNDANT_ALLOCATION, RC_BUFFER, VEC_BOX, OPTION_OPTION, LINKEDLIST, RC_MUTEX. /// /// Suppress lints whenever the suggested change would cause breakage for other crates. |
