Skip to content

Commit f7378da

Browse files
committed
Add renamed lints to the changelog link list
1 parent 4fd2968 commit f7378da

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -3290,13 +3290,16 @@ Released 2018-09-13
32903290
[`bind_instead_of_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
32913291
[`blacklisted_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name
32923292
[`blanket_clippy_restriction_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints
3293+
[`block_in_if_condition_expr`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_expr
3294+
[`block_in_if_condition_stmt`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt
32933295
[`blocks_in_if_conditions`]: https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_if_conditions
32943296
[`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
32953297
[`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
32963298
[`borrow_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
32973299
[`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
32983300
[`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
32993301
[`box_collection`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
3302+
[`box_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_vec
33003303
[`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
33013304
[`branches_sharing_code`]: https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
33023305
[`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
@@ -3332,10 +3335,12 @@ Released 2018-09-13
33323335
[`collapsible_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
33333336
[`comparison_chain`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
33343337
[`comparison_to_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
3338+
[`const_static_lifetime`]: https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime
33353339
[`copy_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#copy_iterator
33363340
[`crate_in_macro_def`]: https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
33373341
[`create_dir`]: https://rust-lang.github.io/rust-clippy/master/index.html#create_dir
33383342
[`crosspointer_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#crosspointer_transmute
3343+
[`cyclomatic_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity
33393344
[`dbg_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro
33403345
[`debug_assert_with_mut_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#debug_assert_with_mut_call
33413346
[`decimal_literal_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#decimal_literal_representation
@@ -3351,15 +3356,18 @@ Released 2018-09-13
33513356
[`derive_hash_xor_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
33523357
[`derive_ord_xor_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_ord_xor_partial_ord
33533358
[`derive_partial_eq_without_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
3359+
[`disallowed_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
33543360
[`disallowed_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods
33553361
[`disallowed_script_idents`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_script_idents
3362+
[`disallowed_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type
33563363
[`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
33573364
[`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
33583365
[`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
33593366
[`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
33603367
[`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
33613368
[`double_neg`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_neg
33623369
[`double_parens`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_parens
3370+
[`drop_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_bounds
33633371
[`drop_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy
33643372
[`drop_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop
33653373
[`drop_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref
@@ -3379,6 +3387,7 @@ Released 2018-09-13
33793387
[`equatable_if_let`]: https://rust-lang.github.io/rust-clippy/master/index.html#equatable_if_let
33803388
[`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
33813389
[`err_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#err_expect
3390+
[`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
33823391
[`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
33833392
[`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
33843393
[`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
@@ -3414,6 +3423,8 @@ Released 2018-09-13
34143423
[`fn_to_numeric_cast_any`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_any
34153424
[`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
34163425
[`for_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map
3426+
[`for_loop_over_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_option
3427+
[`for_loop_over_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_result
34173428
[`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
34183429
[`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
34193430
[`forget_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_non_drop
@@ -3426,9 +3437,11 @@ Released 2018-09-13
34263437
[`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
34273438
[`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
34283439
[`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
3440+
[`identity_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
34293441
[`identity_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
34303442
[`if_let_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
34313443
[`if_let_redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
3444+
[`if_let_some_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_some_result
34323445
[`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
34333446
[`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
34343447
[`if_then_some_else_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
@@ -3457,8 +3470,11 @@ Released 2018-09-13
34573470
[`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
34583471
[`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
34593472
[`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
3473+
[`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
34603474
[`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
3475+
[`invalid_atomic_ordering`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_atomic_ordering
34613476
[`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
3477+
[`invalid_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_ref
34623478
[`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
34633479
[`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
34643480
[`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
@@ -3532,6 +3548,7 @@ Released 2018-09-13
35323548
[`match_wild_err_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
35333549
[`match_wildcard_for_single_variants`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
35343550
[`maybe_infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_infinite_iter
3551+
[`mem_discriminant_non_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_discriminant_non_enum
35353552
[`mem_forget`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
35363553
[`mem_replace_option_with_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
35373554
[`mem_replace_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
@@ -3594,6 +3611,7 @@ Released 2018-09-13
35943611
[`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
35953612
[`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
35963613
[`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
3614+
[`new_without_default_derive`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive
35973615
[`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
35983616
[`no_effect_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
35993617
[`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
@@ -3607,19 +3625,25 @@ Released 2018-09-13
36073625
[`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
36083626
[`only_used_in_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
36093627
[`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
3628+
[`option_and_then_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_and_then_some
36103629
[`option_as_ref_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
36113630
[`option_env_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_env_unwrap
3631+
[`option_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_expect_used
36123632
[`option_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map
36133633
[`option_if_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_if_let_else
36143634
[`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
36153635
[`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
3636+
[`option_map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or
3637+
[`option_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or_else
36163638
[`option_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_option
3639+
[`option_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_unwrap_used
36173640
[`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
36183641
[`or_then_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_then_unwrap
36193642
[`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
36203643
[`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
36213644
[`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
36223645
[`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
3646+
[`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
36233647
[`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
36243648
[`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
36253649
[`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
@@ -3661,14 +3685,18 @@ Released 2018-09-13
36613685
[`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
36623686
[`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
36633687
[`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
3688+
[`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
36643689
[`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
36653690
[`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
36663691
[`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
36673692
[`replace_consts`]: https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
36683693
[`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
3694+
[`result_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_expect_used
36693695
[`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
36703696
[`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
3697+
[`result_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unwrap_or_else
36713698
[`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
3699+
[`result_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unwrap_used
36723700
[`return_self_not_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
36733701
[`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
36743702
[`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
@@ -3691,6 +3719,7 @@ Released 2018-09-13
36913719
[`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
36923720
[`single_char_lifetime_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names
36933721
[`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
3722+
[`single_char_push_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_push_str
36943723
[`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
36953724
[`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
36963725
[`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
@@ -3709,6 +3738,7 @@ Released 2018-09-13
37093738
[`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
37103739
[`strlen_on_c_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#strlen_on_c_strings
37113740
[`struct_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
3741+
[`stutter`]: https://rust-lang.github.io/rust-clippy/master/index.html#stutter
37123742
[`suboptimal_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#suboptimal_flops
37133743
[`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
37143744
[`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
@@ -3720,7 +3750,9 @@ Released 2018-09-13
37203750
[`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
37213751
[`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
37223752
[`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
3753+
[`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
37233754
[`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
3755+
[`to_string_in_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display
37243756
[`to_string_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
37253757
[`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
37263758
[`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
@@ -3755,6 +3787,7 @@ Released 2018-09-13
37553787
[`unit_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_cmp
37563788
[`unit_hash`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_hash
37573789
[`unit_return_expecting_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_return_expecting_ord
3790+
[`unknown_clippy_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
37583791
[`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
37593792
[`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
37603793
[`unnecessary_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
@@ -3784,6 +3817,7 @@ Released 2018-09-13
37843817
[`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
37853818
[`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
37863819
[`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
3820+
[`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
37873821
[`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
37883822
[`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
37893823
[`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
@@ -3824,5 +3858,6 @@ Released 2018-09-13
38243858
[`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
38253859
[`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
38263860
[`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
3861+
[`zero_width_space`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
38273862
[`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
38283863
<!-- end autogenerated links to lint list -->

clippy_dev/src/update_lints.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,13 @@ fn generate_lint_files(
6666
|res| {
6767
for lint in usable_lints
6868
.iter()
69-
.map(|l| &l.name)
70-
.chain(deprecated_lints.iter().map(|l| &l.name))
69+
.map(|l| &*l.name)
70+
.chain(deprecated_lints.iter().map(|l| &*l.name))
71+
.chain(
72+
renamed_lints
73+
.iter()
74+
.map(|l| l.old_name.strip_prefix("clippy::").unwrap_or(&l.old_name)),
75+
)
7176
.sorted()
7277
{
7378
writeln!(res, "[`{}`]: {}#{}", lint, DOCS_LINK, lint).unwrap();

0 commit comments

Comments
 (0)