]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/clippy_lints/src/lib.register_style.rs
:arrow_up: rust-analyzer
[rust.git] / src / tools / clippy / clippy_lints / src / lib.register_style.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::style", Some("clippy_style"), vec![
6     LintId::of(assertions_on_constants::ASSERTIONS_ON_CONSTANTS),
7     LintId::of(blocks_in_if_conditions::BLOCKS_IN_IF_CONDITIONS),
8     LintId::of(bool_assert_comparison::BOOL_ASSERT_COMPARISON),
9     LintId::of(bool_to_int_with_if::BOOL_TO_INT_WITH_IF),
10     LintId::of(casts::FN_TO_NUMERIC_CAST),
11     LintId::of(casts::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
12     LintId::of(collapsible_if::COLLAPSIBLE_ELSE_IF),
13     LintId::of(collapsible_if::COLLAPSIBLE_IF),
14     LintId::of(comparison_chain::COMPARISON_CHAIN),
15     LintId::of(default::FIELD_REASSIGN_WITH_DEFAULT),
16     LintId::of(default_instead_of_iter_empty::DEFAULT_INSTEAD_OF_ITER_EMPTY),
17     LintId::of(dereference::NEEDLESS_BORROW),
18     LintId::of(disallowed_macros::DISALLOWED_MACROS),
19     LintId::of(disallowed_methods::DISALLOWED_METHODS),
20     LintId::of(disallowed_names::DISALLOWED_NAMES),
21     LintId::of(disallowed_types::DISALLOWED_TYPES),
22     LintId::of(doc::MISSING_SAFETY_DOC),
23     LintId::of(doc::NEEDLESS_DOCTEST_MAIN),
24     LintId::of(enum_variants::ENUM_VARIANT_NAMES),
25     LintId::of(enum_variants::MODULE_INCEPTION),
26     LintId::of(eta_reduction::REDUNDANT_CLOSURE),
27     LintId::of(float_literal::EXCESSIVE_PRECISION),
28     LintId::of(from_over_into::FROM_OVER_INTO),
29     LintId::of(from_str_radix_10::FROM_STR_RADIX_10),
30     LintId::of(functions::DOUBLE_MUST_USE),
31     LintId::of(functions::MUST_USE_UNIT),
32     LintId::of(functions::RESULT_UNIT_ERR),
33     LintId::of(implicit_saturating_add::IMPLICIT_SATURATING_ADD),
34     LintId::of(inherent_to_string::INHERENT_TO_STRING),
35     LintId::of(init_numbered_fields::INIT_NUMBERED_FIELDS),
36     LintId::of(len_zero::COMPARISON_TO_EMPTY),
37     LintId::of(len_zero::LEN_WITHOUT_IS_EMPTY),
38     LintId::of(len_zero::LEN_ZERO),
39     LintId::of(literal_representation::INCONSISTENT_DIGIT_GROUPING),
40     LintId::of(literal_representation::UNUSUAL_BYTE_GROUPINGS),
41     LintId::of(loops::FOR_KV_MAP),
42     LintId::of(loops::NEEDLESS_RANGE_LOOP),
43     LintId::of(loops::SAME_ITEM_PUSH),
44     LintId::of(loops::WHILE_LET_ON_ITERATOR),
45     LintId::of(main_recursion::MAIN_RECURSION),
46     LintId::of(manual_async_fn::MANUAL_ASYNC_FN),
47     LintId::of(manual_bits::MANUAL_BITS),
48     LintId::of(manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE),
49     LintId::of(match_result_ok::MATCH_RESULT_OK),
50     LintId::of(matches::COLLAPSIBLE_MATCH),
51     LintId::of(matches::INFALLIBLE_DESTRUCTURING_MATCH),
52     LintId::of(matches::MANUAL_MAP),
53     LintId::of(matches::MATCH_LIKE_MATCHES_MACRO),
54     LintId::of(matches::MATCH_OVERLAPPING_ARM),
55     LintId::of(matches::MATCH_REF_PATS),
56     LintId::of(matches::REDUNDANT_PATTERN_MATCHING),
57     LintId::of(matches::SINGLE_MATCH),
58     LintId::of(mem_replace::MEM_REPLACE_OPTION_WITH_NONE),
59     LintId::of(mem_replace::MEM_REPLACE_WITH_DEFAULT),
60     LintId::of(methods::BYTES_NTH),
61     LintId::of(methods::CHARS_LAST_CMP),
62     LintId::of(methods::CHARS_NEXT_CMP),
63     LintId::of(methods::ERR_EXPECT),
64     LintId::of(methods::GET_FIRST),
65     LintId::of(methods::INTO_ITER_ON_REF),
66     LintId::of(methods::IS_DIGIT_ASCII_RADIX),
67     LintId::of(methods::ITER_CLONED_COLLECT),
68     LintId::of(methods::ITER_NEXT_SLICE),
69     LintId::of(methods::ITER_NTH_ZERO),
70     LintId::of(methods::ITER_SKIP_NEXT),
71     LintId::of(methods::MANUAL_SATURATING_ARITHMETIC),
72     LintId::of(methods::MAP_CLONE),
73     LintId::of(methods::MAP_COLLECT_RESULT_UNIT),
74     LintId::of(methods::MUT_MUTEX_LOCK),
75     LintId::of(methods::NEW_RET_NO_SELF),
76     LintId::of(methods::OBFUSCATED_IF_ELSE),
77     LintId::of(methods::OK_EXPECT),
78     LintId::of(methods::OPTION_MAP_OR_NONE),
79     LintId::of(methods::RESULT_MAP_OR_INTO_OPTION),
80     LintId::of(methods::SHOULD_IMPLEMENT_TRAIT),
81     LintId::of(methods::SINGLE_CHAR_ADD_STR),
82     LintId::of(methods::STRING_EXTEND_CHARS),
83     LintId::of(methods::UNNECESSARY_FOLD),
84     LintId::of(methods::UNNECESSARY_LAZY_EVALUATIONS),
85     LintId::of(methods::UNWRAP_OR_ELSE_DEFAULT),
86     LintId::of(methods::WRONG_SELF_CONVENTION),
87     LintId::of(misc::TOPLEVEL_REF_ARG),
88     LintId::of(misc::ZERO_PTR),
89     LintId::of(misc_early::BUILTIN_TYPE_SHADOW),
90     LintId::of(misc_early::DOUBLE_NEG),
91     LintId::of(misc_early::DUPLICATE_UNDERSCORE_ARGUMENT),
92     LintId::of(misc_early::MIXED_CASE_HEX_LITERALS),
93     LintId::of(misc_early::REDUNDANT_PATTERN),
94     LintId::of(mut_reference::UNNECESSARY_MUT_PASSED),
95     LintId::of(needless_late_init::NEEDLESS_LATE_INIT),
96     LintId::of(needless_parens_on_range_literals::NEEDLESS_PARENS_ON_RANGE_LITERALS),
97     LintId::of(neg_multiply::NEG_MULTIPLY),
98     LintId::of(new_without_default::NEW_WITHOUT_DEFAULT),
99     LintId::of(non_copy_const::BORROW_INTERIOR_MUTABLE_CONST),
100     LintId::of(non_copy_const::DECLARE_INTERIOR_MUTABLE_CONST),
101     LintId::of(non_expressive_names::JUST_UNDERSCORES_AND_DIGITS),
102     LintId::of(operators::ASSIGN_OP_PATTERN),
103     LintId::of(operators::OP_REF),
104     LintId::of(operators::PTR_EQ),
105     LintId::of(partialeq_to_none::PARTIALEQ_TO_NONE),
106     LintId::of(ptr::CMP_NULL),
107     LintId::of(ptr::PTR_ARG),
108     LintId::of(question_mark::QUESTION_MARK),
109     LintId::of(ranges::MANUAL_RANGE_CONTAINS),
110     LintId::of(redundant_field_names::REDUNDANT_FIELD_NAMES),
111     LintId::of(redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES),
112     LintId::of(returns::LET_AND_RETURN),
113     LintId::of(returns::NEEDLESS_RETURN),
114     LintId::of(self_named_constructors::SELF_NAMED_CONSTRUCTORS),
115     LintId::of(single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS),
116     LintId::of(strings::TRIM_SPLIT_WHITESPACE),
117     LintId::of(tabs_in_doc_comments::TABS_IN_DOC_COMMENTS),
118     LintId::of(to_digit_is_some::TO_DIGIT_IS_SOME),
119     LintId::of(unit_types::LET_UNIT_VALUE),
120     LintId::of(unnecessary_owned_empty_strings::UNNECESSARY_OWNED_EMPTY_STRINGS),
121     LintId::of(unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),
122     LintId::of(unused_unit::UNUSED_UNIT),
123     LintId::of(upper_case_acronyms::UPPER_CASE_ACRONYMS),
124     LintId::of(write::PRINTLN_EMPTY_STRING),
125     LintId::of(write::PRINT_LITERAL),
126     LintId::of(write::PRINT_WITH_NEWLINE),
127     LintId::of(write::WRITELN_EMPTY_STRING),
128     LintId::of(write::WRITE_LITERAL),
129     LintId::of(write::WRITE_WITH_NEWLINE),
130 ])