@@ -301,6 +301,7 @@ mod redundant_closure_call;
301301mod redundant_else;
302302mod redundant_field_names;
303303mod redundant_pub_crate;
304+ mod redundant_slicing;
304305mod redundant_static_lifetimes;
305306mod ref_option_ref;
306307mod reference;
@@ -849,6 +850,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
849850 & redundant_else:: REDUNDANT_ELSE ,
850851 & redundant_field_names:: REDUNDANT_FIELD_NAMES ,
851852 & redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
853+ & redundant_slicing:: REDUNDANT_SLICING ,
852854 & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
853855 & ref_option_ref:: REF_OPTION_REF ,
854856 & reference:: DEREF_ADDROF ,
@@ -1229,6 +1231,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12291231 store. register_late_pass ( || box vec_init_then_push:: VecInitThenPush :: default ( ) ) ;
12301232 store. register_late_pass ( move || box types:: PtrAsPtr :: new ( msrv) ) ;
12311233 store. register_late_pass ( || box case_sensitive_file_extension_comparisons:: CaseSensitiveFileExtensionComparisons ) ;
1234+ store. register_late_pass ( || box redundant_slicing:: RedundantSlicing ) ;
12321235
12331236 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
12341237 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1591,6 +1594,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15911594 LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
15921595 LintId :: of( & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ) ,
15931596 LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1597+ LintId :: of( & redundant_slicing:: REDUNDANT_SLICING ) ,
15941598 LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
15951599 LintId :: of( & reference:: DEREF_ADDROF ) ,
15961600 LintId :: of( & reference:: REF_IN_DEREF ) ,
@@ -1835,6 +1839,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18351839 LintId :: of( & ptr_offset_with_cast:: PTR_OFFSET_WITH_CAST ) ,
18361840 LintId :: of( & ranges:: RANGE_ZIP_WITH_LEN ) ,
18371841 LintId :: of( & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ) ,
1842+ LintId :: of( & redundant_slicing:: REDUNDANT_SLICING ) ,
18381843 LintId :: of( & reference:: DEREF_ADDROF ) ,
18391844 LintId :: of( & reference:: REF_IN_DEREF ) ,
18401845 LintId :: of( & repeat_once:: REPEAT_ONCE ) ,
0 commit comments