@@ -190,6 +190,7 @@ pub mod replace_consts;
190
190
pub mod returns;
191
191
pub mod serde_api;
192
192
pub mod shadow;
193
+ pub mod slow_vector_initialization;
193
194
pub mod strings;
194
195
pub mod suspicious_trait_impl;
195
196
pub mod swap;
@@ -459,6 +460,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
459
460
reg. register_late_lint_pass ( box non_copy_const:: NonCopyConst ) ;
460
461
reg. register_late_lint_pass ( box ptr_offset_with_cast:: Pass ) ;
461
462
reg. register_late_lint_pass ( box redundant_clone:: RedundantClone ) ;
463
+ reg. register_late_lint_pass ( box slow_vector_initialization:: Pass ) ;
462
464
463
465
reg. register_lint_group ( "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
464
466
arithmetic:: FLOAT_ARITHMETIC ,
@@ -709,6 +711,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
709
711
returns:: NEEDLESS_RETURN ,
710
712
returns:: UNUSED_UNIT ,
711
713
serde_api:: SERDE_API_MISUSE ,
714
+ slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ,
715
+ slow_vector_initialization:: UNSAFE_VECTOR_INITIALIZATION ,
712
716
strings:: STRING_LIT_AS_BYTES ,
713
717
suspicious_trait_impl:: SUSPICIOUS_ARITHMETIC_IMPL ,
714
718
suspicious_trait_impl:: SUSPICIOUS_OP_ASSIGN_IMPL ,
@@ -955,6 +959,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
955
959
ranges:: ITERATOR_STEP_BY_ZERO ,
956
960
regex:: INVALID_REGEX ,
957
961
serde_api:: SERDE_API_MISUSE ,
962
+ slow_vector_initialization:: UNSAFE_VECTOR_INITIALIZATION ,
958
963
suspicious_trait_impl:: SUSPICIOUS_ARITHMETIC_IMPL ,
959
964
suspicious_trait_impl:: SUSPICIOUS_OP_ASSIGN_IMPL ,
960
965
swap:: ALMOST_SWAPPED ,
@@ -980,6 +985,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
980
985
methods:: SINGLE_CHAR_PATTERN ,
981
986
misc:: CMP_OWNED ,
982
987
mutex_atomic:: MUTEX_ATOMIC ,
988
+ slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ,
983
989
trivially_copy_pass_by_ref:: TRIVIALLY_COPY_PASS_BY_REF ,
984
990
types:: BOX_VEC ,
985
991
vec:: USELESS_VEC ,
0 commit comments