From 58a1d1295f7faabc88040c08d301e9ca0a822612 Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 29 Jul 2024 10:53:55 -0400 Subject: [PATCH] Add in all the pedantic lints that we obey anyway We haven't maintained pedantic lints for a very long time, but since we still obey these ones, we might as well hold onto them. Signed-off-by: mulhern --- Cargo.toml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 9bcf4367bf..d543518bce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -304,6 +304,58 @@ cargo = { level = "deny", priority = 1 } multiple-crate-versions = { level = "allow", priority = 2 } from_over_into = { level = "allow", priority = 3 } upper_case_acronyms = { level = "allow", priority = 3 } +# PEDANTIC LINTS +await_holding_lock = { level = "deny", priority = 4 } +await_holding_refcell_ref = { level = "deny", priority = 4 } +cast_lossless = { level = "deny", priority = 4 } +cast_possible_truncation = { level = "deny", priority = 4 } +cast_precision_loss = { level = "deny", priority = 4 } +cast_ptr_alignment = { level = "deny", priority = 4 } +checked_conversions = { level = "deny", priority = 4 } +copy_iterator = { level = "deny", priority = 4 } +empty_enum = { level = "deny", priority = 4 } +enum_glob_use = { level = "deny", priority = 4 } +expl_impl_clone_on_copy = { level = "deny", priority = 4 } +explicit_deref_methods = { level = "deny", priority = 4 } +explicit_into_iter_loop = { level = "deny", priority = 4 } +fn_params_excessive_bools = { level = "deny", priority = 4 } +implicit_hasher = { level = "deny", priority = 4 } +implicit_saturating_sub = { level = "deny", priority = 4 } +inefficient_to_string = { level = "deny", priority = 4 } +inline_always = { level = "deny", priority = 4 } +invalid_upcast_comparisons = { level = "deny", priority = 4 } +large_digit_groups = { level = "deny", priority = 4 } +large_stack_arrays = { level = "deny", priority = 4 } +large_types_passed_by_value = { level = "deny", priority = 4 } +let_unit_value = { level = "deny", priority = 4 } +linkedlist = { level = "deny", priority = 4 } +macro_use_imports = { level = "deny", priority = 4 } +manual_ok_or = { level = "deny", priority = 4 } +map_flatten = { level = "deny", priority = 4 } +match_bool = { level = "deny", priority = 4 } +match_on_vec_items = { level = "deny", priority = 4 } +match_wild_err_arm = { level = "deny", priority = 4 } +maybe_infinite_iter = { level = "deny", priority = 4 } +mut_mut = { level = "deny", priority = 4 } +needless_continue = { level = "deny", priority = 4 } +option_option = { level = "deny", priority = 4 } +range_minus_one = { level = "deny", priority = 4 } +range_plus_one = { level = "deny", priority = 4 } +ref_option_ref = { level = "deny", priority = 4 } +same_functions_in_if_condition = { level = "deny", priority = 4 } +string_add_assign = { level = "deny", priority = 4 } +struct_excessive_bools = { level = "deny", priority = 4 } +trait_duplication_in_bounds = { level = "deny", priority = 4 } +trivially_copy_pass_by_ref = { level = "deny", priority = 4 } +type_repetition_in_bounds = { level = "deny", priority = 4 } +unicode_not_nfc = { level = "deny", priority = 4 } +unnested_or_patterns = { level = "deny", priority = 4 } +unreadable_literal = { level = "deny", priority = 4 } +unsafe_derive_deserialize = { level = "deny", priority = 4 } +unused_self = { level = "deny", priority = 4 } +used_underscore_binding = { level = "deny", priority = 4 } +verbose_bit_mask = { level = "deny", priority = 4 } +wildcard_imports = { level = "deny", priority = 4 } [package.metadata.vendor-filter] platforms = ["*-unknown-linux-gnu"]