@@ -170,157 +170,157 @@ mod consts;
170170mod utils;
171171
172172// begin lints modules, do not remove this comment, it’s used in `update_lints`
173- pub mod approx_const;
174- pub mod arithmetic;
175- pub mod as_conversions;
176- pub mod assertions_on_constants;
177- pub mod assign_ops;
178- pub mod atomic_ordering;
179- pub mod attrs;
180- pub mod bit_mask;
181- pub mod blacklisted_name;
182- pub mod block_in_if_condition;
183- pub mod booleans;
184- pub mod bytecount;
185- pub mod cargo_common_metadata;
186- pub mod checked_conversions;
187- pub mod cognitive_complexity;
188- pub mod collapsible_if;
189- pub mod comparison_chain;
190- pub mod copies;
191- pub mod copy_iterator;
192- pub mod dbg_macro;
193- pub mod default_trait_access;
194- pub mod derive;
195- pub mod doc;
196- pub mod double_comparison;
197- pub mod double_parens;
198- pub mod drop_bounds;
199- pub mod drop_forget_ref;
200- pub mod duration_subsec;
201- pub mod else_if_without_else;
202- pub mod empty_enum;
203- pub mod entry;
204- pub mod enum_clike;
205- pub mod enum_variants;
206- pub mod eq_op;
207- pub mod erasing_op;
208- pub mod escape;
209- pub mod eta_reduction;
210- pub mod eval_order_dependence;
211- pub mod excessive_bools;
212- pub mod exit;
213- pub mod explicit_write;
214- pub mod fallible_impl_from;
215- pub mod float_literal;
216- pub mod floating_point_arithmetic;
217- pub mod format;
218- pub mod formatting;
219- pub mod functions;
220- pub mod get_last_with_len;
221- pub mod identity_conversion;
222- pub mod identity_op;
223- pub mod if_let_some_result;
224- pub mod if_not_else;
225- pub mod implicit_return;
226- pub mod indexing_slicing;
227- pub mod infinite_iter;
228- pub mod inherent_impl;
229- pub mod inherent_to_string;
230- pub mod inline_fn_without_body;
231- pub mod int_plus_one;
232- pub mod integer_division;
233- pub mod items_after_statements;
234- pub mod large_enum_variant;
235- pub mod large_stack_arrays;
236- pub mod len_zero;
237- pub mod let_if_seq;
238- pub mod let_underscore;
239- pub mod lifetimes;
240- pub mod literal_representation;
241- pub mod loops;
242- pub mod macro_use;
243- pub mod main_recursion;
244- pub mod map_clone;
245- pub mod map_unit_fn;
246- pub mod matches;
247- pub mod mem_discriminant;
248- pub mod mem_forget;
249- pub mod mem_replace;
250- pub mod methods;
251- pub mod minmax;
252- pub mod misc;
253- pub mod misc_early;
254- pub mod missing_const_for_fn;
255- pub mod missing_doc;
256- pub mod missing_inline;
257- pub mod modulo_arithmetic;
258- pub mod multiple_crate_versions;
259- pub mod mut_key;
260- pub mod mut_mut;
261- pub mod mut_reference;
262- pub mod mutable_debug_assertion;
263- pub mod mutex_atomic;
264- pub mod needless_bool;
265- pub mod needless_borrow;
266- pub mod needless_borrowed_ref;
267- pub mod needless_continue;
268- pub mod needless_pass_by_value;
269- pub mod needless_update;
270- pub mod neg_cmp_op_on_partial_ord;
271- pub mod neg_multiply;
272- pub mod new_without_default;
273- pub mod no_effect;
274- pub mod non_copy_const;
275- pub mod non_expressive_names;
276- pub mod open_options;
277- pub mod option_env_unwrap;
278- pub mod overflow_check_conditional;
279- pub mod panic_unimplemented;
280- pub mod partialeq_ne_impl;
281- pub mod path_buf_push_overwrite;
282- pub mod precedence;
283- pub mod ptr;
284- pub mod ptr_offset_with_cast;
285- pub mod question_mark;
286- pub mod ranges;
287- pub mod redundant_clone;
288- pub mod redundant_field_names;
289- pub mod redundant_pattern_matching;
290- pub mod redundant_pub_crate;
291- pub mod redundant_static_lifetimes;
292- pub mod reference;
293- pub mod regex;
294- pub mod returns;
295- pub mod serde_api;
296- pub mod shadow;
297- pub mod single_component_path_imports;
298- pub mod slow_vector_initialization;
299- pub mod strings;
300- pub mod suspicious_trait_impl;
301- pub mod swap;
302- pub mod tabs_in_doc_comments;
303- pub mod temporary_assignment;
304- pub mod to_digit_is_some;
305- pub mod trait_bounds;
306- pub mod transmute;
307- pub mod transmuting_null;
308- pub mod trivially_copy_pass_by_ref;
309- pub mod try_err;
310- pub mod types;
311- pub mod unicode;
312- pub mod unnamed_address;
313- pub mod unsafe_removed_from_name;
314- pub mod unused_io_amount;
315- pub mod unused_self;
316- pub mod unwrap;
317- pub mod use_self;
318- pub mod vec;
319- pub mod verbose_file_reads;
320- pub mod wildcard_dependencies;
321- pub mod wildcard_imports;
322- pub mod write;
323- pub mod zero_div_zero;
173+ mod approx_const;
174+ mod arithmetic;
175+ mod as_conversions;
176+ mod assertions_on_constants;
177+ mod assign_ops;
178+ mod atomic_ordering;
179+ mod attrs;
180+ mod bit_mask;
181+ mod blacklisted_name;
182+ mod block_in_if_condition;
183+ mod booleans;
184+ mod bytecount;
185+ mod cargo_common_metadata;
186+ mod checked_conversions;
187+ mod cognitive_complexity;
188+ mod collapsible_if;
189+ mod comparison_chain;
190+ mod copies;
191+ mod copy_iterator;
192+ mod dbg_macro;
193+ mod default_trait_access;
194+ mod derive;
195+ mod doc;
196+ mod double_comparison;
197+ mod double_parens;
198+ mod drop_bounds;
199+ mod drop_forget_ref;
200+ mod duration_subsec;
201+ mod else_if_without_else;
202+ mod empty_enum;
203+ mod entry;
204+ mod enum_clike;
205+ mod enum_variants;
206+ mod eq_op;
207+ mod erasing_op;
208+ mod escape;
209+ mod eta_reduction;
210+ mod eval_order_dependence;
211+ mod excessive_bools;
212+ mod exit;
213+ mod explicit_write;
214+ mod fallible_impl_from;
215+ mod float_literal;
216+ mod floating_point_arithmetic;
217+ mod format;
218+ mod formatting;
219+ mod functions;
220+ mod get_last_with_len;
221+ mod identity_conversion;
222+ mod identity_op;
223+ mod if_let_some_result;
224+ mod if_not_else;
225+ mod implicit_return;
226+ mod indexing_slicing;
227+ mod infinite_iter;
228+ mod inherent_impl;
229+ mod inherent_to_string;
230+ mod inline_fn_without_body;
231+ mod int_plus_one;
232+ mod integer_division;
233+ mod items_after_statements;
234+ mod large_enum_variant;
235+ mod large_stack_arrays;
236+ mod len_zero;
237+ mod let_if_seq;
238+ mod let_underscore;
239+ mod lifetimes;
240+ mod literal_representation;
241+ mod loops;
242+ mod macro_use;
243+ mod main_recursion;
244+ mod map_clone;
245+ mod map_unit_fn;
246+ mod matches;
247+ mod mem_discriminant;
248+ mod mem_forget;
249+ mod mem_replace;
250+ mod methods;
251+ mod minmax;
252+ mod misc;
253+ mod misc_early;
254+ mod missing_const_for_fn;
255+ mod missing_doc;
256+ mod missing_inline;
257+ mod modulo_arithmetic;
258+ mod multiple_crate_versions;
259+ mod mut_key;
260+ mod mut_mut;
261+ mod mut_reference;
262+ mod mutable_debug_assertion;
263+ mod mutex_atomic;
264+ mod needless_bool;
265+ mod needless_borrow;
266+ mod needless_borrowed_ref;
267+ mod needless_continue;
268+ mod needless_pass_by_value;
269+ mod needless_update;
270+ mod neg_cmp_op_on_partial_ord;
271+ mod neg_multiply;
272+ mod new_without_default;
273+ mod no_effect;
274+ mod non_copy_const;
275+ mod non_expressive_names;
276+ mod open_options;
277+ mod option_env_unwrap;
278+ mod overflow_check_conditional;
279+ mod panic_unimplemented;
280+ mod partialeq_ne_impl;
281+ mod path_buf_push_overwrite;
282+ mod precedence;
283+ mod ptr;
284+ mod ptr_offset_with_cast;
285+ mod question_mark;
286+ mod ranges;
287+ mod redundant_clone;
288+ mod redundant_field_names;
289+ mod redundant_pattern_matching;
290+ mod redundant_pub_crate;
291+ mod redundant_static_lifetimes;
292+ mod reference;
293+ mod regex;
294+ mod returns;
295+ mod serde_api;
296+ mod shadow;
297+ mod single_component_path_imports;
298+ mod slow_vector_initialization;
299+ mod strings;
300+ mod suspicious_trait_impl;
301+ mod swap;
302+ mod tabs_in_doc_comments;
303+ mod temporary_assignment;
304+ mod to_digit_is_some;
305+ mod trait_bounds;
306+ mod transmute;
307+ mod transmuting_null;
308+ mod trivially_copy_pass_by_ref;
309+ mod try_err;
310+ mod types;
311+ mod unicode;
312+ mod unnamed_address;
313+ mod unsafe_removed_from_name;
314+ mod unused_io_amount;
315+ mod unused_self;
316+ mod unwrap;
317+ mod use_self;
318+ mod vec;
319+ mod verbose_file_reads;
320+ mod wildcard_dependencies;
321+ mod wildcard_imports;
322+ mod write;
323+ mod zero_div_zero;
324324// end lints modules, do not remove this comment, it’s used in `update_lints`
325325
326326pub use crate :: utils:: conf:: Conf ;
@@ -828,6 +828,12 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
828828 & unwrap:: PANICKING_UNWRAP ,
829829 & unwrap:: UNNECESSARY_UNWRAP ,
830830 & use_self:: USE_SELF ,
831+ & utils:: internal_lints:: CLIPPY_LINTS_INTERNAL ,
832+ & utils:: internal_lints:: COMPILER_LINT_FUNCTIONS ,
833+ & utils:: internal_lints:: DEFAULT_LINT ,
834+ & utils:: internal_lints:: LINT_WITHOUT_LINT_PASS ,
835+ & utils:: internal_lints:: OUTER_EXPN_EXPN_DATA ,
836+ & utils:: internal_lints:: PRODUCE_ICE ,
831837 & vec:: USELESS_VEC ,
832838 & verbose_file_reads:: VERBOSE_FILE_READS ,
833839 & wildcard_dependencies:: WILDCARD_DEPENDENCIES ,
0 commit comments