@@ -303,6 +303,7 @@ mod nonstandard_macro_braces;
303
303
mod open_options;
304
304
mod option_env_unwrap;
305
305
mod option_if_let_else;
306
+ mod option_needless_deref;
306
307
mod overflow_check_conditional;
307
308
mod panic_in_result_fn;
308
309
mod panic_unimplemented;
@@ -865,6 +866,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
865
866
open_options:: NONSENSICAL_OPEN_OPTIONS ,
866
867
option_env_unwrap:: OPTION_ENV_UNWRAP ,
867
868
option_if_let_else:: OPTION_IF_LET_ELSE ,
869
+ option_needless_deref:: OPTION_NEEDLESS_DEREF ,
868
870
overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
869
871
panic_in_result_fn:: PANIC_IN_RESULT_FN ,
870
872
panic_unimplemented:: PANIC ,
@@ -1388,6 +1390,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1388
1390
LintId :: of( non_octal_unix_permissions:: NON_OCTAL_UNIX_PERMISSIONS ) ,
1389
1391
LintId :: of( open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1390
1392
LintId :: of( option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
1393
+ LintId :: of( option_needless_deref:: OPTION_NEEDLESS_DEREF ) ,
1391
1394
LintId :: of( overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
1392
1395
LintId :: of( partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
1393
1396
LintId :: of( precedence:: PRECEDENCE ) ,
@@ -1641,6 +1644,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1641
1644
LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
1642
1645
LintId :: of( no_effect:: NO_EFFECT ) ,
1643
1646
LintId :: of( no_effect:: UNNECESSARY_OPERATION ) ,
1647
+ LintId :: of( option_needless_deref:: OPTION_NEEDLESS_DEREF ) ,
1644
1648
LintId :: of( overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
1645
1649
LintId :: of( partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
1646
1650
LintId :: of( precedence:: PRECEDENCE ) ,
@@ -1863,6 +1867,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1863
1867
store. register_late_pass ( || Box :: new ( ptr:: Ptr ) ) ;
1864
1868
store. register_late_pass ( || Box :: new ( ptr_eq:: PtrEq ) ) ;
1865
1869
store. register_late_pass ( || Box :: new ( needless_bool:: NeedlessBool ) ) ;
1870
+ store. register_late_pass ( || Box :: new ( option_needless_deref:: OptionNeedlessDeref ) ) ;
1866
1871
store. register_late_pass ( || Box :: new ( needless_bool:: BoolComparison ) ) ;
1867
1872
store. register_late_pass ( || Box :: new ( needless_for_each:: NeedlessForEach ) ) ;
1868
1873
store. register_late_pass ( || Box :: new ( approx_const:: ApproxConstant ) ) ;
0 commit comments