mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-15 16:07:57 +00:00
1 line
No EOL
42 KiB
JavaScript
1 line
No EOL
42 KiB
JavaScript
var C=["Allow","Deprecated","Nothing. This lint has been deprecated."];var lintsIndex={"implicit_saturating_sub":[C[0],"Checks for implicit saturating subtraction."],"unicode_not_nfc":[C[0],"Checks for string literals that contain Unicode in a form\nthat is not equal to its\n[NFC-recompositio"],"unit_arg":["Warn","Checks for passing a unit value as an argument to a function without using a\nunit literal (())."],"map_clone":["Warn","Checks for usage of iterator.map(|x| x.clone()) and suggests\niterator.cloned() instead"],"as_conversions":[C[0],"Checks for usage of as conversions."],"use_self":[C[0],"Checks for unnecessary repetition of structure name when a\nreplacement with Self is applicable."],"dbg_macro":[C[0],"Checks for usage of dbg!() macro."],"redundant_field_names":["Warn","Checks for fields in struct literals where shorthands\ncould be used."],"diverging_sub_expression":["Warn","Checks for diverging calls that are not match arms or\nstatements."],"shadow_unrelated":[C[0],"Checks for bindings that shadow other bindings already in\nscope, either without a initialization or "],"string_extend_chars":["Warn","Checks for the use of .extend(s.chars()) where s is a\n&str or String."],"rc_buffer":[C[0],"Checks for Rc<T> and Arc<T> when T is a mutable buffer type such as String or Vec."],"suspicious_op_assign_impl":["Deny","Lints for suspicious operations in impls of OpAssign, e.g.\nsubtracting elements in an AddAssign impl"],"if_not_else":[C[0],"Checks for usage of ! or != in an if condition with an\nelse branch."],"needless_continue":[C[0],"The lint checks for if-statements appearing in loops\nthat contain a continue statement in either the"],"duplicate_underscore_argument":["Warn","Checks for function arguments having the similar names\ndiffering by an underscore."],"used_underscore_binding":[C[0],"Checks for the use of bindings with a single leading\nunderscore."],"useless_asref":["Warn","Checks for usage of .as_ref() or .as_mut() where the\ntypes before and after the call are the same."],"range_step_by_zero":[C[1],C[2]],"if_let_redundant_pattern_matching":[C[1],C[2]],"trait_duplication_in_bounds":[C[0],"Checks for cases where generics are being used and multiple\nsyntax specifications for trait bounds a"],"if_let_some_result":["Warn","* Checks for unnecessary ok() in if let."],"len_without_is_empty":["Warn","Checks for items that implement .len() but not\n.is_empty()."],"wildcard_imports":[C[0],"Checks for wildcard imports use _::*."],"nonminimal_bool":["Warn","Checks for boolean expressions that can be written more\nconcisely."],"bind_instead_of_map":["Warn","Checks for usage of _.and_then(|x| Some(y)), _.and_then(|x| Ok(y)) or\n_.or_else(|x| Err(y))."],"explicit_deref_methods":[C[0],"Checks for explicit deref() or deref_mut() method calls."],"mismatched_target_os":["Deny","Checks for cfg attributes having operating systems used in target family position."],"borrowed_box":["Warn","Checks for use of &Box<T> anywhere in the code.\nCheck the [Box documentation](https://doc.rust-lang."],"if_same_then_else":["Deny","Checks for if/else with the same body as the *then* part\nand the *else* part."],"inline_asm_x86_intel_syntax":[C[0],"Checks for usage of Intel x86 assembly syntax."],"blocks_in_if_conditions":["Warn","Checks for if conditions that use blocks containing an\nexpression, statements or conditions that use"],"unnecessary_fold":["Warn","Checks for using fold when a more succinct alternative exists.\nSpecifically, this checks for folds w"],"ok_expect":["Warn","Checks for usage of ok().expect(..)."],"enum_glob_use":[C[0],"Checks for use Enum::*."],"logic_bug":["Deny","Checks for boolean expressions that contain terminals that\ncan be eliminated."],"mistyped_literal_suffixes":["Deny","Warns for mistyped suffix in literals"],"excessive_precision":["Warn","Checks for float literals with a precision greater\nthan that supported by the underlying type."],"module_inception":["Warn","Checks for modules that have the same name as their\nparent module"],"needless_lifetimes":["Warn","Checks for lifetime annotations which can be removed by\nrelying on lifetime elision."],"or_fun_call":["Warn","Checks for calls to .or(foo(..)), .unwrap_or(foo(..)),\netc., and suggests to use or_else, unwrap_or_"],"suspicious_assignment_formatting":["Warn","Checks for use of the non-existent =*, =! and =-\noperators."],"missing_errors_doc":[C[0],"Checks the doc comments of publicly visible functions that\nreturn a Result type and warns if there i"],"enum_clike_unportable_variant":["Deny","Checks for C-like enumerations that are\nrepr(isize/usize) and have values that don't fit into an i32"],"unit_cmp":["Deny","Checks for comparisons to unit. This includes all binary\ncomparisons (like == and <) and asserts."],"unstable_as_slice":[C[1],C[2]],"almost_swapped":["Deny","Checks for foo = bar; bar = foo sequences."],"boxed_local":["Warn","Checks for usage of Box<T> where an unboxed T would\nwork fine."],"unused_unit":["Warn","Checks for unit (()) expressions that can be removed."],"panicking_unwrap":["Deny","Checks for calls of unwrap[_err]() that will always fail."],"suspicious_else_formatting":["Warn","Checks for formatting of else. It lints if the else\nis followed immediately by a newline or the else"],"unneeded_wildcard_pattern":["Warn","Checks for tuple patterns with a wildcard\npattern (_) is next to a rest pattern (..).\n\n_NOTE_: While"],"new_ret_no_self":["Warn","Checks for new not returning a type that contains Self."],"use_debug":[C[0],"Checks for use of Debug formatting. The purpose of this\nlint is to catch debugging remnants."],"should_implement_trait":["Warn","Checks for methods that should live in a trait\nimplementation of a std trait (see [llogiq's blog\npos"],"transmuting_null":["Deny","Checks for transmute calls which would receive a null pointer."],"not_unsafe_ptr_arg_deref":["Deny","Checks for public functions that dereference raw pointer\narguments but are not marked unsafe."],"manual_strip":["Warn","Suggests using strip_{prefix,suffix} over str::{starts,ends}_with and slicing using\nthe pattern's le"],"needless_return":["Warn","Checks for return statements at the end of a block."],"double_neg":["Warn","Detects expressions of the form --x."],"len_zero":["Warn","Checks for getting the length of something via .len()\njust to compare to zero, and suggests using .i"],"fn_address_comparisons":["Deny","Checks for comparisons with an address of a function item."],"if_let_mutex":["Deny","Checks for Mutex::lock calls in if let expression\nwith lock calls in any of the else blocks."],"mem_replace_with_default":["Warn","Checks for std::mem::replace on a value of type\nT with T::default()."],"filter_map_next":[C[0],"Checks for usage of _.filter_map(_).next()."],"pattern_type_mismatch":[C[0],"Checks for patterns that aren't exact representations of the types\nthey are applied to.\n\nTo satisfy "],"println_empty_string":["Warn","This lint warns when you use println!(\"\") to\nprint a newline."],"filetype_is_file":[C[0],"Checks for FileType::is_file()."],"mut_range_bound":["Warn","Checks for loops which have a range bound that is a mutable variable"],"ptr_eq":["Warn","Use std::ptr::eq when applicable"],"panic":[C[0],"Checks for usage of panic!."],"inline_asm_x86_att_syntax":[C[0],"Checks for usage of AT&T x86 assembly syntax."],"ineffective_bit_mask":["Deny","Checks for bit masks in comparisons which can be removed\nwithout changing the outcome. The basic str"],"linkedlist":[C[0],"Checks for usage of any LinkedList, suggesting to use a\nVec or a VecDeque (formerly called RingBuf)."],"get_last_with_len":["Warn","Checks for using x.get(x.len() - 1) instead of\nx.last()."],"await_holding_lock":[C[0],"Checks for calls to await while holding a\nnon-async-aware MutexGuard."],"large_enum_variant":["Warn","Checks for large size differences between variants on\nenums."],"module_name_repetitions":[C[0],"Detects type names that are prefixed or suffixed by the\ncontaining module's name."],"same_functions_in_if_condition":[C[0],"Checks for consecutive ifs with the same function call."],"unwrap_used":[C[0],"Checks for .unwrap() calls on Options and on Results."],"match_single_binding":["Warn","Checks for useless match that binds to only one value."],"forget_copy":["Deny","Checks for calls to std::mem::forget with a value that\nderives the Copy trait"],"useless_let_if_seq":[C[0],"Checks for variable declarations immediately followed by a\nconditional affectation."],"option_map_unit_fn":["Warn","Checks for usage of option.map(f) where f is a function\nor closure that returns the unit type ()."],"for_loops_over_fallibles":["Deny","Checks for for loops over Option or Result values."],"imprecise_flops":[C[0],"Looks for floating-point expressions that\ncan be expressed using built-in methods to improve accurac"],"neg_multiply":["Warn","Checks for multiplication by -1 as a form of negation."],"vec_box":["Warn","Checks for use of Vec<Box<T>> where T: Sized anywhere in the code.\nCheck the [Box documentation](htt"],"drop_ref":["Deny","Checks for calls to std::mem::drop with a reference\ninstead of an owned value."],"just_underscores_and_digits":["Warn","Checks if you have variables whose name consists of just\nunderscores and digits."],"filter_map":[C[0],"Checks for usage of _.filter(_).map(_),\n_.filter(_).flat_map(_), _.filter_map(_).flat_map(_) and sim"],"cast_possible_wrap":[C[0],"Checks for casts from an unsigned type to a signed type of\nthe same size. Performing such a cast is "],"writeln_empty_string":["Warn","This lint warns when you use writeln!(buf, \"\") to\nprint a newline."],"chars_last_cmp":["Warn","Checks for usage of _.chars().last() or\n_.chars().next_back() on a str to check if it ends with a gi"],"comparison_chain":["Warn","Checks comparison chains written with if that can be\nrewritten with match and cmp."],"infallible_destructuring_match":["Warn","Checks for matches being used to destructure a single-variant enum\nor tuple struct where a let will "],"cmp_owned":["Warn","Checks for conversions to owned values just for the sake\nof a comparison."],"zst_offset":["Deny","Checks for offset(_), wrapping_{add, sub}, etc. on raw pointers to\nzero-sized types"],"manual_saturating_arithmetic":["Warn","Checks for .checked_add/sub(x).unwrap_or(MAX/MIN)."],"string_add_assign":[C[0],"Checks for string appends of the form x = x + y (without\nlet!)."],"match_same_arms":[C[0],"Checks for match with identical arm bodies."],"fn_to_numeric_cast_with_truncation":["Warn","Checks for casts of a function pointer to a numeric type not wide enough to\nstore address."],"match_bool":[C[0],"Checks for matches where match expression is a bool. It\nsuggests to replace the expression with an i"],"clone_double_ref":["Deny","Checks for usage of .clone() on an &&T."],"enum_variant_names":["Warn","Detects enumeration variants that are prefixed or suffixed\nby the same characters."],"let_unit_value":[C[0],"Checks for binding a unit value."],"regex_macro":[C[1],C[2]],"extend_from_slice":[C[1],C[2]],"string_add":[C[0],"Checks for all instances of x + _ where x is of type\nString, but only if [string_add_assign](#string"],"option_option":[C[0],"Checks for use of Option<Option<_>> in function signatures and type\ndefinitions"],"expl_impl_clone_on_copy":[C[0],"Checks for explicit Clone implementations for Copy\ntypes."],"option_env_unwrap":["Deny","Checks for usage of option_env!(...).unwrap() and\nsuggests usage of the env! macro."],"suspicious_map":["Warn","Checks for calls to map followed by a count."],"inefficient_to_string":[C[0],"Checks for usage of .to_string() on an &&T where\nT implements ToString directly (like &&str or &&Str"],"too_many_arguments":["Warn","Checks for functions with too many parameters."],"struct_excessive_bools":[C[0],"Checks for excessive\nuse of bools in structs."],"unused_label":[C[1],C[2]],"useless_conversion":["Warn","Checks for Into, TryInto, From, TryFrom,IntoIter calls\nthat useless converts to the same type as cal"],"cast_ptr_alignment":[C[0],"Checks for casts from a less-strictly-aligned pointer to a\nmore-strictly-aligned pointer"],"explicit_write":["Warn","Checks for usage of write!() / writeln()! which can be\nreplaced with (e)print!() / (e)println!()"],"temporary_assignment":["Warn","Checks for construction of a structure or tuple just to\nassign a value in it."],"deprecated_cfg_attr":["Warn","Checks for #[cfg_attr(rustfmt, rustfmt_skip)] and suggests to replace it\nwith #[rustfmt::skip]."],"unnecessary_unwrap":["Warn","Checks for calls of unwrap[_err]() that cannot fail."],"ifs_same_cond":["Deny","Checks for consecutive ifs with the same condition."],"unnecessary_filter_map":["Warn","Checks for filter_map calls which could be replaced by filter or map.\nMore specifically it checks if"],"decimal_literal_representation":[C[0],"Warns if there is a better representation for a numeric literal."],"redundant_pattern_matching":["Warn","Lint for redundant pattern matching over Result or\nOption"],"single_component_path_imports":["Warn","Checking for imports with single component use path."],"iter_nth":["Warn","Checks for use of .iter().nth() (and the related\n.iter_mut().nth()) on standard library types with O"],"blanket_clippy_restriction_lints":["Warn","Checks for warn/deny/forbid attributes targeting the whole clippy::restriction category."],"no_effect":["Warn","Checks for statements which have no effect."],"cast_sign_loss":[C[0],"Checks for casts from a signed to an unsigned numerical\ntype. In this case, negative values wrap aro"],"unreadable_literal":[C[0],"Warns if a long integral or floating-point constant does\nnot contain underscores."],"wildcard_enum_match_arm":[C[0],"Checks for wildcard enum matches using _."],"iter_skip_next":["Warn","Checks for use of .skip(x).next() on iterators."],"redundant_pub_crate":[C[0],"Checks for items declared pub(crate) that are not crate visible because they\nare inside a private mo"],"iter_next_slice":["Warn","Checks for usage of iter().next() on a Slice or an Array"],"too_many_lines":[C[0],"Checks for functions with a large amount of lines."],"cargo_common_metadata":[C[0],"Checks to see if all common metadata is defined in\nCargo.toml. See: https://rust-lang-nursery.github"],"panic_params":["Warn","Checks for missing parameters in panic!."],"transmute_ptr_to_ref":["Warn","Checks for transmutes from a pointer to a reference."],"unneeded_field_pattern":[C[0],"Checks for structure field patterns bound to wildcards."],"wrong_self_convention":["Warn","Checks for methods with certain name prefixes and which\ndoesn't match how self is taken. The actual "],"erasing_op":["Deny","Checks for erasing operations, e.g., x * 0."],"let_underscore_must_use":[C[0],"Checks for let _ = <expr>\nwhere expr is #[must_use]"],"identity_op":["Warn","Checks for identity operations, e.g., x + 0."],"panic_in_result_fn":[C[0],"Checks for usage of panic!, unimplemented!, todo! or unreachable! in a function of type result."],"transmute_float_to_int":["Warn","Checks for transmutes from a float to an integer."],"same_item_push":["Warn","Checks whether a for loop is being used to push a constant\nvalue into a Vec."],"misrefactored_assign_op":["Warn","Checks for a op= a op b or a op= b op a patterns."],"unsafe_derive_deserialize":[C[0],"Checks for deriving serde::Deserialize on a type that\nhas methods using unsafe."],"integer_arithmetic":[C[0],"Checks for integer arithmetic operations which could overflow or panic.\n\nSpecifically, checks for an"],"create_dir":[C[0],"Checks usage of std::fs::create_dir and suggest using std::fs::create_dir_all instead."],"transmute_int_to_char":["Warn","Checks for transmutes from an integer to a char."],"float_cmp":["Deny","Checks for (in-)equality comparisons on floating-point\nvalues (apart from zero), except in functions"],"todo":[C[0],"Checks for usage of todo!."],"future_not_send":[C[0],"This lint requires Future implementations returned from\nfunctions and methods to implement the Send "],"explicit_iter_loop":[C[0],"Checks for loops on x.iter() where &x will do, and\nsuggests the latter."],"bool_comparison":["Warn","Checks for expressions of the form x == true,\nx != true and order comparisons such as x < true (or v"],"double_parens":["Warn","Checks for unnecessary double parentheses."],"find_map":[C[0],"Checks for usage of _.find(_).map(_)."],"into_iter_on_array":[C[1],C[2]],"float_arithmetic":[C[0],"Checks for float arithmetic."],"naive_bytecount":["Warn","Checks for naive byte counts"],"unwrap_in_result":[C[0],"Checks for functions of type Result that contain expect() or unwrap()"],"verbose_bit_mask":[C[0],"Checks for bit masks that can be replaced by a call\nto trailing_zeros"],"while_let_on_iterator":["Warn","Checks for while let expressions on iterators."],"write_with_newline":["Warn","This lint warns when you use write!() with a format\nstring that\nends in a newline."],"modulo_arithmetic":[C[0],"Checks for modulo arithmetic."],"blacklisted_name":["Warn","Checks for usage of blacklisted names for variables, such\nas foo."],"infinite_iter":["Deny","Checks for iteration that is guaranteed to be infinite."],"debug_assert_with_mut_call":[C[0],"Checks for function/method calls with a mutable\nparameter in debug_assert!, debug_assert_eq! and deb"],"invalid_upcast_comparisons":[C[0],"Checks for comparisons where the relation is always either\ntrue or false, but where one side has bee"],"modulo_one":["Deny","Checks for getting the remainder of a division by one."],"assertions_on_constants":["Warn","Checks for assert!(true) and assert!(false) calls."],"assign_ops":[C[1],C[2]],"nonsensical_open_options":["Deny","Checks for duplicate open options as well as combinations\nthat make no sense."],"slow_vector_initialization":["Warn","Checks slow zero-filled vector initialization"],"absurd_extreme_comparisons":["Deny","Checks for comparisons where one side of the relation is\neither the minimum or maximum value for its"],"float_cmp_const":[C[0],"Checks for (in-)equality comparisons on floating-point\nvalue and constant, except in functions calle"],"inline_fn_without_body":["Deny","Checks for #[inline] on trait methods without bodies"],"large_digit_groups":[C[0],"Warns if the digits of an integral or floating-point\nconstant are grouped into groups that\nare too l"],"large_stack_arrays":[C[0],"Checks for local arrays that may be too large."],"needless_collect":["Warn","Checks for functions collecting an iterator when collect\nis not needed."],"transmute_int_to_bool":["Warn","Checks for transmutes from an integer to a bool."],"unimplemented":[C[0],"Checks for usage of unimplemented!."],"useless_format":["Warn","Checks for the use of format!(\"string literal with no\nargument\") and format!(\"{}\", foo) where foo is"],"useless_attribute":["Deny","Checks for extern crate and use items annotated with\nlint attributes.\n\nThis lint permits #[allow(unu"],"verbose_file_reads":[C[0],"Checks for use of File::read_to_end and File::read_to_string."],"missing_const_for_fn":[C[0],"Suggests the use of const in functions and methods where possible."],"write_literal":["Warn","This lint warns about the use of literals as write!/writeln! args."],"multiple_inherent_impl":[C[0],"Checks for multiple inherent implementations of a struct"],"needless_borrow":[C[0],"Checks for address of operations (&) that are going to\nbe dereferenced immediately by the compiler."],"short_circuit_statement":["Warn","Checks for the use of short circuit boolean conditions as\na\nstatement."],"trivially_copy_pass_by_ref":[C[0],"Checks for functions taking arguments by reference, where\nthe argument type is Copy and small enough"],"integer_division":[C[0],"Checks for division of integers"],"async_yields_async":["Deny","Checks for async blocks that yield values of types\nthat can themselves be awaited."],"option_if_let_else":[C[0],"Lints usage of if let Some(v) = ... { y } else { x } which is more\nidiomatically done with Option::m"],"many_single_char_names":["Warn","Checks for too many variables whose name consists of a\nsingle character."],"approx_constant":["Deny","Checks for floating point literals that approximate\nconstants which are defined in\n[std::f32::consts"],"chars_next_cmp":["Warn","Checks for usage of .chars().next() on a str to check\nif it starts with a given char."],"match_like_matches_macro":["Warn","Checks for match or if let expressions producing a\nbool that could be written using matches!"],"temporary_cstring_as_ptr":["Deny","Checks for getting the inner pointer of a temporary\nCString."],"unused_collect":[C[1],C[2]],"mixed_case_hex_literals":["Warn","Warns on hexadecimal literals with mixed-case letter\ndigits."],"print_with_newline":["Warn","This lint warns when you use print!() with a format\nstring that ends in a newline."],"needless_doctest_main":["Warn","Checks for fn main() { .. } in doctests"],"default_trait_access":[C[0],"Checks for literal calls to Default::default()."],"match_wildcard_for_single_variants":[C[0],"Checks for wildcard enum matches for a single variant."],"overflow_check_conditional":["Warn","Detects classic underflow/overflow checks."],"to_string_in_display":["Deny","Checks for uses of to_string() in Display traits."],"match_wild_err_arm":[C[0],"Checks for arm which matches all errors with Err(_)\nand take drastic actions like panic!."],"transmute_bytes_to_str":["Warn","Checks for transmutes from a &[u8] to a &str."],"unsound_collection_transmute":["Deny","Checks for transmutes between collections whose\ntypes have different ABI, size or alignment."],"wrong_transmute":["Deny","Checks for transmutes that can't ever be correct on any\narchitecture."],"needless_borrowed_reference":["Warn","Checks for useless borrowed references."],"builtin_type_shadow":["Warn","Warns if a generic shadows a built-in type."],"empty_loop":["Warn","Checks for empty loop expressions."],"inconsistent_digit_grouping":["Warn","Warns if an integral or floating-point constant is\ngrouped inconsistently with underscores."],"lossy_float_literal":[C[0],"Checks for whole number float literals that\ncannot be represented as the underlying type without los"],"cast_lossless":[C[0],"Checks for casts between numerical types that may\nbe replaced by safe conversion functions."],"out_of_bounds_indexing":["Deny","Checks for out of bounds array indexing with a constant\nindex."],"print_literal":["Warn","This lint warns about the use of literals as print!/println! args."],"eq_op":["Deny","Checks for equal operands to comparison, logical and\nbitwise, difference and division binary operato"],"iter_next_loop":["Deny","Checks for loops on x.next()."],"manual_unwrap_or":["Warn","Finds patterns that reimplement Option::unwrap_or."],"cast_ref_to_mut":["Deny","Checks for casts of &T to &mut T anywhere in the code."],"copy_iterator":[C[0],"Checks for types that implement Copy as well as\nIterator."],"mem_replace_with_uninit":["Deny","Checks for mem::replace(&mut _, mem::uninitialized())\nand mem::replace(&mut _, mem::zeroed())."],"macro_use_imports":[C[0],"Checks for #[macro_use] use...."],"match_ref_pats":["Warn","Checks for matches where all arms match a reference,\nsuggesting to remove the reference and deref th"],"result_map_unit_fn":["Warn","Checks for usage of result.map(f) where f is a function\nor closure that returns the unit type ()."],"unnecessary_operation":["Warn","Checks for expression statements that can be reduced to a\nsub-expression."],"unnecessary_sort_by":["Warn","Detects uses of Vec::sort_by passing in a closure\nwhich compares the two arguments, either directly "],"map_flatten":[C[0],"Checks for usage of _.map(_).flatten(_),"],"unsafe_vector_initialization":[C[1],C[2]],"exit":[C[0],"exit() terminates the program and doesn't provide a\nstack trace."],"redundant_closure":["Warn","Checks for closures which just call another function where\nthe function can be called directly. unsa"],"double_comparisons":["Warn","Checks for double comparisons that could be simplified to a single expression."],"string_to_string":[C[1],C[2]],"suspicious_unary_op_formatting":["Warn","Checks the formatting of a unary operator on the right hand side\nof a binary operator. It lints if t"],"transmute_ptr_to_ptr":["Warn","Checks for transmutes from a pointer to a pointer, or\nfrom a reference to a reference."],"unknown_clippy_lints":["Warn","Checks for allow/warn/deny/forbid attributes with scoped clippy\nlints and if those lints exist in cl"],"redundant_allocation":["Warn","Checks for use of redundant allocations anywhere in the code."],"map_entry":["Warn","Checks for uses of contains_key + insert on HashMap\nor BTreeMap."],"never_loop":["Deny","Checks for loops that will always break, return or\ncontinue an outer loop."],"extra_unused_lifetimes":["Warn","Checks for lifetimes in generics that are never used\nanywhere else."],"borrow_interior_mutable_const":["Warn","Checks if const items which is interior mutable (e.g.,\ncontains a Cell, Mutex, AtomicXxxx, etc.) has"],"invalid_ref":[C[1],C[2]],"neg_cmp_op_on_partial_ord":["Warn","Checks for the usage of negated comparison operators on types which only implement\nPartialOrd (e.g.,"],"char_lit_as_u8":["Warn","Checks for expressions where a character literal is cast\nto u8 and suggests using a byte literal ins"],"possible_missing_comma":["Deny","Checks for possible missing comma in an array. It lints if\nan array element is a binary operator exp"],"transmute_int_to_float":["Warn","Checks for transmutes from an integer to a float."],"implicit_return":[C[0],"Checks for missing return statements at the end of a block."],"deref_addrof":["Warn","Checks for usage of *& and *&mut in expressions."],"zero_divided_by_zero":["Warn","Checks for 0.0 / 0.0."],"while_immutable_condition":["Deny","Checks whether variables used within while loop condition\ncan be (and are) mutated in the body."],"crosspointer_transmute":["Warn","Checks for transmutes between a type T and *T."],"similar_names":[C[0],"Checks for names that are very similar and thus confusing."],"expect_used":[C[0],"Checks for .expect() calls on Options and Results."],"fn_params_excessive_bools":[C[0],"Checks for excessive use of\nbools in function definitions."],"int_plus_one":["Warn","Checks for usage of x >= y + 1 or x - 1 >= y (and <=) in a block"],"assign_op_pattern":["Warn","Checks for a = a op b or a = b commutative_op a\npatterns."],"must_use_unit":["Warn","Checks for a [#[must_use]] attribute on\nunit-returning functions and methods.\n\n[#[must_use]]: https:"],"single_match":["Warn","Checks for matches with a single arm where an if let\nwill usually suffice."],"manual_non_exhaustive":["Warn","Checks for manual implementations of the non-exhaustive pattern."],"items_after_statements":[C[0],"Checks for items declared after some statement in a block."],"transmutes_expressible_as_ptr_casts":["Warn","Checks for transmutes that could be a pointer cast."],"clone_on_ref_ptr":[C[0],"Checks for usage of .clone() on a ref-counted pointer,\n(Rc, Arc, rc::Weak, or sync::Weak), and sugge"],"mem_discriminant_non_enum":["Deny","Checks for calls of mem::discriminant() on a non-enum type."],"result_map_or_into_option":["Warn","Checks for usage of _.map_or(None, Some)."],"option_as_ref_deref":["Warn","Checks for usage of _.as_ref().map(Deref::deref) or it's aliases (such as String::as_str)."],"mut_from_ref":["Deny","This lint checks for functions that take immutable\nreferences and return mutable ones."],"redundant_closure_call":["Warn","Detects closures called in the same expression where they\nare defined."],"for_kv_map":["Warn","Checks for iterating a map (HashMap or BTreeMap) and\nignoring either the keys or values."],"misaligned_transmute":[C[1],C[2]],"explicit_counter_loop":["Warn","Checks for loops over slices with an explicit counter\nand suggests the use of .enumerate()."],"should_assert_eq":[C[1],C[2]],"skip_while_next":["Warn","Checks for usage of _.skip_while(condition).next()."],"large_const_arrays":["Warn","Checks for large const arrays that should\nbe defined as static instead."],"to_digit_is_some":["Warn","Checks for .to_digit(..).is_some() on chars."],"redundant_clone":["Warn","Checks for a redundant clone() (and its relatives) which clones an owned\nvalue that is going to be d"],"type_complexity":["Warn","Checks for types used in structs, parameters and let\ndeclarations above a certain complexity thresho"],"needless_arbitrary_self_type":["Warn","The lint checks for self in fn parameters that\nspecify the Self-type explicitly"],"unit_return_expecting_ord":["Deny","Checks for functions that expect closures of type\nFn(...) -> Ord where the implemented closure retur"],"else_if_without_else":[C[0],"Checks for usage of if expressions with an else if branch,\nbut without a final else branch."],"range_minus_one":[C[0],"Checks for inclusive ranges where 1 is subtracted from\nthe upper bound, e.g., x..=(y-1)."],"unnested_or_patterns":[C[0],"Checks for unnested or-patterns, e.g., Some(0) | Some(2) and\nsuggests replacing the pattern with a n"],"into_iter_on_ref":["Warn","Checks for into_iter calls on references which should be replaced by iter\nor iter_mut."],"ref_in_deref":["Warn","Checks for references in expressions that use\nauto dereference."],"shadow_reuse":[C[0],"Checks for bindings that shadow other bindings already in\nscope, while reusing the original value."],"iterator_step_by_zero":["Deny","Checks for calling .step_by(0) on iterators which panics."],"tabs_in_doc_comments":["Warn","Checks doc comments for usage of tab characters."],"cmp_null":["Warn","This lint checks for equality comparisons with ptr::null"],"iter_cloned_collect":["Warn","Checks for the use of .cloned().collect() on slice to\ncreate a Vec."],"unused_io_amount":["Deny","Checks for unused written/read amount."],"vec_resize_to_zero":["Deny","Finds occurrences of Vec::resize(0, an_int)"],"map_err_ignore":[C[0],"Checks for instances of map_err(|_| Some::Enum)"],"missing_safety_doc":["Warn","Checks for the doc comments of publicly visible\nunsafe functions and warns if there is no # Safety s"],"mutex_integer":[C[0],"Checks for usages of Mutex<X> where X is an integral\ntype."],"while_let_loop":["Warn","Detects loop + match combinations that are easier\nwritten as a while let loop."],"redundant_pattern":["Warn","Checks for patterns in the form name @ _."],"needless_bool":["Warn","Checks for expressions of the form if c { true } else {\nfalse } (or vice versa) and suggests using t"],"derive_hash_xor_eq":["Deny","Checks for deriving Hash but implementing PartialEq\nexplicitly or vice versa."],"fn_to_numeric_cast":["Warn","Checks for casts of function pointers to something other than usize"],"cast_precision_loss":[C[0],"Checks for casts from any numerical to a float type where\nthe receiving type cannot store all values"],"unreachable":[C[0],"Checks for usage of unreachable!."],"cognitive_complexity":[C[0],"Checks for methods with high cognitive complexity."],"missing_docs_in_private_items":[C[0],"Warns if there is missing doc for any documentable item\n(public or private)."],"ptr_arg":["Warn","This lint checks for function arguments of type &String\nor &Vec unless the references are mutable. I"],"search_is_some":["Warn","Checks for an iterator search (such as find(),\nposition(), or rposition()) followed by a call to is_"],"repeat_once":["Warn","Checks for usage of .repeat(1) and suggest the following method for each types.\n- .to_string() for s"],"useless_vec":["Warn","Checks for usage of &vec![..] when using &[..] would\nbe possible."],"expect_fun_call":["Warn","Checks for calls to .expect(&format!(...)), .expect(foo(..)),\netc., and suggests to use unwrap_or_el"],"inherent_to_string_shadow_display":["Deny","Checks for the definition of inherent methods with a signature of to_string(&self) -> String and if "],"multiple_crate_versions":[C[0],"Checks to see if multiple versions of a crate are being\nused."],"reversed_empty_ranges":["Deny","Checks for range expressions x..y where both x and y\nare constant and x is greater or equal to y."],"serde_api_misuse":["Deny","Checks for mis-uses of the serde API."],"single_char_push_str":["Warn","Warns when using push_str with a single-character string literal,\nand push with a char would work fi"],"mutex_atomic":["Warn","Checks for usages of Mutex<X> where an atomic will do."],"derive_ord_xor_partial_ord":["Deny","Checks for deriving Ord but implementing PartialOrd\nexplicitly or vice versa."],"replace_consts":[C[1],C[2]],"redundant_closure_for_method_calls":[C[0],"Checks for closures which only invoke a method on the closure\nargument and can be replaced by refere"],"explicit_into_iter_loop":[C[0],"Checks for loops on y.into_iter() where y will do, and\nsuggests the latter."],"map_identity":["Warn","Checks for instances of map(f) where f is the identity function."],"deprecated_semver":["Deny","Checks for #[deprecated] annotations with a since\nfield that is not a valid semantic version."],"manual_memcpy":["Warn","Checks for for-loops that manually copy items between\nslices that could be optimized by having a mem"],"question_mark":["Warn","Checks for expressions that could be replaced by the question mark operator."],"suboptimal_flops":[C[0],"Looks for floating-point expressions that\ncan be expressed using built-in methods to improve both\nac"],"iter_nth_zero":["Warn","Checks for the use of iter.nth(0)."],"checked_conversions":[C[0],"Checks for explicit bounds checking when casting."],"map_unwrap_or":[C[0],"Checks for usage of option.map(_).unwrap_or(_) or option.map(_).unwrap_or_else(_) or\nresult.map(_).u"],"cast_possible_truncation":[C[0],"Checks for casts between numerical types that may\ntruncate large values. This is expected behavior, "],"forget_ref":["Deny","Checks for calls to std::mem::forget with a reference\ninstead of an owned value."],"range_zip_with_len":["Warn","Checks for zipping a collection with the range of\n0.._.len()."],"invalid_atomic_ordering":["Deny","Checks for usage of invalid atomic\nordering in atomic loads/stores/exchanges/updates and\nmemory fenc"],"unnecessary_cast":["Warn","Checks for casts to the same type."],"missing_inline_in_public_items":[C[0],"it lints if an exported function, method, trait method with default impl,\nor trait method impl is no"],"path_buf_push_overwrite":[C[0],"* Checks for [push](https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.push)\ncalls on Pat"],"unnecessary_mut_passed":["Warn","Detects passing a mutable reference to a function that only\nrequires an immutable reference."],"cmp_nan":["Deny","Checks for comparisons to NaN."],"collapsible_if":["Warn","Checks for nested if statements which can be collapsed\nby &&-combining their conditions and for else"],"non_ascii_literal":[C[0],"Checks for non-ASCII characters in string literals."],"rest_pat_in_fully_bound_structs":[C[0],"Checks for unnecessary '..' pattern binding on struct when all fields are explicitly matched."],"flat_map_identity":["Warn","Checks for usage of flat_map(|x| x)."],"filter_next":["Warn","Checks for usage of _.filter(_).next()."],"needless_pass_by_value":[C[0],"Checks for functions taking arguments by value, but not\nconsuming them in its\nbody."],"bad_bit_mask":["Deny","Checks for incompatible bit masks in comparisons.\n\nThe formula for detecting if an expression of the"],"self_assignment":["Deny","Checks for explicit self-assignments."],"unseparated_literal_suffix":[C[0],"Warns if literal suffixes are not separated by an\nunderscore."],"type_repetition_in_bounds":[C[0],"This lint warns about unnecessary type repetitions in trait bounds"],"option_map_or_none":["Warn","Checks for usage of _.map_or(None, _)."],"needless_update":["Warn","Checks for needlessly including a base struct on update\nwhen all fields are changed anyway."],"fallible_impl_from":[C[0],"Checks for impls of From<..> that contain panic!() or unwrap()"],"invalid_regex":["Deny","Checks [regex](https://crates.io/crates/regex) creation\n(with Regex::new,RegexBuilder::new or RegexS"],"inherent_to_string":["Warn","Checks for the definition of inherent methods with a signature of to_string(&self) -> String."],"match_as_ref":["Warn","Checks for match which is used to add a reference to an\nOption value."],"mut_mut":[C[0],"Checks for instances of mut mut references."],"manual_swap":["Warn","Checks for manual swapping."],"ptr_offset_with_cast":["Warn","Checks for usage of the offset pointer method with a usize casted to an\nisize."],"shadow_same":[C[0],"Checks for bindings that shadow other bindings already in\nscope, while just changing reference level"],"empty_line_after_outer_attr":[C[0],"Checks for empty lines after outer attributes"],"main_recursion":["Warn","Checks for recursion using the entrypoint."],"mutable_key_type":["Deny","Checks for sets/maps with mutable key types."],"match_overlapping_arm":["Warn","Checks for overlapping match arms."],"new_without_default":["Warn","Checks for types with a fn new() -> Self method and no\nimplementation of\n[Default](https://doc.rust-"],"pub_enum_variant_names":[C[0],"Detects public enumeration variants that are\nprefixed or suffixed by the same characters."],"declare_interior_mutable_const":["Warn","Checks for declaration of const items which is interior\nmutable (e.g., contains a Cell, Mutex, Atomi"],"let_underscore_lock":["Deny","Checks for let _ = sync_lock"],"single_char_pattern":["Warn","Checks for string methods that receive a single-character\nstr as an argument, e.g., _.split(\"x\")."],"stable_sort_primitive":["Warn","When sorting primitive values (integers, bools, chars, as well\nas arrays, slices, and tuples of such"],"range_plus_one":[C[0],"Checks for exclusive ranges where 1 is added to the\nupper bound, e.g., x..(y+1)."],"suspicious_arithmetic_impl":["Deny","Lints for suspicious operations in impls of arithmetic operators, e.g.\nsubtracting elements in an Ad"],"try_err":["Warn","Checks for usages of Err(x)?."],"vtable_address_comparisons":["Deny","Checks for comparisons with an address of a trait vtable."],"maybe_infinite_iter":[C[0],"Checks for iteration that may be infinite."],"doc_markdown":[C[0],"Checks for the presence of _, :: or camel-case words\noutside ticks in documentation."],"wrong_pub_self_convention":[C[0],"This is the same as\n[wrong_self_convention](#wrong_self_convention), but for public items."],"op_ref":["Warn","Checks for arguments to == which have their address\ntaken to satisfy a bound\nand suggests to derefer"],"empty_enum":[C[0],"Checks for enums with no variants."],"eval_order_dependence":["Warn","Checks for a read and a write to the same variable where\nwhether the read occurs before or after the"],"must_use_candidate":[C[0],"Checks for public functions that have no\n[#[must_use]] attribute, but return something not already m"],"implicit_hasher":[C[0],"Checks for public impl or fn missing generalization\nover different hashers and implicitly defaulting"],"mem_forget":[C[0],"Checks for usage of std::mem::forget(t) where t is\nDrop."],"box_vec":["Warn","Checks for use of Box<Vec<_>> anywhere in the code.\nCheck the [Box documentation](https://doc.rust-l"],"mem_replace_option_with_none":["Warn","Checks for mem::replace() on an Option with\nNone."],"drop_copy":["Deny","Checks for calls to std::mem::drop with a value\nthat derives the Copy trait"],"double_must_use":["Warn","Checks for a [#[must_use]] attribute without\nfurther information on functions and methods that retur"],"result_unit_err":["Warn","Checks for public functions that return a Result\nwith an Err type of (). It suggests using a custom "],"single_match_else":[C[0],"Checks for matches with two arms where an if let else will\nusually suffice."],"unnecessary_lazy_evaluations":["Warn","As the counterpart to or_fun_call, this lint looks for unnecessary\nlazily evaluated closures on Opti"],"str_to_string":[C[1],C[2]],"useless_transmute":[C[0],"Checks for transmutes to the original type of the object\nand transmutes that could be a cast."],"wildcard_dependencies":[C[0],"Checks for wildcard dependencies in the Cargo.toml."],"string_lit_as_bytes":[C[0],"Checks for the as_bytes method called on string literals\nthat contain only ASCII characters."],"wildcard_in_or_patterns":["Warn","Checks for wildcard pattern used with others patterns in same match arm."],"invisible_characters":["Deny","Checks for invisible Unicode characters in the code."],"match_on_vec_items":[C[0],"Checks for match vec[idx] or match vec[n..m]."],"partialeq_ne_impl":["Warn","Checks for manual re-implementations of PartialEq::ne."],"min_max":["Deny","Checks for expressions where std::cmp::min and max are\nused to clamp values, but switched so that th"],"let_and_return":["Warn","Checks for let-bindings, which are subsequently\nreturned."],"redundant_static_lifetimes":["Warn","Checks for constants and statics with an explicit 'static lifetime."],"indexing_slicing":[C[0],"Checks for usage of indexing or slicing. Arrays are special cases, this lint\ndoes report on arrays i"],"unsafe_removed_from_name":["Warn","Checks for imports that remove \"unsafe\" from an item's\nname."],"trivial_regex":["Warn","Checks for trivial [regex](https://crates.io/crates/regex)\ncreation (with Regex::new, RegexBuilder::"],"unused_self":[C[0],"Checks methods that contain a self argument but don't use it"],"needless_range_loop":["Warn","Checks for looping over the range of 0..len of some\ncollection just to get the values by index."],"float_equality_without_abs":["Deny","Checks for statements of the form (a - b) < f32::EPSILON or\n(a - b) < f64::EPSILON. Notes the missin"],"precedence":["Warn","Checks for operations where precedence may be unclear\nand suggests to add parentheses. Currently it "],"disallowed_method":[C[0],"Lints for specific trait methods defined in clippy.toml"],"duration_subsec":["Warn","Checks for calculation of subsecond microseconds or milliseconds\nfrom other Duration methods."],"unstable_as_mut_slice":[C[1],C[2]],"clone_on_copy":["Warn","Checks for usage of .clone() on a Copy type."],"inline_always":[C[0],"Checks for items annotated with #[inline(always)],\nunless the annotated function is empty or simply "],"print_stdout":[C[0],"Checks for printing on *stdout*. The purpose of this lint\nis to catch debugging remnants."],"manual_async_fn":["Warn","It checks for manual implementations of async functions."],"zero_ptr":["Warn","Catch casts from 0 to some pointer type"],"toplevel_ref_arg":["Warn","Checks for function arguments and let bindings denoted as\nref."],"uninit_assumed_init":["Deny","Checks for MaybeUninit::uninit().assume_init()."],"zero_prefixed_literal":["Warn","Warns if an integral constant literal starts with 0."],"get_unwrap":[C[0],"Checks for use of .get().unwrap() (or\n.get_mut().unwrap) on a standard library type which implements"],"drop_bounds":[C[1],C[2]]}; |