summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/clippy_lints/src/lib.register_pedantic.rs
blob: 44e969585b50d4f7459971c7bc4f755c9461458a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// This file was generated by `cargo dev update_lints`.
// Use that command to update this file and do not edit by hand.
// Manual edits will be overwritten.

store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
    LintId::of(attrs::INLINE_ALWAYS),
    LintId::of(casts::BORROW_AS_PTR),
    LintId::of(casts::CAST_LOSSLESS),
    LintId::of(casts::CAST_POSSIBLE_TRUNCATION),
    LintId::of(casts::CAST_POSSIBLE_WRAP),
    LintId::of(casts::CAST_PRECISION_LOSS),
    LintId::of(casts::CAST_PTR_ALIGNMENT),
    LintId::of(casts::CAST_SIGN_LOSS),
    LintId::of(casts::PTR_AS_PTR),
    LintId::of(checked_conversions::CHECKED_CONVERSIONS),
    LintId::of(copies::SAME_FUNCTIONS_IN_IF_CONDITION),
    LintId::of(copy_iterator::COPY_ITERATOR),
    LintId::of(default::DEFAULT_TRAIT_ACCESS),
    LintId::of(dereference::EXPLICIT_DEREF_METHODS),
    LintId::of(dereference::REF_BINDING_TO_REFERENCE),
    LintId::of(derive::EXPL_IMPL_CLONE_ON_COPY),
    LintId::of(derive::UNSAFE_DERIVE_DESERIALIZE),
    LintId::of(doc::DOC_LINK_WITH_QUOTES),
    LintId::of(doc::DOC_MARKDOWN),
    LintId::of(doc::MISSING_ERRORS_DOC),
    LintId::of(doc::MISSING_PANICS_DOC),
    LintId::of(empty_enum::EMPTY_ENUM),
    LintId::of(enum_variants::MODULE_NAME_REPETITIONS),
    LintId::of(eta_reduction::REDUNDANT_CLOSURE_FOR_METHOD_CALLS),
    LintId::of(excessive_bools::FN_PARAMS_EXCESSIVE_BOOLS),
    LintId::of(excessive_bools::STRUCT_EXCESSIVE_BOOLS),
    LintId::of(format_args::UNINLINED_FORMAT_ARGS),
    LintId::of(functions::MUST_USE_CANDIDATE),
    LintId::of(functions::TOO_MANY_LINES),
    LintId::of(if_not_else::IF_NOT_ELSE),
    LintId::of(implicit_hasher::IMPLICIT_HASHER),
    LintId::of(inconsistent_struct_constructor::INCONSISTENT_STRUCT_CONSTRUCTOR),
    LintId::of(infinite_iter::MAYBE_INFINITE_ITER),
    LintId::of(invalid_upcast_comparisons::INVALID_UPCAST_COMPARISONS),
    LintId::of(items_after_statements::ITEMS_AFTER_STATEMENTS),
    LintId::of(iter_not_returning_iterator::ITER_NOT_RETURNING_ITERATOR),
    LintId::of(large_stack_arrays::LARGE_STACK_ARRAYS),
    LintId::of(let_underscore::LET_UNDERSCORE_DROP),
    LintId::of(literal_representation::LARGE_DIGIT_GROUPS),
    LintId::of(literal_representation::UNREADABLE_LITERAL),
    LintId::of(loops::EXPLICIT_INTO_ITER_LOOP),
    LintId::of(loops::EXPLICIT_ITER_LOOP),
    LintId::of(macro_use::MACRO_USE_IMPORTS),
    LintId::of(manual_assert::MANUAL_ASSERT),
    LintId::of(manual_instant_elapsed::MANUAL_INSTANT_ELAPSED),
    LintId::of(manual_string_new::MANUAL_STRING_NEW),
    LintId::of(matches::MATCH_BOOL),
    LintId::of(matches::MATCH_ON_VEC_ITEMS),
    LintId::of(matches::MATCH_SAME_ARMS),
    LintId::of(matches::MATCH_WILDCARD_FOR_SINGLE_VARIANTS),
    LintId::of(matches::MATCH_WILD_ERR_ARM),
    LintId::of(matches::SINGLE_MATCH_ELSE),
    LintId::of(methods::CASE_SENSITIVE_FILE_EXTENSION_COMPARISONS),
    LintId::of(methods::CLONED_INSTEAD_OF_COPIED),
    LintId::of(methods::FILTER_MAP_NEXT),
    LintId::of(methods::FLAT_MAP_OPTION),
    LintId::of(methods::FROM_ITER_INSTEAD_OF_COLLECT),
    LintId::of(methods::IMPLICIT_CLONE),
    LintId::of(methods::INEFFICIENT_TO_STRING),
    LintId::of(methods::MANUAL_OK_OR),
    LintId::of(methods::MAP_UNWRAP_OR),
    LintId::of(methods::NAIVE_BYTECOUNT),
    LintId::of(methods::STABLE_SORT_PRIMITIVE),
    LintId::of(methods::UNNECESSARY_JOIN),
    LintId::of(misc::USED_UNDERSCORE_BINDING),
    LintId::of(mismatching_type_param_order::MISMATCHING_TYPE_PARAM_ORDER),
    LintId::of(mut_mut::MUT_MUT),
    LintId::of(needless_continue::NEEDLESS_CONTINUE),
    LintId::of(needless_for_each::NEEDLESS_FOR_EACH),
    LintId::of(needless_pass_by_value::NEEDLESS_PASS_BY_VALUE),
    LintId::of(no_effect::NO_EFFECT_UNDERSCORE_BINDING),
    LintId::of(non_expressive_names::MANY_SINGLE_CHAR_NAMES),
    LintId::of(non_expressive_names::SIMILAR_NAMES),
    LintId::of(operators::FLOAT_CMP),
    LintId::of(operators::NEEDLESS_BITWISE_BOOL),
    LintId::of(operators::VERBOSE_BIT_MASK),
    LintId::of(pass_by_ref_or_value::LARGE_TYPES_PASSED_BY_VALUE),
    LintId::of(pass_by_ref_or_value::TRIVIALLY_COPY_PASS_BY_REF),
    LintId::of(ranges::RANGE_MINUS_ONE),
    LintId::of(ranges::RANGE_PLUS_ONE),
    LintId::of(redundant_else::REDUNDANT_ELSE),
    LintId::of(ref_option_ref::REF_OPTION_REF),
    LintId::of(return_self_not_must_use::RETURN_SELF_NOT_MUST_USE),
    LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
    LintId::of(strings::STRING_ADD_ASSIGN),
    LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
    LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
    LintId::of(transmute::TRANSMUTE_PTR_TO_PTR),
    LintId::of(types::LINKEDLIST),
    LintId::of(types::OPTION_OPTION),
    LintId::of(unicode::UNICODE_NOT_NFC),
    LintId::of(unnecessary_wraps::UNNECESSARY_WRAPS),
    LintId::of(unnested_or_patterns::UNNESTED_OR_PATTERNS),
    LintId::of(unused_async::UNUSED_ASYNC),
    LintId::of(unused_self::UNUSED_SELF),
    LintId::of(wildcard_imports::ENUM_GLOB_USE),
    LintId::of(wildcard_imports::WILDCARD_IMPORTS),
    LintId::of(zero_sized_map_values::ZERO_SIZED_MAP_VALUES),
])