@@ -267,6 +267,7 @@ pub mod no_effect;
267267pub mod non_copy_const;
268268pub mod non_expressive_names;
269269pub mod open_options;
270+ pub mod option_env_unwrap;
270271pub mod overflow_check_conditional;
271272pub mod panic_unimplemented;
272273pub mod partialeq_ne_impl;
@@ -713,6 +714,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
713714 & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ,
714715 & non_expressive_names:: SIMILAR_NAMES ,
715716 & open_options:: NONSENSICAL_OPEN_OPTIONS ,
717+ & option_env_unwrap:: OPTION_ENV_UNWRAP ,
716718 & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
717719 & panic_unimplemented:: PANIC ,
718720 & panic_unimplemented:: PANIC_PARAMS ,
@@ -1003,6 +1005,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10031005 let max_fn_params_bools = conf. max_fn_params_bools ;
10041006 let max_struct_bools = conf. max_struct_bools ;
10051007 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 ) ;
10061009
10071010 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
10081011 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1285,6 +1288,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12851288 LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
12861289 LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
12871290 LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1291+ LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
12881292 LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
12891293 LintId :: of( & panic_unimplemented:: PANIC_PARAMS ) ,
12901294 LintId :: of( & partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
@@ -1590,6 +1594,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15901594 LintId :: of( & non_copy_const:: BORROW_INTERIOR_MUTABLE_CONST ) ,
15911595 LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
15921596 LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1597+ LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
15931598 LintId :: of( & ptr:: MUT_FROM_REF ) ,
15941599 LintId :: of( & regex:: INVALID_REGEX ) ,
15951600 LintId :: of( & serde_api:: SERDE_API_MISUSE ) ,
0 commit comments