-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Move code generated by update_lints
to includes
#7673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
50ea370
Move code generated by `update_lints` to includes
e6747df
Fix lint register code format
3f804ca
Move `update_lints` specific code out of `lib`
20abbd9
Add test module for `update_lints`
6035e05
Add includes to pre-commit hook
debb1f0
Fix comment in `update_lints`
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// 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_removed( | ||
"clippy::should_assert_eq", | ||
"`assert!()` will be more flexible with RFC 2011", | ||
); | ||
store.register_removed( | ||
"clippy::extend_from_slice", | ||
"`.extend_from_slice(_)` is a faster way to extend a Vec by a slice", | ||
); | ||
store.register_removed( | ||
"clippy::range_step_by_zero", | ||
"`iterator.step_by(0)` panics nowadays", | ||
); | ||
store.register_removed( | ||
"clippy::unstable_as_slice", | ||
"`Vec::as_slice` has been stabilized in 1.7", | ||
); | ||
store.register_removed( | ||
"clippy::unstable_as_mut_slice", | ||
"`Vec::as_mut_slice` has been stabilized in 1.7", | ||
); | ||
store.register_removed( | ||
"clippy::misaligned_transmute", | ||
"this lint has been split into cast_ptr_alignment and transmute_ptr_to_ptr", | ||
); | ||
store.register_removed( | ||
"clippy::assign_ops", | ||
"using compound assignment operators (e.g., `+=`) is harmless", | ||
); | ||
store.register_removed( | ||
"clippy::if_let_redundant_pattern_matching", | ||
"this lint has been changed to redundant_pattern_matching", | ||
); | ||
store.register_removed( | ||
"clippy::unsafe_vector_initialization", | ||
"the replacement suggested by this lint had substantially different behavior", | ||
); | ||
store.register_removed( | ||
"clippy::unused_collect", | ||
"`collect` has been marked as #[must_use] in rustc and that covers all cases of this lint", | ||
); | ||
store.register_removed( | ||
"clippy::replace_consts", | ||
"associated-constants `MIN`/`MAX` of integers are preferred to `{min,max}_value()` and module constants", | ||
); | ||
store.register_removed( | ||
"clippy::regex_macro", | ||
"the regex! macro has been removed from the regex crate in 2018", | ||
); | ||
store.register_removed( | ||
"clippy::find_map", | ||
"this lint has been replaced by `manual_find_map`, a more specific lint", | ||
); | ||
store.register_removed( | ||
"clippy::filter_map", | ||
"this lint has been replaced by `manual_filter_map`, a more specific lint", | ||
); | ||
store.register_removed( | ||
"clippy::pub_enum_variant_names", | ||
"set the `avoid-breaking-exported-api` config option to `false` to enable the `enum_variant_names` lint for public items", | ||
); | ||
store.register_removed( | ||
"clippy::wrong_pub_self_convention", | ||
"set the `avoid-breaking-exported-api` config option to `false` to enable the `wrong_self_convention` lint for public items", | ||
); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
// 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. | ||
|
||
mod absurd_extreme_comparisons; | ||
mod approx_const; | ||
mod arithmetic; | ||
mod as_conversions; | ||
mod asm_syntax; | ||
mod assertions_on_constants; | ||
mod assign_ops; | ||
mod async_yields_async; | ||
mod attrs; | ||
mod await_holding_invalid; | ||
mod bit_mask; | ||
mod blacklisted_name; | ||
mod blocks_in_if_conditions; | ||
mod bool_assert_comparison; | ||
mod booleans; | ||
mod bytecount; | ||
mod cargo_common_metadata; | ||
mod case_sensitive_file_extension_comparisons; | ||
mod casts; | ||
mod checked_conversions; | ||
mod cognitive_complexity; | ||
mod collapsible_if; | ||
mod collapsible_match; | ||
mod comparison_chain; | ||
mod copies; | ||
mod copy_iterator; | ||
mod create_dir; | ||
mod dbg_macro; | ||
mod default; | ||
mod default_numeric_fallback; | ||
mod dereference; | ||
mod derivable_impls; | ||
mod derive; | ||
mod disallowed_method; | ||
mod disallowed_script_idents; | ||
mod disallowed_type; | ||
mod doc; | ||
mod double_comparison; | ||
mod double_parens; | ||
mod drop_forget_ref; | ||
mod duration_subsec; | ||
mod else_if_without_else; | ||
mod empty_enum; | ||
mod entry; | ||
mod enum_clike; | ||
mod enum_variants; | ||
mod eq_op; | ||
mod erasing_op; | ||
mod escape; | ||
mod eta_reduction; | ||
mod eval_order_dependence; | ||
mod excessive_bools; | ||
mod exhaustive_items; | ||
mod exit; | ||
mod explicit_write; | ||
mod fallible_impl_from; | ||
mod feature_name; | ||
mod float_equality_without_abs; | ||
mod float_literal; | ||
mod floating_point_arithmetic; | ||
mod format; | ||
mod formatting; | ||
mod from_over_into; | ||
mod from_str_radix_10; | ||
mod functions; | ||
mod future_not_send; | ||
mod get_last_with_len; | ||
mod identity_op; | ||
mod if_let_mutex; | ||
mod if_not_else; | ||
mod if_then_panic; | ||
mod if_then_some_else_none; | ||
mod implicit_hasher; | ||
mod implicit_return; | ||
mod implicit_saturating_sub; | ||
mod inconsistent_struct_constructor; | ||
mod indexing_slicing; | ||
mod infinite_iter; | ||
mod inherent_impl; | ||
mod inherent_to_string; | ||
mod inline_fn_without_body; | ||
mod int_plus_one; | ||
mod integer_division; | ||
mod invalid_upcast_comparisons; | ||
mod items_after_statements; | ||
mod iter_not_returning_iterator; | ||
mod large_const_arrays; | ||
mod large_enum_variant; | ||
mod large_stack_arrays; | ||
mod len_zero; | ||
mod let_if_seq; | ||
mod let_underscore; | ||
mod lifetimes; | ||
mod literal_representation; | ||
mod loops; | ||
mod macro_use; | ||
mod main_recursion; | ||
mod manual_async_fn; | ||
mod manual_map; | ||
mod manual_non_exhaustive; | ||
mod manual_ok_or; | ||
mod manual_strip; | ||
mod manual_unwrap_or; | ||
mod map_clone; | ||
mod map_err_ignore; | ||
mod map_unit_fn; | ||
mod match_on_vec_items; | ||
mod match_result_ok; | ||
mod matches; | ||
mod mem_discriminant; | ||
mod mem_forget; | ||
mod mem_replace; | ||
mod methods; | ||
mod minmax; | ||
mod misc; | ||
mod misc_early; | ||
mod missing_const_for_fn; | ||
mod missing_doc; | ||
mod missing_enforced_import_rename; | ||
mod missing_inline; | ||
mod module_style; | ||
mod modulo_arithmetic; | ||
mod multiple_crate_versions; | ||
mod mut_key; | ||
mod mut_mut; | ||
mod mut_mutex_lock; | ||
mod mut_reference; | ||
mod mutable_debug_assertion; | ||
mod mutex_atomic; | ||
mod needless_arbitrary_self_type; | ||
mod needless_bitwise_bool; | ||
mod needless_bool; | ||
mod needless_borrow; | ||
mod needless_borrowed_ref; | ||
mod needless_continue; | ||
mod needless_for_each; | ||
mod needless_option_as_deref; | ||
mod needless_pass_by_value; | ||
mod needless_question_mark; | ||
mod needless_update; | ||
mod neg_cmp_op_on_partial_ord; | ||
mod neg_multiply; | ||
mod new_without_default; | ||
mod no_effect; | ||
mod non_copy_const; | ||
mod non_expressive_names; | ||
mod non_octal_unix_permissions; | ||
mod nonstandard_macro_braces; | ||
mod open_options; | ||
mod option_env_unwrap; | ||
mod option_if_let_else; | ||
mod overflow_check_conditional; | ||
mod panic_in_result_fn; | ||
mod panic_unimplemented; | ||
mod partialeq_ne_impl; | ||
mod pass_by_ref_or_value; | ||
mod path_buf_push_overwrite; | ||
mod pattern_type_mismatch; | ||
mod precedence; | ||
mod ptr; | ||
mod ptr_eq; | ||
mod ptr_offset_with_cast; | ||
mod question_mark; | ||
mod ranges; | ||
mod redundant_clone; | ||
mod redundant_closure_call; | ||
mod redundant_else; | ||
mod redundant_field_names; | ||
mod redundant_pub_crate; | ||
mod redundant_slicing; | ||
mod redundant_static_lifetimes; | ||
mod ref_option_ref; | ||
mod reference; | ||
mod regex; | ||
mod repeat_once; | ||
mod returns; | ||
mod same_name_method; | ||
mod self_assignment; | ||
mod self_named_constructors; | ||
mod semicolon_if_nothing_returned; | ||
mod serde_api; | ||
mod shadow; | ||
mod single_component_path_imports; | ||
mod size_of_in_element_count; | ||
mod slow_vector_initialization; | ||
mod stable_sort_primitive; | ||
mod strings; | ||
mod strlen_on_c_strings; | ||
mod suspicious_operation_groupings; | ||
mod suspicious_trait_impl; | ||
mod swap; | ||
mod tabs_in_doc_comments; | ||
mod temporary_assignment; | ||
mod to_digit_is_some; | ||
mod to_string_in_display; | ||
mod trait_bounds; | ||
mod transmute; | ||
mod transmuting_null; | ||
mod try_err; | ||
mod types; | ||
mod undropped_manually_drops; | ||
mod unicode; | ||
mod unit_return_expecting_ord; | ||
mod unit_types; | ||
mod unnamed_address; | ||
mod unnecessary_self_imports; | ||
mod unnecessary_sort_by; | ||
mod unnecessary_wraps; | ||
mod unnested_or_patterns; | ||
mod unsafe_removed_from_name; | ||
mod unused_async; | ||
mod unused_io_amount; | ||
mod unused_self; | ||
mod unused_unit; | ||
mod unwrap; | ||
mod unwrap_in_result; | ||
mod upper_case_acronyms; | ||
mod use_self; | ||
mod useless_conversion; | ||
mod vec; | ||
mod vec_init_then_push; | ||
mod vec_resize_to_zero; | ||
mod verbose_file_reads; | ||
mod wildcard_dependencies; | ||
mod wildcard_imports; | ||
mod write; | ||
mod zero_div_zero; | ||
mod zero_sized_map_values; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.