@@ -332,6 +332,7 @@ mod reference;
332332mod regex;
333333mod repeat_once;
334334mod returns;
335+ mod same_name_method;
335336mod self_assignment;
336337mod self_named_constructors;
337338mod semicolon_if_nothing_returned;
@@ -912,6 +913,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
912913 repeat_once:: REPEAT_ONCE ,
913914 returns:: LET_AND_RETURN ,
914915 returns:: NEEDLESS_RETURN ,
916+ same_name_method:: SAME_NAME_METHOD ,
915917 self_assignment:: SELF_ASSIGNMENT ,
916918 self_named_constructors:: SELF_NAMED_CONSTRUCTORS ,
917919 semicolon_if_nothing_returned:: SEMICOLON_IF_NOTHING_RETURNED ,
@@ -956,7 +958,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
956958 transmuting_null:: TRANSMUTING_NULL ,
957959 try_err:: TRY_ERR ,
958960 types:: BORROWED_BOX ,
959- types:: BOX_VEC ,
961+ types:: BOX_COLLECTION ,
960962 types:: LINKEDLIST ,
961963 types:: OPTION_OPTION ,
962964 types:: RC_BUFFER ,
@@ -1055,6 +1057,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10551057 LintId :: of( panic_unimplemented:: UNIMPLEMENTED ) ,
10561058 LintId :: of( panic_unimplemented:: UNREACHABLE ) ,
10571059 LintId :: of( pattern_type_mismatch:: PATTERN_TYPE_MISMATCH ) ,
1060+ LintId :: of( same_name_method:: SAME_NAME_METHOD ) ,
10581061 LintId :: of( shadow:: SHADOW_REUSE ) ,
10591062 LintId :: of( shadow:: SHADOW_SAME ) ,
10601063 LintId :: of( strings:: STRING_ADD ) ,
@@ -1139,6 +1142,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11391142 LintId :: of( needless_continue:: NEEDLESS_CONTINUE ) ,
11401143 LintId :: of( needless_for_each:: NEEDLESS_FOR_EACH ) ,
11411144 LintId :: of( needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ) ,
1145+ LintId :: of( non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
11421146 LintId :: of( non_expressive_names:: SIMILAR_NAMES ) ,
11431147 LintId :: of( pass_by_ref_or_value:: LARGE_TYPES_PASSED_BY_VALUE ) ,
11441148 LintId :: of( pass_by_ref_or_value:: TRIVIALLY_COPY_PASS_BY_REF ) ,
@@ -1396,7 +1400,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13961400 LintId :: of( non_copy_const:: BORROW_INTERIOR_MUTABLE_CONST ) ,
13971401 LintId :: of( non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
13981402 LintId :: of( non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
1399- LintId :: of( non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
14001403 LintId :: of( non_octal_unix_permissions:: NON_OCTAL_UNIX_PERMISSIONS ) ,
14011404 LintId :: of( open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
14021405 LintId :: of( option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
@@ -1454,7 +1457,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14541457 LintId :: of( transmuting_null:: TRANSMUTING_NULL ) ,
14551458 LintId :: of( try_err:: TRY_ERR ) ,
14561459 LintId :: of( types:: BORROWED_BOX ) ,
1457- LintId :: of( types:: BOX_VEC ) ,
1460+ LintId :: of( types:: BOX_COLLECTION ) ,
14581461 LintId :: of( types:: REDUNDANT_ALLOCATION ) ,
14591462 LintId :: of( types:: TYPE_COMPLEXITY ) ,
14601463 LintId :: of( types:: VEC_BOX ) ,
@@ -1571,7 +1574,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15711574 LintId :: of( non_copy_const:: BORROW_INTERIOR_MUTABLE_CONST ) ,
15721575 LintId :: of( non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
15731576 LintId :: of( non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
1574- LintId :: of( non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
15751577 LintId :: of( ptr:: CMP_NULL ) ,
15761578 LintId :: of( ptr:: PTR_ARG ) ,
15771579 LintId :: of( ptr_eq:: PTR_EQ ) ,
@@ -1794,7 +1796,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
17941796 LintId :: of( redundant_clone:: REDUNDANT_CLONE ) ,
17951797 LintId :: of( slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
17961798 LintId :: of( stable_sort_primitive:: STABLE_SORT_PRIMITIVE ) ,
1797- LintId :: of( types:: BOX_VEC ) ,
1799+ LintId :: of( types:: BOX_COLLECTION ) ,
17981800 LintId :: of( types:: REDUNDANT_ALLOCATION ) ,
17991801 LintId :: of( vec:: USELESS_VEC ) ,
18001802 LintId :: of( vec_init_then_push:: VEC_INIT_THEN_PUSH ) ,
@@ -1927,6 +1929,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
19271929 store. register_early_pass ( move || Box :: new ( unnested_or_patterns:: UnnestedOrPatterns :: new ( msrv) ) ) ;
19281930
19291931 store. register_late_pass ( || Box :: new ( size_of_in_element_count:: SizeOfInElementCount ) ) ;
1932+ store. register_late_pass ( || Box :: new ( same_name_method:: SameNameMethod ) ) ;
19301933 store. register_late_pass ( || Box :: new ( map_clone:: MapClone ) ) ;
19311934 store. register_late_pass ( || Box :: new ( map_err_ignore:: MapErrIgnore ) ) ;
19321935 store. register_late_pass ( || Box :: new ( shadow:: Shadow ) ) ;
@@ -2195,6 +2198,7 @@ pub fn register_renamed(ls: &mut rustc_lint::LintStore) {
21952198 ls. register_renamed ( "clippy::cyclomatic_complexity" , "clippy::cognitive_complexity" ) ;
21962199 ls. register_renamed ( "clippy::const_static_lifetime" , "clippy::redundant_static_lifetimes" ) ;
21972200 ls. register_renamed ( "clippy::option_and_then_some" , "clippy::bind_instead_of_map" ) ;
2201+ ls. register_renamed ( "clippy::box_vec" , "clippy::box_collection" ) ;
21982202 ls. register_renamed ( "clippy::block_in_if_condition_expr" , "clippy::blocks_in_if_conditions" ) ;
21992203 ls. register_renamed ( "clippy::block_in_if_condition_stmt" , "clippy::blocks_in_if_conditions" ) ;
22002204 ls. register_renamed ( "clippy::option_map_unwrap_or" , "clippy::map_unwrap_or" ) ;
0 commit comments