@@ -350,6 +350,7 @@ mod types;
350
350
mod undropped_manually_drops;
351
351
mod unicode;
352
352
mod unit_return_expecting_ord;
353
+ mod unit_types;
353
354
mod unnamed_address;
354
355
mod unnecessary_sort_by;
355
356
mod unnecessary_wraps;
@@ -960,20 +961,20 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
960
961
& types:: BOX_VEC ,
961
962
& types:: IMPLICIT_HASHER ,
962
963
& types:: INVALID_UPCAST_COMPARISONS ,
963
- & types:: LET_UNIT_VALUE ,
964
964
& types:: LINKEDLIST ,
965
965
& types:: OPTION_OPTION ,
966
966
& types:: RC_BUFFER ,
967
967
& types:: REDUNDANT_ALLOCATION ,
968
968
& types:: TYPE_COMPLEXITY ,
969
- & types:: UNIT_ARG ,
970
- & types:: UNIT_CMP ,
971
969
& types:: VEC_BOX ,
972
970
& undropped_manually_drops:: UNDROPPED_MANUALLY_DROPS ,
973
971
& unicode:: INVISIBLE_CHARACTERS ,
974
972
& unicode:: NON_ASCII_LITERAL ,
975
973
& unicode:: UNICODE_NOT_NFC ,
976
974
& unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ,
975
+ & unit_types:: LET_UNIT_VALUE ,
976
+ & unit_types:: UNIT_ARG ,
977
+ & unit_types:: UNIT_CMP ,
977
978
& unnamed_address:: FN_ADDRESS_COMPARISONS ,
978
979
& unnamed_address:: VTABLE_ADDRESS_COMPARISONS ,
979
980
& unnecessary_sort_by:: UNNECESSARY_SORT_BY ,
@@ -1084,8 +1085,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1084
1085
store. register_late_pass ( || box map_clone:: MapClone ) ;
1085
1086
store. register_late_pass ( || box map_err_ignore:: MapErrIgnore ) ;
1086
1087
store. register_late_pass ( || box shadow:: Shadow ) ;
1087
- store. register_late_pass ( || box types:: LetUnitValue ) ;
1088
- store. register_late_pass ( || box types:: UnitCmp ) ;
1088
+ store. register_late_pass ( || box unit_types:: UnitTypes ) ;
1089
1089
store. register_late_pass ( || box loops:: Loops ) ;
1090
1090
store. register_late_pass ( || box main_recursion:: MainRecursion :: default ( ) ) ;
1091
1091
store. register_late_pass ( || box lifetimes:: Lifetimes ) ;
@@ -1160,7 +1160,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1160
1160
store. register_late_pass ( || box useless_conversion:: UselessConversion :: default ( ) ) ;
1161
1161
store. register_late_pass ( || box types:: ImplicitHasher ) ;
1162
1162
store. register_late_pass ( || box fallible_impl_from:: FallibleImplFrom ) ;
1163
- store. register_late_pass ( || box types:: UnitArg ) ;
1164
1163
store. register_late_pass ( || box double_comparison:: DoubleComparisons ) ;
1165
1164
store. register_late_pass ( || box question_mark:: QuestionMark ) ;
1166
1165
store. register_early_pass ( || box suspicious_operation_groupings:: SuspiciousOperationGroupings ) ;
@@ -1415,11 +1414,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1415
1414
LintId :: of( & trait_bounds:: TYPE_REPETITION_IN_BOUNDS ) ,
1416
1415
LintId :: of( & types:: IMPLICIT_HASHER ) ,
1417
1416
LintId :: of( & types:: INVALID_UPCAST_COMPARISONS ) ,
1418
- LintId :: of( & types:: LET_UNIT_VALUE ) ,
1419
1417
LintId :: of( & types:: LINKEDLIST ) ,
1420
1418
LintId :: of( & types:: OPTION_OPTION ) ,
1421
1419
LintId :: of( & unicode:: NON_ASCII_LITERAL ) ,
1422
1420
LintId :: of( & unicode:: UNICODE_NOT_NFC ) ,
1421
+ LintId :: of( & unit_types:: LET_UNIT_VALUE ) ,
1423
1422
LintId :: of( & unnecessary_wraps:: UNNECESSARY_WRAPS ) ,
1424
1423
LintId :: of( & unnested_or_patterns:: UNNESTED_OR_PATTERNS ) ,
1425
1424
LintId :: of( & unused_self:: UNUSED_SELF ) ,
@@ -1708,12 +1707,12 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1708
1707
LintId :: of( & types:: BOX_VEC ) ,
1709
1708
LintId :: of( & types:: REDUNDANT_ALLOCATION ) ,
1710
1709
LintId :: of( & types:: TYPE_COMPLEXITY ) ,
1711
- LintId :: of( & types:: UNIT_ARG ) ,
1712
- LintId :: of( & types:: UNIT_CMP ) ,
1713
1710
LintId :: of( & types:: VEC_BOX ) ,
1714
1711
LintId :: of( & undropped_manually_drops:: UNDROPPED_MANUALLY_DROPS ) ,
1715
1712
LintId :: of( & unicode:: INVISIBLE_CHARACTERS ) ,
1716
1713
LintId :: of( & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ) ,
1714
+ LintId :: of( & unit_types:: UNIT_ARG ) ,
1715
+ LintId :: of( & unit_types:: UNIT_CMP ) ,
1717
1716
LintId :: of( & unnamed_address:: FN_ADDRESS_COMPARISONS ) ,
1718
1717
LintId :: of( & unnamed_address:: VTABLE_ADDRESS_COMPARISONS ) ,
1719
1718
LintId :: of( & unnecessary_sort_by:: UNNECESSARY_SORT_BY ) ,
@@ -1934,8 +1933,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1934
1933
LintId :: of( & transmute:: TRANSMUTE_PTR_TO_REF ) ,
1935
1934
LintId :: of( & types:: BORROWED_BOX ) ,
1936
1935
LintId :: of( & types:: TYPE_COMPLEXITY ) ,
1937
- LintId :: of( & types:: UNIT_ARG ) ,
1938
1936
LintId :: of( & types:: VEC_BOX ) ,
1937
+ LintId :: of( & unit_types:: UNIT_ARG ) ,
1939
1938
LintId :: of( & unnecessary_sort_by:: UNNECESSARY_SORT_BY ) ,
1940
1939
LintId :: of( & unwrap:: UNNECESSARY_UNWRAP ) ,
1941
1940
LintId :: of( & useless_conversion:: USELESS_CONVERSION ) ,
@@ -2005,10 +2004,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
2005
2004
LintId :: of( & transmute:: WRONG_TRANSMUTE ) ,
2006
2005
LintId :: of( & transmuting_null:: TRANSMUTING_NULL ) ,
2007
2006
LintId :: of( & types:: ABSURD_EXTREME_COMPARISONS ) ,
2008
- LintId :: of( & types:: UNIT_CMP ) ,
2009
2007
LintId :: of( & undropped_manually_drops:: UNDROPPED_MANUALLY_DROPS ) ,
2010
2008
LintId :: of( & unicode:: INVISIBLE_CHARACTERS ) ,
2011
2009
LintId :: of( & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ) ,
2010
+ LintId :: of( & unit_types:: UNIT_CMP ) ,
2012
2011
LintId :: of( & unnamed_address:: FN_ADDRESS_COMPARISONS ) ,
2013
2012
LintId :: of( & unnamed_address:: VTABLE_ADDRESS_COMPARISONS ) ,
2014
2013
LintId :: of( & unused_io_amount:: UNUSED_IO_AMOUNT ) ,
0 commit comments