Skip to content

Commit 984d466

Browse files
committed
Auto merge of #7673 - mikerite:include-generated-code, r=giraffate
Move code generated by `update_lints` to includes Move code generated by `update_lints` to includes changelog: none
2 parents 685b773 + debb1f0 commit 984d466

18 files changed

+2299
-2213
lines changed

clippy_dev/src/lib.rs

+1-522
Large diffs are not rendered by default.

clippy_dev/src/update_lints.rs

+618-69
Large diffs are not rendered by default.

clippy_lints/src/lib.deprecated.rs

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
{
6+
store.register_removed(
7+
"clippy::should_assert_eq",
8+
"`assert!()` will be more flexible with RFC 2011",
9+
);
10+
store.register_removed(
11+
"clippy::extend_from_slice",
12+
"`.extend_from_slice(_)` is a faster way to extend a Vec by a slice",
13+
);
14+
store.register_removed(
15+
"clippy::range_step_by_zero",
16+
"`iterator.step_by(0)` panics nowadays",
17+
);
18+
store.register_removed(
19+
"clippy::unstable_as_slice",
20+
"`Vec::as_slice` has been stabilized in 1.7",
21+
);
22+
store.register_removed(
23+
"clippy::unstable_as_mut_slice",
24+
"`Vec::as_mut_slice` has been stabilized in 1.7",
25+
);
26+
store.register_removed(
27+
"clippy::misaligned_transmute",
28+
"this lint has been split into cast_ptr_alignment and transmute_ptr_to_ptr",
29+
);
30+
store.register_removed(
31+
"clippy::assign_ops",
32+
"using compound assignment operators (e.g., `+=`) is harmless",
33+
);
34+
store.register_removed(
35+
"clippy::if_let_redundant_pattern_matching",
36+
"this lint has been changed to redundant_pattern_matching",
37+
);
38+
store.register_removed(
39+
"clippy::unsafe_vector_initialization",
40+
"the replacement suggested by this lint had substantially different behavior",
41+
);
42+
store.register_removed(
43+
"clippy::unused_collect",
44+
"`collect` has been marked as #[must_use] in rustc and that covers all cases of this lint",
45+
);
46+
store.register_removed(
47+
"clippy::replace_consts",
48+
"associated-constants `MIN`/`MAX` of integers are preferred to `{min,max}_value()` and module constants",
49+
);
50+
store.register_removed(
51+
"clippy::regex_macro",
52+
"the regex! macro has been removed from the regex crate in 2018",
53+
);
54+
store.register_removed(
55+
"clippy::find_map",
56+
"this lint has been replaced by `manual_find_map`, a more specific lint",
57+
);
58+
store.register_removed(
59+
"clippy::filter_map",
60+
"this lint has been replaced by `manual_filter_map`, a more specific lint",
61+
);
62+
store.register_removed(
63+
"clippy::pub_enum_variant_names",
64+
"set the `avoid-breaking-exported-api` config option to `false` to enable the `enum_variant_names` lint for public items",
65+
);
66+
store.register_removed(
67+
"clippy::wrong_pub_self_convention",
68+
"set the `avoid-breaking-exported-api` config option to `false` to enable the `wrong_self_convention` lint for public items",
69+
);
70+
}

clippy_lints/src/lib.mods.rs

