Skip to content

Commit f31250a

Browse files
committed
Add renamed lints to the changelog link list
1 parent 2302909 commit f31250a

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
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
@@ -3350,15 +3355,18 @@ Released 2018-09-13
33503355
[`derivable_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
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
3358+
[`disallowed_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
33533359
[`disallowed_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods
33543360
[`disallowed_script_idents`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_script_idents
3361+
[`disallowed_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type
33553362
[`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
33563363
[`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
33573364
[`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
33583365
[`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
33593366
[`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
33603367
[`double_neg`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_neg
33613368
[`double_parens`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_parens
3369+
[`drop_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_bounds
33623370
[`drop_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy
33633371
[`drop_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop
33643372
[`drop_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref
@@ -3377,6 +3385,7 @@ Released 2018-09-13
33773385
[`equatable_if_let`]: https://rust-lang.github.io/rust-clippy/master/index.html#equatable_if_let
33783386
[`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
33793387
[`err_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#err_expect
3388+
[`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
33803389
[`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
33813390
[`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
33823391
[`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
@@ -3412,6 +3421,8 @@ Released 2018-09-13
34123421
[`fn_to_numeric_cast_any`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_any
34133422
[`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
34143423
[`for_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map
3424+
[`for_loop_over_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_option
3425+
[`for_loop_over_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_result
34153426
[`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
34163427
[`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
34173428
[`forget_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_non_drop
@@ -3424,9 +3435,11 @@ Released 2018-09-13
34243435
[`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
34253436
[`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
34263437
[`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
3438+
[`identity_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
34273439
[`identity_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
34283440
[`if_let_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
34293441
[`if_let_redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
3442+
[`if_let_some_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_some_result
34303443
[`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
34313444
[`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
34323445
[`if_then_some_else_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
@@ -3455,8 +3468,11 @@ Released 2018-09-13
34553468
[`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
34563469
[`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
34573470
[`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
3471+
[`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
34583472
[`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
3473+
[`invalid_atomic_ordering`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_atomic_ordering
34593474
[`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
3475+
[`invalid_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_ref
34603476
[`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
34613477
[`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
34623478
[`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
@@ -3530,6 +3546,7 @@ Released 2018-09-13
35303546
[`match_wild_err_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
35313547
[`match_wildcard_for_single_variants`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
35323548
[`maybe_infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_infinite_iter
3549+
[`mem_discriminant_non_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_discriminant_non_enum
35333550
[`mem_forget`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
35343551
[`mem_replace_option_with_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
35353552
[`mem_replace_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
@@ -3592,6 +3609,7 @@ Released 2018-09-13
35923609
[`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
35933610
[`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
35943611
[`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
3612+
[`new_without_default_derive`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive
35953613
[`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
35963614
[`no_effect_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
35973615
[`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
@@ -3605,19 +3623,25 @@ Released 2018-09-13
36053623
[`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
36063624
[`only_used_in_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
36073625
[`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
3626+
[`option_and_then_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_and_then_some
36083627
[`option_as_ref_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
36093628
[`option_env_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_env_unwrap
3629+
[`option_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_expect_used
36103630
[`option_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map
36113631
[`option_if_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_if_let_else
36123632
[`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
36133633
[`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
3634+
[`option_map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or
3635+
[`option_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or_else
36143636
[`option_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_option
3637+
[`option_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_unwrap_used
36153638
[`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
36163639
[`or_then_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_then_unwrap
36173640
[`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
36183641
[`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
36193642
[`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
36203643
[`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
3644+
[`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
36213645
[`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
36223646
[`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
36233647
[`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
@@ -3658,14 +3682,18 @@ Released 2018-09-13
36583682
[`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
36593683
[`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
36603684
[`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
3685+
[`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
36613686
[`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
36623687
[`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
36633688
[`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
36643689
[`replace_consts`]: https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
36653690
[`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
3691+
[`result_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_expect_used
36663692
[`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
36673693
[`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
3694+
[`result_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unwrap_or_else
36683695
[`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
3696+
[`result_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unwrap_used
36693697
[`return_self_not_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
36703698
[`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
36713699
[`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
@@ -3688,6 +3716,7 @@ Released 2018-09-13
36883716
[`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
36893717
[`single_char_lifetime_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names
36903718
[`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
3719+
[`single_char_push_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_push_str
36913720
[`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
36923721
[`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
36933722
[`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
@@ -3706,6 +3735,7 @@ Released 2018-09-13
37063735
[`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
37073736
[`strlen_on_c_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#strlen_on_c_strings
37083737
[`struct_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
3738+
[`stutter`]: https://rust-lang.github.io/rust-clippy/master/index.html#stutter
37093739
[`suboptimal_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#suboptimal_flops
37103740
[`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
37113741
[`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
@@ -3717,7 +3747,9 @@ Released 2018-09-13
37173747
[`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
37183748
[`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
37193749
[`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
3750+
[`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
37203751
[`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
3752+
[`to_string_in_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display
37213753
[`to_string_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
37223754
[`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
37233755
[`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
@@ -3751,6 +3783,7 @@ Released 2018-09-13
37513783
[`unit_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_cmp
37523784
[`unit_hash`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_hash
37533785
[`unit_return_expecting_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_return_expecting_ord
3786+
[`unknown_clippy_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
37543787
[`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
37553788
[`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
37563789
[`unnecessary_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
@@ -3780,6 +3813,7 @@ Released 2018-09-13
37803813
[`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
37813814
[`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
37823815
[`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
3816+
[`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
37833817
[`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
37843818
[`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
37853819
[`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
@@ -3820,5 +3854,6 @@ Released 2018-09-13
38203854
[`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
38213855
[`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
38223856
[`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
3857+
[`zero_width_space`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
38233858
[`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
38243859
<!-- end autogenerated links to lint list -->

clippy_dev/src/update_lints.rs

Lines changed: 7 additions & 2 deletions
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)