@@ -505,7 +505,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
505
505
booleans:: LOGIC_BUG ,
506
506
booleans:: NONMINIMAL_BOOL ,
507
507
bytecount:: NAIVE_BYTECOUNT ,
508
- neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ,
509
508
collapsible_if:: COLLAPSIBLE_IF ,
510
509
const_static_lifetime:: CONST_STATIC_LIFETIME ,
511
510
copies:: IF_SAME_THEN_ELSE ,
@@ -624,6 +623,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
624
623
needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
625
624
needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
626
625
needless_update:: NEEDLESS_UPDATE ,
626
+ neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ,
627
627
neg_multiply:: NEG_MULTIPLY ,
628
628
new_without_default:: NEW_WITHOUT_DEFAULT ,
629
629
new_without_default:: NEW_WITHOUT_DEFAULT_DERIVE ,
@@ -674,14 +674,15 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
674
674
types:: CAST_LOSSLESS ,
675
675
types:: CAST_PTR_ALIGNMENT ,
676
676
types:: CHAR_LIT_AS_U8 ,
677
+ types:: FN_TO_NUMERIC_CAST ,
678
+ types:: FN_TO_NUMERIC_CAST_WITH_TRUNCATION ,
677
679
types:: IMPLICIT_HASHER ,
678
680
types:: LET_UNIT_VALUE ,
679
681
types:: OPTION_OPTION ,
680
682
types:: TYPE_COMPLEXITY ,
681
683
types:: UNIT_ARG ,
682
684
types:: UNIT_CMP ,
683
685
types:: UNNECESSARY_CAST ,
684
- types:: FN_TO_NUMERIC_CAST ,
685
686
unicode:: ZERO_WIDTH_SPACE ,
686
687
unsafe_removed_from_name:: UNSAFE_REMOVED_FROM_NAME ,
687
688
unused_io_amount:: UNUSED_IO_AMOUNT ,
@@ -769,6 +770,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
769
770
returns:: LET_AND_RETURN ,
770
771
returns:: NEEDLESS_RETURN ,
771
772
strings:: STRING_LIT_AS_BYTES ,
773
+ types:: FN_TO_NUMERIC_CAST ,
772
774
types:: IMPLICIT_HASHER ,
773
775
types:: LET_UNIT_VALUE ,
774
776
unsafe_removed_from_name:: UNSAFE_REMOVED_FROM_NAME ,
@@ -814,6 +816,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
814
816
needless_bool:: NEEDLESS_BOOL ,
815
817
needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
816
818
needless_update:: NEEDLESS_UPDATE ,
819
+ neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ,
817
820
no_effect:: NO_EFFECT ,
818
821
no_effect:: UNNECESSARY_OPERATION ,
819
822
overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
@@ -840,7 +843,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
840
843
types:: UNIT_ARG ,
841
844
types:: UNNECESSARY_CAST ,
842
845
unused_label:: UNUSED_LABEL ,
843
- unwrap:: UNNECESSARY_UNWRAP ,
844
846
zero_div_zero:: ZERO_DIVIDED_BY_ZERO ,
845
847
] ) ;
846
848
@@ -890,6 +892,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
890
892
transmute:: WRONG_TRANSMUTE ,
891
893
types:: ABSURD_EXTREME_COMPARISONS ,
892
894
types:: CAST_PTR_ALIGNMENT ,
895
+ types:: FN_TO_NUMERIC_CAST_WITH_TRUNCATION ,
893
896
types:: UNIT_CMP ,
894
897
unicode:: ZERO_WIDTH_SPACE ,
895
898
unused_io_amount:: UNUSED_IO_AMOUNT ,
@@ -921,6 +924,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
921
924
mutex_atomic:: MUTEX_INTEGER ,
922
925
needless_borrow:: NEEDLESS_BORROW ,
923
926
ranges:: RANGE_PLUS_ONE ,
927
+ unwrap:: UNNECESSARY_UNWRAP ,
924
928
] ) ;
925
929
}
926
930
0 commit comments