+232
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
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+
mod absurd_extreme_comparisons;
6+
mod approx_const;
7+
mod arithmetic;
8+
mod as_conversions;
9+
mod asm_syntax;
10+
mod assertions_on_constants;
11+
mod assign_ops;
12+
mod async_yields_async;
13+
mod attrs;
14+
mod await_holding_invalid;
15+
mod bit_mask;
16+
mod blacklisted_name;
17+
mod blocks_in_if_conditions;
18+
mod bool_assert_comparison;
19+
mod booleans;
20+
mod bytecount;
21+
mod cargo_common_metadata;
22+
mod case_sensitive_file_extension_comparisons;
23+
mod casts;
24+
mod checked_conversions;
25+
mod cognitive_complexity;
26+
mod collapsible_if;
27+
mod collapsible_match;
28+
mod comparison_chain;
29+
mod copies;
30+
mod copy_iterator;
31+
mod create_dir;
32+
mod dbg_macro;
33+
mod default;
34+
mod default_numeric_fallback;
35+
mod dereference;
36+
mod derivable_impls;
37+
mod derive;
38+
mod disallowed_method;
39+
mod disallowed_script_idents;
40+
mod disallowed_type;
41+
mod doc;
42+
mod double_comparison;
43+
mod double_parens;
44+
mod drop_forget_ref;
45+
mod duration_subsec;
46+
mod else_if_without_else;
47+
mod empty_enum;
48+
mod entry;
49+
mod enum_clike;
50+
mod enum_variants;
51+
mod eq_op;
52+
mod erasing_op;
53+
mod escape;
54+
mod eta_reduction;
55+
mod eval_order_dependence;
56+
mod excessive_bools;
57+
mod exhaustive_items;
58+
mod exit;
59+
mod explicit_write;
60+
mod fallible_impl_from;
61+
mod feature_name;
62+
mod float_equality_without_abs;
63+
mod float_literal;
64+
mod floating_point_arithmetic;
65+
mod format;
66+
mod formatting;
67+
mod from_over_into;
68+
mod from_str_radix_10;
69+
mod functions;
70+
mod future_not_send;
71+
mod get_last_with_len;
72+
mod identity_op;
73+
mod if_let_mutex;
74+
mod if_not_else;
75+
mod if_then_panic;
76+
mod if_then_some_else_none;
77+
mod implicit_hasher;
78+
mod implicit_return;
79+
mod implicit_saturating_sub;
80+
mod inconsistent_struct_constructor;
81+
mod indexing_slicing;
82+
mod infinite_iter;
83+
mod inherent_impl;
84+
mod inherent_to_string;
85+
mod inline_fn_without_body;
86+
mod int_plus_one;
87+
mod integer_division;
88+
mod invalid_upcast_comparisons;
89+
mod items_after_statements;
90+
mod iter_not_returning_iterator;
91+
mod large_const_arrays;
92+
mod large_enum_variant;
93+
mod large_stack_arrays;
94+
mod len_zero;
95+
mod let_if_seq;
96+
mod let_underscore;
97+
mod lifetimes;
98+
mod literal_representation;
99+
mod loops;
100+
mod macro_use;
101+
mod main_recursion;
102+
mod manual_async_fn;
103+
mod manual_map;
104+
mod manual_non_exhaustive;
105+
mod manual_ok_or;
106+
mod manual_strip;
107+
mod manual_unwrap_or;
108+
mod map_clone;
109+
mod map_err_ignore;
110+
mod map_unit_fn;
111+
mod match_on_vec_items;
112+
mod match_result_ok;
113+
mod matches;
114+
mod mem_discriminant;
115+
mod mem_forget;
116+
mod mem_replace;
117+
mod methods;
118+
mod minmax;
119+
mod misc;
120+
mod misc_early;
121+
mod missing_const_for_fn;
122+
mod missing_doc;
123+
mod missing_enforced_import_rename;
124+
mod missing_inline;
125+
mod module_style;
126+
mod modulo_arithmetic;
127+
mod multiple_crate_versions;
128+
mod mut_key;
129+
mod mut_mut;
130+
mod mut_mutex_lock;
131+
mod mut_reference;
132+
mod mutable_debug_assertion;
133+
mod mutex_atomic;
134+
mod needless_arbitrary_self_type;
135+
mod needless_bitwise_bool;
136+
mod needless_bool;
137+
mod needless_borrow;
138+
mod needless_borrowed_ref;
139+
mod needless_continue;
140+
mod needless_for_each;
141+
mod needless_option_as_deref;
142+
mod needless_pass_by_value;
143+
mod needless_question_mark;
144+
mod needless_update;
145+
mod neg_cmp_op_on_partial_ord;
146+
mod neg_multiply;
147+
mod new_without_default;
148+
mod no_effect;
149+
mod non_copy_const;
150+
mod non_expressive_names;
151+
mod non_octal_unix_permissions;
152+
mod nonstandard_macro_braces;
153+
mod open_options;
154+
mod option_env_unwrap;
155+
mod option_if_let_else;
156+
mod overflow_check_conditional;
157+
mod panic_in_result_fn;
158+
mod panic_unimplemented;
159+
mod partialeq_ne_impl;
160+
mod pass_by_ref_or_value;
161+
mod path_buf_push_overwrite;
162+
mod pattern_type_mismatch;
163+
mod precedence;
164+
mod ptr;
165+
mod ptr_eq;
166+
mod ptr_offset_with_cast;
167+
mod question_mark;
168+
mod ranges;
169+
mod redundant_clone;
170+
mod redundant_closure_call;
171+
mod redundant_else;
172+
mod redundant_field_names;
173+
mod redundant_pub_crate;
174+
mod redundant_slicing;
175+
mod redundant_static_lifetimes;
176+
mod ref_option_ref;
177+
mod reference;
178+
mod regex;
179+
mod repeat_once;
180+
mod returns;
181+
mod same_name_method;
182+
mod self_assignment;
183+
mod self_named_constructors;
184+
mod semicolon_if_nothing_returned;
185+
mod serde_api;
186+
mod shadow;
187+
mod single_component_path_imports;
188+
mod size_of_in_element_count;
189+
mod slow_vector_initialization;
190+
mod stable_sort_primitive;
191+
mod strings;
192+
mod strlen_on_c_strings;
193+
mod suspicious_operation_groupings;
194+
mod suspicious_trait_impl;
195+
mod swap;
196+
mod tabs_in_doc_comments;
197+
mod temporary_assignment;
198+
mod to_digit_is_some;
199+
mod to_string_in_display;
200+
mod trait_bounds;
201+
mod transmute;
202+
mod transmuting_null;
203+
mod try_err;
204+
mod types;
205+
mod undropped_manually_drops;
206+
mod unicode;
207+
mod unit_return_expecting_ord;
208+
mod unit_types;
209+
mod unnamed_address;
210+
mod unnecessary_self_imports;
211+
mod unnecessary_sort_by;
212+
mod unnecessary_wraps;
213+
mod unnested_or_patterns;
214+
mod unsafe_removed_from_name;
215+
mod unused_async;
216+
mod unused_io_amount;
217+
mod unused_self;
218+
mod unused_unit;
219+
mod unwrap;
220+
mod unwrap_in_result;
221+
mod upper_case_acronyms;
222+
mod use_self;
223+
mod useless_conversion;
224+
mod vec;
225+
mod vec_init_then_push;
226+
mod vec_resize_to_zero;
227+
mod verbose_file_reads;
228+
mod wildcard_dependencies;
229+
mod wildcard_imports;
230+
mod write;
231+
mod zero_div_zero;
232+
mod zero_sized_map_values;

0 commit comments

Comments
 (0)