]> git.lizzy.rs Git - rust.git/blob - clippy_lints/src/lib.register_all.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / clippy_lints / src / lib.register_all.rs
1 // This file was generated by `cargo dev update_lints`.
2 // Use that command to update this file and do not edit by hand.
3 // Manual edits will be overwritten.
4
5 store.register_group(true, "clippy::all", Some("clippy_all"), vec![
6     LintId::of(absurd_extreme_comparisons::ABSURD_EXTREME_COMPARISONS),
7     LintId::of(approx_const::APPROX_CONSTANT),
8     LintId::of(assertions_on_constants::ASSERTIONS_ON_CONSTANTS),
9     LintId::of(assign_ops::ASSIGN_OP_PATTERN),
10     LintId::of(assign_ops::MISREFACTORED_ASSIGN_OP),
11     LintId::of(async_yields_async::ASYNC_YIELDS_ASYNC),
12     LintId::of(attrs::BLANKET_CLIPPY_RESTRICTION_LINTS),
13     LintId::of(attrs::DEPRECATED_CFG_ATTR),
14     LintId::of(attrs::DEPRECATED_SEMVER),
15     LintId::of(attrs::MISMATCHED_TARGET_OS),
16     LintId::of(attrs::USELESS_ATTRIBUTE),
17     LintId::of(await_holding_invalid::AWAIT_HOLDING_LOCK),
18     LintId::of(await_holding_invalid::AWAIT_HOLDING_REFCELL_REF),
19     LintId::of(bit_mask::BAD_BIT_MASK),
20     LintId::of(bit_mask::INEFFECTIVE_BIT_MASK),
21     LintId::of(blacklisted_name::BLACKLISTED_NAME),
22     LintId::of(blocks_in_if_conditions::BLOCKS_IN_IF_CONDITIONS),
23     LintId::of(bool_assert_comparison::BOOL_ASSERT_COMPARISON),
24     LintId::of(booleans::LOGIC_BUG),
25     LintId::of(booleans::NONMINIMAL_BOOL),
26     LintId::of(casts::CAST_ABS_TO_UNSIGNED),
27     LintId::of(casts::CAST_ENUM_CONSTRUCTOR),
28     LintId::of(casts::CAST_ENUM_TRUNCATION),
29     LintId::of(casts::CAST_REF_TO_MUT),
30     LintId::of(casts::CAST_SLICE_DIFFERENT_SIZES),
31     LintId::of(casts::CHAR_LIT_AS_U8),
32     LintId::of(casts::FN_TO_NUMERIC_CAST),
33     LintId::of(casts::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
34     LintId::of(casts::UNNECESSARY_CAST),
35     LintId::of(collapsible_if::COLLAPSIBLE_ELSE_IF),
36     LintId::of(collapsible_if::COLLAPSIBLE_IF),
37     LintId::of(collapsible_match::COLLAPSIBLE_MATCH),
38     LintId::of(comparison_chain::COMPARISON_CHAIN),
39     LintId::of(copies::IFS_SAME_COND),
40     LintId::of(copies::IF_SAME_THEN_ELSE),
41     LintId::of(crate_in_macro_def::CRATE_IN_MACRO_DEF),
42     LintId::of(default::FIELD_REASSIGN_WITH_DEFAULT),
43     LintId::of(dereference::NEEDLESS_BORROW),
44     LintId::of(derivable_impls::DERIVABLE_IMPLS),
45     LintId::of(derive::DERIVE_HASH_XOR_EQ),
46     LintId::of(derive::DERIVE_ORD_XOR_PARTIAL_ORD),
47     LintId::of(disallowed_methods::DISALLOWED_METHODS),
48     LintId::of(disallowed_types::DISALLOWED_TYPES),
49     LintId::of(doc::MISSING_SAFETY_DOC),
50     LintId::of(doc::NEEDLESS_DOCTEST_MAIN),
51     LintId::of(double_comparison::DOUBLE_COMPARISONS),
52     LintId::of(double_parens::DOUBLE_PARENS),
53     LintId::of(drop_forget_ref::DROP_COPY),
54     LintId::of(drop_forget_ref::DROP_NON_DROP),
55     LintId::of(drop_forget_ref::DROP_REF),
56     LintId::of(drop_forget_ref::FORGET_COPY),
57     LintId::of(drop_forget_ref::FORGET_NON_DROP),
58     LintId::of(drop_forget_ref::FORGET_REF),
59     LintId::of(drop_forget_ref::UNDROPPED_MANUALLY_DROPS),
60     LintId::of(duration_subsec::DURATION_SUBSEC),
61     LintId::of(entry::MAP_ENTRY),
62     LintId::of(enum_clike::ENUM_CLIKE_UNPORTABLE_VARIANT),
63     LintId::of(enum_variants::ENUM_VARIANT_NAMES),
64     LintId::of(enum_variants::MODULE_INCEPTION),
65     LintId::of(eq_op::EQ_OP),
66     LintId::of(eq_op::OP_REF),
67     LintId::of(erasing_op::ERASING_OP),
68     LintId::of(escape::BOXED_LOCAL),
69     LintId::of(eta_reduction::REDUNDANT_CLOSURE),
70     LintId::of(eval_order_dependence::DIVERGING_SUB_EXPRESSION),
71     LintId::of(eval_order_dependence::EVAL_ORDER_DEPENDENCE),
72     LintId::of(explicit_write::EXPLICIT_WRITE),
73     LintId::of(float_equality_without_abs::FLOAT_EQUALITY_WITHOUT_ABS),
74     LintId::of(float_literal::EXCESSIVE_PRECISION),
75     LintId::of(format::USELESS_FORMAT),
76     LintId::of(format_args::FORMAT_IN_FORMAT_ARGS),
77     LintId::of(format_args::TO_STRING_IN_FORMAT_ARGS),
78     LintId::of(format_impl::PRINT_IN_FORMAT_IMPL),
79     LintId::of(format_impl::RECURSIVE_FORMAT_IMPL),
80     LintId::of(formatting::POSSIBLE_MISSING_COMMA),
81     LintId::of(formatting::SUSPICIOUS_ASSIGNMENT_FORMATTING),
82     LintId::of(formatting::SUSPICIOUS_ELSE_FORMATTING),
83     LintId::of(formatting::SUSPICIOUS_UNARY_OP_FORMATTING),
84     LintId::of(from_over_into::FROM_OVER_INTO),
85     LintId::of(from_str_radix_10::FROM_STR_RADIX_10),
86     LintId::of(functions::DOUBLE_MUST_USE),
87     LintId::of(functions::MUST_USE_UNIT),
88     LintId::of(functions::NOT_UNSAFE_PTR_ARG_DEREF),
89     LintId::of(functions::RESULT_UNIT_ERR),
90     LintId::of(functions::TOO_MANY_ARGUMENTS),
91     LintId::of(get_last_with_len::GET_LAST_WITH_LEN),
92     LintId::of(identity_op::IDENTITY_OP),
93     LintId::of(if_let_mutex::IF_LET_MUTEX),
94     LintId::of(indexing_slicing::OUT_OF_BOUNDS_INDEXING),
95     LintId::of(infinite_iter::INFINITE_ITER),
96     LintId::of(inherent_to_string::INHERENT_TO_STRING),
97     LintId::of(inherent_to_string::INHERENT_TO_STRING_SHADOW_DISPLAY),
98     LintId::of(init_numbered_fields::INIT_NUMBERED_FIELDS),
99     LintId::of(inline_fn_without_body::INLINE_FN_WITHOUT_BODY),
100     LintId::of(int_plus_one::INT_PLUS_ONE),
101     LintId::of(large_const_arrays::LARGE_CONST_ARRAYS),
102     LintId::of(large_enum_variant::LARGE_ENUM_VARIANT),
103     LintId::of(len_zero::COMPARISON_TO_EMPTY),
104     LintId::of(len_zero::LEN_WITHOUT_IS_EMPTY),
105     LintId::of(len_zero::LEN_ZERO),
106     LintId::of(let_underscore::LET_UNDERSCORE_LOCK),
107     LintId::of(lifetimes::EXTRA_UNUSED_LIFETIMES),
108     LintId::of(lifetimes::NEEDLESS_LIFETIMES),
109     LintId::of(literal_representation::INCONSISTENT_DIGIT_GROUPING),
110     LintId::of(literal_representation::MISTYPED_LITERAL_SUFFIXES),
111     LintId::of(literal_representation::UNUSUAL_BYTE_GROUPINGS),
112     LintId::of(loops::EMPTY_LOOP),
113     LintId::of(loops::EXPLICIT_COUNTER_LOOP),
114     LintId::of(loops::FOR_KV_MAP),
115     LintId::of(loops::FOR_LOOPS_OVER_FALLIBLES),
116     LintId::of(loops::ITER_NEXT_LOOP),
117     LintId::of(loops::MANUAL_FLATTEN),
118     LintId::of(loops::MANUAL_MEMCPY),
119     LintId::of(loops::MISSING_SPIN_LOOP),
120     LintId::of(loops::MUT_RANGE_BOUND),
121     LintId::of(loops::NEEDLESS_COLLECT),
122     LintId::of(loops::NEEDLESS_RANGE_LOOP),
123     LintId::of(loops::NEVER_LOOP),
124     LintId::of(loops::SAME_ITEM_PUSH),
125     LintId::of(loops::SINGLE_ELEMENT_LOOP),
126     LintId::of(loops::WHILE_IMMUTABLE_CONDITION),
127     LintId::of(loops::WHILE_LET_LOOP),
128     LintId::of(loops::WHILE_LET_ON_ITERATOR),
129     LintId::of(main_recursion::MAIN_RECURSION),
130     LintId::of(manual_async_fn::MANUAL_ASYNC_FN),
131     LintId::of(manual_bits::MANUAL_BITS),
132     LintId::of(manual_map::MANUAL_MAP),
133     LintId::of(manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE),
134     LintId::of(manual_strip::MANUAL_STRIP),
135     LintId::of(manual_unwrap_or::MANUAL_UNWRAP_OR),
136     LintId::of(map_clone::MAP_CLONE),
137     LintId::of(map_unit_fn::OPTION_MAP_UNIT_FN),
138     LintId::of(map_unit_fn::RESULT_MAP_UNIT_FN),
139     LintId::of(match_result_ok::MATCH_RESULT_OK),
140     LintId::of(match_str_case_mismatch::MATCH_STR_CASE_MISMATCH),
141     LintId::of(matches::INFALLIBLE_DESTRUCTURING_MATCH),
142     LintId::of(matches::MATCH_AS_REF),
143     LintId::of(matches::MATCH_LIKE_MATCHES_MACRO),
144     LintId::of(matches::MATCH_OVERLAPPING_ARM),
145     LintId::of(matches::MATCH_REF_PATS),
146     LintId::of(matches::MATCH_SINGLE_BINDING),
147     LintId::of(matches::NEEDLESS_MATCH),
148     LintId::of(matches::REDUNDANT_PATTERN_MATCHING),
149     LintId::of(matches::SINGLE_MATCH),
150     LintId::of(matches::WILDCARD_IN_OR_PATTERNS),
151     LintId::of(mem_replace::MEM_REPLACE_OPTION_WITH_NONE),
152     LintId::of(mem_replace::MEM_REPLACE_WITH_DEFAULT),
153     LintId::of(mem_replace::MEM_REPLACE_WITH_UNINIT),
154     LintId::of(methods::BIND_INSTEAD_OF_MAP),
155     LintId::of(methods::BYTES_NTH),
156     LintId::of(methods::CHARS_LAST_CMP),
157     LintId::of(methods::CHARS_NEXT_CMP),
158     LintId::of(methods::CLONE_DOUBLE_REF),
159     LintId::of(methods::CLONE_ON_COPY),
160     LintId::of(methods::ERR_EXPECT),
161     LintId::of(methods::EXPECT_FUN_CALL),
162     LintId::of(methods::EXTEND_WITH_DRAIN),
163     LintId::of(methods::FILTER_MAP_IDENTITY),
164     LintId::of(methods::FILTER_NEXT),
165     LintId::of(methods::FLAT_MAP_IDENTITY),
166     LintId::of(methods::INSPECT_FOR_EACH),
167     LintId::of(methods::INTO_ITER_ON_REF),
168     LintId::of(methods::ITERATOR_STEP_BY_ZERO),
169     LintId::of(methods::ITER_CLONED_COLLECT),
170     LintId::of(methods::ITER_COUNT),
171     LintId::of(methods::ITER_NEXT_SLICE),
172     LintId::of(methods::ITER_NTH),
173     LintId::of(methods::ITER_NTH_ZERO),
174     LintId::of(methods::ITER_OVEREAGER_CLONED),
175     LintId::of(methods::ITER_SKIP_NEXT),
176     LintId::of(methods::MANUAL_FILTER_MAP),
177     LintId::of(methods::MANUAL_FIND_MAP),
178     LintId::of(methods::MANUAL_SATURATING_ARITHMETIC),
179     LintId::of(methods::MANUAL_SPLIT_ONCE),
180     LintId::of(methods::MANUAL_STR_REPEAT),
181     LintId::of(methods::MAP_COLLECT_RESULT_UNIT),
182     LintId::of(methods::MAP_FLATTEN),
183     LintId::of(methods::MAP_IDENTITY),
184     LintId::of(methods::NEEDLESS_OPTION_AS_DEREF),
185     LintId::of(methods::NEEDLESS_SPLITN),
186     LintId::of(methods::NEW_RET_NO_SELF),
187     LintId::of(methods::OK_EXPECT),
188     LintId::of(methods::OPTION_AS_REF_DEREF),
189     LintId::of(methods::OPTION_FILTER_MAP),
190     LintId::of(methods::OPTION_MAP_OR_NONE),
191     LintId::of(methods::OR_FUN_CALL),
192     LintId::of(methods::OR_THEN_UNWRAP),
193     LintId::of(methods::RESULT_MAP_OR_INTO_OPTION),
194     LintId::of(methods::SEARCH_IS_SOME),
195     LintId::of(methods::SHOULD_IMPLEMENT_TRAIT),
196     LintId::of(methods::SINGLE_CHAR_ADD_STR),
197     LintId::of(methods::SINGLE_CHAR_PATTERN),
198     LintId::of(methods::SKIP_WHILE_NEXT),
199     LintId::of(methods::STRING_EXTEND_CHARS),
200     LintId::of(methods::SUSPICIOUS_MAP),
201     LintId::of(methods::SUSPICIOUS_SPLITN),
202     LintId::of(methods::UNINIT_ASSUMED_INIT),
203     LintId::of(methods::UNNECESSARY_FILTER_MAP),
204     LintId::of(methods::UNNECESSARY_FIND_MAP),
205     LintId::of(methods::UNNECESSARY_FOLD),
206     LintId::of(methods::UNNECESSARY_LAZY_EVALUATIONS),
207     LintId::of(methods::UNNECESSARY_TO_OWNED),
208     LintId::of(methods::UNWRAP_OR_ELSE_DEFAULT),
209     LintId::of(methods::USELESS_ASREF),
210     LintId::of(methods::WRONG_SELF_CONVENTION),
211     LintId::of(methods::ZST_OFFSET),
212     LintId::of(minmax::MIN_MAX),
213     LintId::of(misc::CMP_NAN),
214     LintId::of(misc::CMP_OWNED),
215     LintId::of(misc::MODULO_ONE),
216     LintId::of(misc::SHORT_CIRCUIT_STATEMENT),
217     LintId::of(misc::TOPLEVEL_REF_ARG),
218     LintId::of(misc::ZERO_PTR),
219     LintId::of(misc_early::BUILTIN_TYPE_SHADOW),
220     LintId::of(misc_early::DOUBLE_NEG),
221     LintId::of(misc_early::DUPLICATE_UNDERSCORE_ARGUMENT),
222     LintId::of(misc_early::MIXED_CASE_HEX_LITERALS),
223     LintId::of(misc_early::REDUNDANT_PATTERN),
224     LintId::of(misc_early::UNNEEDED_WILDCARD_PATTERN),
225     LintId::of(misc_early::ZERO_PREFIXED_LITERAL),
226     LintId::of(mut_key::MUTABLE_KEY_TYPE),
227     LintId::of(mut_mutex_lock::MUT_MUTEX_LOCK),
228     LintId::of(mut_reference::UNNECESSARY_MUT_PASSED),
229     LintId::of(needless_arbitrary_self_type::NEEDLESS_ARBITRARY_SELF_TYPE),
230     LintId::of(needless_bool::BOOL_COMPARISON),
231     LintId::of(needless_bool::NEEDLESS_BOOL),
232     LintId::of(needless_borrowed_ref::NEEDLESS_BORROWED_REFERENCE),
233     LintId::of(needless_late_init::NEEDLESS_LATE_INIT),
234     LintId::of(needless_question_mark::NEEDLESS_QUESTION_MARK),
235     LintId::of(needless_update::NEEDLESS_UPDATE),
236     LintId::of(neg_cmp_op_on_partial_ord::NEG_CMP_OP_ON_PARTIAL_ORD),
237     LintId::of(neg_multiply::NEG_MULTIPLY),
238     LintId::of(new_without_default::NEW_WITHOUT_DEFAULT),
239     LintId::of(no_effect::NO_EFFECT),
240     LintId::of(no_effect::UNNECESSARY_OPERATION),
241     LintId::of(non_copy_const::BORROW_INTERIOR_MUTABLE_CONST),
242     LintId::of(non_copy_const::DECLARE_INTERIOR_MUTABLE_CONST),
243     LintId::of(non_expressive_names::JUST_UNDERSCORES_AND_DIGITS),
244     LintId::of(non_octal_unix_permissions::NON_OCTAL_UNIX_PERMISSIONS),
245     LintId::of(octal_escapes::OCTAL_ESCAPES),
246     LintId::of(only_used_in_recursion::ONLY_USED_IN_RECURSION),
247     LintId::of(open_options::NONSENSICAL_OPEN_OPTIONS),
248     LintId::of(option_env_unwrap::OPTION_ENV_UNWRAP),
249     LintId::of(overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL),
250     LintId::of(partialeq_ne_impl::PARTIALEQ_NE_IMPL),
251     LintId::of(precedence::PRECEDENCE),
252     LintId::of(ptr::CMP_NULL),
253     LintId::of(ptr::INVALID_NULL_PTR_USAGE),
254     LintId::of(ptr::MUT_FROM_REF),
255     LintId::of(ptr::PTR_ARG),
256     LintId::of(ptr_eq::PTR_EQ),
257     LintId::of(ptr_offset_with_cast::PTR_OFFSET_WITH_CAST),
258     LintId::of(question_mark::QUESTION_MARK),
259     LintId::of(ranges::MANUAL_RANGE_CONTAINS),
260     LintId::of(ranges::RANGE_ZIP_WITH_LEN),
261     LintId::of(ranges::REVERSED_EMPTY_RANGES),
262     LintId::of(redundant_clone::REDUNDANT_CLONE),
263     LintId::of(redundant_closure_call::REDUNDANT_CLOSURE_CALL),
264     LintId::of(redundant_field_names::REDUNDANT_FIELD_NAMES),
265     LintId::of(redundant_slicing::REDUNDANT_SLICING),
266     LintId::of(redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES),
267     LintId::of(reference::DEREF_ADDROF),
268     LintId::of(regex::INVALID_REGEX),
269     LintId::of(repeat_once::REPEAT_ONCE),
270     LintId::of(returns::LET_AND_RETURN),
271     LintId::of(returns::NEEDLESS_RETURN),
272     LintId::of(self_assignment::SELF_ASSIGNMENT),
273     LintId::of(self_named_constructors::SELF_NAMED_CONSTRUCTORS),
274     LintId::of(serde_api::SERDE_API_MISUSE),
275     LintId::of(single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS),
276     LintId::of(size_of_in_element_count::SIZE_OF_IN_ELEMENT_COUNT),
277     LintId::of(slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
278     LintId::of(stable_sort_primitive::STABLE_SORT_PRIMITIVE),
279     LintId::of(strings::STRING_FROM_UTF8_AS_BYTES),
280     LintId::of(strlen_on_c_strings::STRLEN_ON_C_STRINGS),
281     LintId::of(suspicious_trait_impl::SUSPICIOUS_ARITHMETIC_IMPL),
282     LintId::of(suspicious_trait_impl::SUSPICIOUS_OP_ASSIGN_IMPL),
283     LintId::of(swap::ALMOST_SWAPPED),
284     LintId::of(swap::MANUAL_SWAP),
285     LintId::of(tabs_in_doc_comments::TABS_IN_DOC_COMMENTS),
286     LintId::of(temporary_assignment::TEMPORARY_ASSIGNMENT),
287     LintId::of(to_digit_is_some::TO_DIGIT_IS_SOME),
288     LintId::of(transmute::CROSSPOINTER_TRANSMUTE),
289     LintId::of(transmute::TRANSMUTES_EXPRESSIBLE_AS_PTR_CASTS),
290     LintId::of(transmute::TRANSMUTE_BYTES_TO_STR),
291     LintId::of(transmute::TRANSMUTE_FLOAT_TO_INT),
292     LintId::of(transmute::TRANSMUTE_INT_TO_BOOL),
293     LintId::of(transmute::TRANSMUTE_INT_TO_CHAR),
294     LintId::of(transmute::TRANSMUTE_INT_TO_FLOAT),
295     LintId::of(transmute::TRANSMUTE_NUM_TO_BYTES),
296     LintId::of(transmute::TRANSMUTE_PTR_TO_REF),
297     LintId::of(transmute::UNSOUND_COLLECTION_TRANSMUTE),
298     LintId::of(transmute::WRONG_TRANSMUTE),
299     LintId::of(transmuting_null::TRANSMUTING_NULL),
300     LintId::of(types::BORROWED_BOX),
301     LintId::of(types::BOX_COLLECTION),
302     LintId::of(types::REDUNDANT_ALLOCATION),
303     LintId::of(types::TYPE_COMPLEXITY),
304     LintId::of(types::VEC_BOX),
305     LintId::of(unicode::INVISIBLE_CHARACTERS),
306     LintId::of(uninit_vec::UNINIT_VEC),
307     LintId::of(unit_hash::UNIT_HASH),
308     LintId::of(unit_return_expecting_ord::UNIT_RETURN_EXPECTING_ORD),
309     LintId::of(unit_types::UNIT_ARG),
310     LintId::of(unit_types::UNIT_CMP),
311     LintId::of(unnamed_address::FN_ADDRESS_COMPARISONS),
312     LintId::of(unnamed_address::VTABLE_ADDRESS_COMPARISONS),
313     LintId::of(unnecessary_sort_by::UNNECESSARY_SORT_BY),
314     LintId::of(unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),
315     LintId::of(unused_io_amount::UNUSED_IO_AMOUNT),
316     LintId::of(unused_unit::UNUSED_UNIT),
317     LintId::of(unwrap::PANICKING_UNWRAP),
318     LintId::of(unwrap::UNNECESSARY_UNWRAP),
319     LintId::of(upper_case_acronyms::UPPER_CASE_ACRONYMS),
320     LintId::of(useless_conversion::USELESS_CONVERSION),
321     LintId::of(vec::USELESS_VEC),
322     LintId::of(vec_init_then_push::VEC_INIT_THEN_PUSH),
323     LintId::of(vec_resize_to_zero::VEC_RESIZE_TO_ZERO),
324     LintId::of(write::PRINTLN_EMPTY_STRING),
325     LintId::of(write::PRINT_LITERAL),
326     LintId::of(write::PRINT_WITH_NEWLINE),
327     LintId::of(write::WRITELN_EMPTY_STRING),
328     LintId::of(write::WRITE_LITERAL),
329     LintId::of(write::WRITE_WITH_NEWLINE),
330     LintId::of(zero_div_zero::ZERO_DIVIDED_BY_ZERO),
331 ])