@@ -267,6 +267,7 @@ pub mod no_effect;
267
267
pub mod non_copy_const;
268
268
pub mod non_expressive_names;
269
269
pub mod open_options;
270
+ pub mod option_env_unwrap;
270
271
pub mod overflow_check_conditional;
271
272
pub mod panic_unimplemented;
272
273
pub mod partialeq_ne_impl;
@@ -713,6 +714,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
713
714
& non_expressive_names:: MANY_SINGLE_CHAR_NAMES ,
714
715
& non_expressive_names:: SIMILAR_NAMES ,
715
716
& open_options:: NONSENSICAL_OPEN_OPTIONS ,
717
+ & option_env_unwrap:: OPTION_ENV_UNWRAP ,
716
718
& overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
717
719
& panic_unimplemented:: PANIC ,
718
720
& panic_unimplemented:: PANIC_PARAMS ,
@@ -1003,6 +1005,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1003
1005
let max_fn_params_bools = conf. max_fn_params_bools ;
1004
1006
let max_struct_bools = conf. max_struct_bools ;
1005
1007
store. register_early_pass ( move || box excessive_bools:: ExcessiveBools :: new ( max_struct_bools, max_fn_params_bools) ) ;
1008
+ store. register_early_pass ( || box option_env_unwrap:: OptionEnvUnwrap ) ;
1006
1009
1007
1010
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1008
1011
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1285,6 +1288,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1285
1288
LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
1286
1289
LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
1287
1290
LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1291
+ LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
1288
1292
LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
1289
1293
LintId :: of( & panic_unimplemented:: PANIC_PARAMS ) ,
1290
1294
LintId :: of( & partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
@@ -1590,6 +1594,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1590
1594
LintId :: of( & non_copy_const:: BORROW_INTERIOR_MUTABLE_CONST ) ,
1591
1595
LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
1592
1596
LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1597
+ LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
1593
1598
LintId :: of( & ptr:: MUT_FROM_REF ) ,
1594
1599
LintId :: of( & regex:: INVALID_REGEX ) ,
1595
1600
LintId :: of( & serde_api:: SERDE_API_MISUSE ) ,
0 commit comments