@@ -303,6 +303,7 @@ mod nonstandard_macro_braces;
303303mod open_options;
304304mod option_env_unwrap;
305305mod option_if_let_else;
306+ mod option_needless_deref;
306307mod overflow_check_conditional;
307308mod panic_in_result_fn;
308309mod panic_unimplemented;
@@ -865,6 +866,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
865866 open_options:: NONSENSICAL_OPEN_OPTIONS ,
866867 option_env_unwrap:: OPTION_ENV_UNWRAP ,
867868 option_if_let_else:: OPTION_IF_LET_ELSE ,
869+ option_needless_deref:: OPTION_NEEDLESS_DEREF ,
868870 overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
869871 panic_in_result_fn:: PANIC_IN_RESULT_FN ,
870872 panic_unimplemented:: PANIC ,
@@ -1388,6 +1390,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13881390 LintId :: of( non_octal_unix_permissions:: NON_OCTAL_UNIX_PERMISSIONS ) ,
13891391 LintId :: of( open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
13901392 LintId :: of( option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
1393+ LintId :: of( option_needless_deref:: OPTION_NEEDLESS_DEREF ) ,
13911394 LintId :: of( overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
13921395 LintId :: of( partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
13931396 LintId :: of( precedence:: PRECEDENCE ) ,
@@ -1641,6 +1644,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16411644 LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
16421645 LintId :: of( no_effect:: NO_EFFECT ) ,
16431646 LintId :: of( no_effect:: UNNECESSARY_OPERATION ) ,
1647+ LintId :: of( option_needless_deref:: OPTION_NEEDLESS_DEREF ) ,
16441648 LintId :: of( overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
16451649 LintId :: of( partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
16461650 LintId :: of( precedence:: PRECEDENCE ) ,
@@ -1863,6 +1867,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18631867 store. register_late_pass ( || Box :: new ( ptr:: Ptr ) ) ;
18641868 store. register_late_pass ( || Box :: new ( ptr_eq:: PtrEq ) ) ;
18651869 store. register_late_pass ( || Box :: new ( needless_bool:: NeedlessBool ) ) ;
1870+ store. register_late_pass ( || Box :: new ( option_needless_deref:: OptionNeedlessDeref ) ) ;
18661871 store. register_late_pass ( || Box :: new ( needless_bool:: BoolComparison ) ) ;
18671872 store. register_late_pass ( || Box :: new ( needless_for_each:: NeedlessForEach ) ) ;
18681873 store. register_late_pass ( || Box :: new ( approx_const:: ApproxConstant ) ) ;
0 commit comments