@@ -273,6 +273,7 @@ pub mod use_self;
273
273
pub mod vec;
274
274
pub mod wildcard_dependencies;
275
275
pub mod write;
276
+ pub mod xor_used_as_pow;
276
277
pub mod zero_div_zero;
277
278
// end lints modules, do not remove this comment, it’s used in `update_lints`
278
279
@@ -582,6 +583,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
582
583
reg. register_late_lint_pass ( box path_buf_push_overwrite:: PathBufPushOverwrite ) ;
583
584
reg. register_late_lint_pass ( box checked_conversions:: CheckedConversions ) ;
584
585
reg. register_late_lint_pass ( box integer_division:: IntegerDivision ) ;
586
+ reg. register_early_lint_pass ( box xor_used_as_pow:: XorUsedAsPow ) ;
585
587
586
588
reg. register_lint_group ( "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
587
589
arithmetic:: FLOAT_ARITHMETIC ,
@@ -889,6 +891,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
889
891
write:: WRITELN_EMPTY_STRING ,
890
892
write:: WRITE_LITERAL ,
891
893
write:: WRITE_WITH_NEWLINE ,
894
+ xor_used_as_pow:: XOR_USED_AS_POW ,
892
895
zero_div_zero:: ZERO_DIVIDED_BY_ZERO ,
893
896
] ) ;
894
897
@@ -1105,6 +1108,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
1105
1108
types:: UNIT_CMP ,
1106
1109
unicode:: ZERO_WIDTH_SPACE ,
1107
1110
unused_io_amount:: UNUSED_IO_AMOUNT ,
1111
+ xor_used_as_pow:: XOR_USED_AS_POW ,
1108
1112
] ) ;
1109
1113
1110
1114
reg. register_lint_group ( "clippy::perf" , Some ( "clippy_perf" ) , vec ! [
0 commit comments