Skip to content

Commit 7901be1

Browse files
committed
Updated lints
1 parent 17f91d5 commit 7901be1

File tree

1 file changed

+152
-154
lines changed

1 file changed

+152
-154
lines changed

clippy_lints/src/lib.rs

Lines changed: 152 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -170,160 +170,158 @@ mod consts;
170170
mod utils;
171171

172172
// begin lints modules, do not remove this comment, it’s used in `update_lints`
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 dereference;
195-
mod derive;
196-
mod doc;
197-
mod double_comparison;
198-
mod double_parens;
199-
mod drop_bounds;
200-
mod drop_forget_ref;
201-
mod duration_subsec;
202-
mod else_if_without_else;
203-
mod empty_enum;
204-
mod entry;
205-
mod enum_clike;
206-
mod enum_variants;
207-
mod eq_op;
208-
mod erasing_op;
209-
mod escape;
210-
mod eta_reduction;
211-
mod eval_order_dependence;
212-
mod excessive_bools;
213-
mod exit;
214-
mod explicit_write;
215-
mod fallible_impl_from;
216-
mod float_literal;
217-
mod floating_point_arithmetic;
218-
mod format;
219-
mod formatting;
220-
mod functions;
221-
mod get_last_with_len;
222-
mod identity_conversion;
223-
mod identity_op;
224-
mod if_let_some_result;
225-
mod if_not_else;
226-
mod implicit_return;
227-
mod implicit_saturating_sub;
228-
mod indexing_slicing;
229-
mod infinite_iter;
230-
mod inherent_impl;
231-
mod inherent_to_string;
232-
mod inline_fn_without_body;
233-
mod int_plus_one;
234-
mod integer_division;
235-
mod items_after_statements;
236-
mod large_const_arrays;
237-
mod large_enum_variant;
238-
mod large_stack_arrays;
239-
mod len_zero;
240-
mod let_if_seq;
241-
mod let_underscore;
242-
mod lifetimes;
243-
mod literal_representation;
244-
mod loops;
245-
mod macro_use;
246-
mod main_recursion;
247-
mod map_clone;
248-
mod map_unit_fn;
249-
mod matches;
250-
mod mem_discriminant;
251-
mod mem_forget;
252-
mod mem_replace;
253-
mod methods;
254-
mod minmax;
255-
mod misc;
256-
mod misc_early;
257-
mod missing_const_for_fn;
258-
mod missing_doc;
259-
mod missing_inline;
260-
mod modulo_arithmetic;
261-
mod multiple_crate_versions;
262-
mod mut_key;
263-
mod mut_mut;
264-
mod mut_reference;
265-
mod mutable_debug_assertion;
266-
mod mutex_atomic;
267-
mod needless_bool;
268-
mod needless_borrow;
269-
mod needless_borrowed_ref;
270-
mod needless_continue;
271-
mod needless_pass_by_value;
272-
mod needless_update;
273-
mod neg_cmp_op_on_partial_ord;
274-
mod neg_multiply;
275-
mod new_without_default;
276-
mod no_effect;
277-
mod non_copy_const;
278-
mod non_expressive_names;
279-
mod open_options;
280-
mod option_env_unwrap;
281-
mod overflow_check_conditional;
282-
mod panic_unimplemented;
283-
mod partialeq_ne_impl;
284-
mod path_buf_push_overwrite;
285-
mod precedence;
286-
mod ptr;
287-
mod ptr_offset_with_cast;
288-
mod question_mark;
289-
mod ranges;
290-
mod redundant_clone;
291-
mod redundant_field_names;
292-
mod redundant_pattern_matching;
293-
mod redundant_pub_crate;
294-
mod redundant_static_lifetimes;
295-
mod reference;
296-
mod regex;
297-
mod returns;
298-
mod serde_api;
299-
mod shadow;
300-
mod single_component_path_imports;
301-
mod slow_vector_initialization;
302-
mod strings;
303-
mod suspicious_trait_impl;
304-
mod swap;
305-
mod tabs_in_doc_comments;
306-
mod temporary_assignment;
307-
mod to_digit_is_some;
308-
mod trait_bounds;
309-
mod transmute;
310-
mod transmuting_null;
311-
mod trivially_copy_pass_by_ref;
312-
mod try_err;
313-
mod types;
314-
mod unicode;
315-
mod unnamed_address;
316-
mod unsafe_removed_from_name;
317-
mod unused_io_amount;
318-
mod unused_self;
319-
mod unwrap;
320-
mod use_self;
321-
mod vec;
322-
mod verbose_file_reads;
323-
mod wildcard_dependencies;
324-
mod wildcard_imports;
325-
mod write;
326-
mod zero_div_zero;
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 implicit_saturating_sub;
227+
pub mod indexing_slicing;
228+
pub mod infinite_iter;
229+
pub mod inherent_impl;
230+
pub mod inherent_to_string;
231+
pub mod inline_fn_without_body;
232+
pub mod int_plus_one;
233+
pub mod integer_division;
234+
pub mod items_after_statements;
235+
pub mod large_enum_variant;
236+
pub mod large_stack_arrays;
237+
pub mod len_zero;
238+
pub mod let_if_seq;
239+
pub mod let_underscore;
240+
pub mod lifetimes;
241+
pub mod literal_representation;
242+
pub mod loops;
243+
pub mod macro_use;
244+
pub mod main_recursion;
245+
pub mod map_clone;
246+
pub mod map_unit_fn;
247+
pub mod matches;
248+
pub mod mem_discriminant;
249+
pub mod mem_forget;
250+
pub mod mem_replace;
251+
pub mod methods;
252+
pub mod minmax;
253+
pub mod misc;
254+
pub mod misc_early;
255+
pub mod missing_const_for_fn;
256+
pub mod missing_doc;
257+
pub mod missing_inline;
258+
pub mod modulo_arithmetic;
259+
pub mod multiple_crate_versions;
260+
pub mod mut_key;
261+
pub mod mut_mut;
262+
pub mod mut_reference;
263+
pub mod mutable_debug_assertion;
264+
pub mod mutex_atomic;
265+
pub mod needless_bool;
266+
pub mod needless_borrow;
267+
pub mod needless_borrowed_ref;
268+
pub mod needless_continue;
269+
pub mod needless_pass_by_value;
270+
pub mod needless_update;
271+
pub mod neg_cmp_op_on_partial_ord;
272+
pub mod neg_multiply;
273+
pub mod new_without_default;
274+
pub mod no_effect;
275+
pub mod non_copy_const;
276+
pub mod non_expressive_names;
277+
pub mod open_options;
278+
pub mod option_env_unwrap;
279+
pub mod overflow_check_conditional;
280+
pub mod panic_unimplemented;
281+
pub mod partialeq_ne_impl;
282+
pub mod path_buf_push_overwrite;
283+
pub mod precedence;
284+
pub mod ptr;
285+
pub mod ptr_offset_with_cast;
286+
pub mod question_mark;
287+
pub mod ranges;
288+
pub mod redundant_clone;
289+
pub mod redundant_field_names;
290+
pub mod redundant_pattern_matching;
291+
pub mod redundant_pub_crate;
292+
pub mod redundant_static_lifetimes;
293+
pub mod reference;
294+
pub mod regex;
295+
pub mod returns;
296+
pub mod serde_api;
297+
pub mod shadow;
298+
pub mod single_component_path_imports;
299+
pub mod slow_vector_initialization;
300+
pub mod strings;
301+
pub mod suspicious_trait_impl;
302+
pub mod swap;
303+
pub mod tabs_in_doc_comments;
304+
pub mod temporary_assignment;
305+
pub mod to_digit_is_some;
306+
pub mod trait_bounds;
307+
pub mod transmute;
308+
pub mod transmuting_null;
309+
pub mod trivially_copy_pass_by_ref;
310+
pub mod try_err;
311+
pub mod types;
312+
pub mod unicode;
313+
pub mod unnamed_address;
314+
pub mod unsafe_removed_from_name;
315+
pub mod unused_io_amount;
316+
pub mod unused_self;
317+
pub mod unwrap;
318+
pub mod use_self;
319+
pub mod vec;
320+
pub mod verbose_file_reads;
321+
pub mod wildcard_dependencies;
322+
pub mod wildcard_imports;
323+
pub mod write;
324+
pub mod zero_div_zero;
327325
// end lints modules, do not remove this comment, it’s used in `update_lints`
328326

329327
pub use crate::utils::conf::Conf;

0 commit comments

Comments
 (0)