@@ -304,6 +304,7 @@ mod nonstandard_macro_braces;
304
304
mod open_options;
305
305
mod option_env_unwrap;
306
306
mod option_if_let_else;
307
+ mod option_needless_deref;
307
308
mod overflow_check_conditional;
308
309
mod panic_in_result_fn;
309
310
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 ,
@@ -1387,6 +1389,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1387
1389
LintId :: of( non_octal_unix_permissions:: NON_OCTAL_UNIX_PERMISSIONS ) ,
1388
1390
LintId :: of( open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1389
1391
LintId :: of( option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
1392
+ LintId :: of( option_needless_deref:: OPTION_NEEDLESS_DEREF ) ,
1390
1393
LintId :: of( overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
1391
1394
LintId :: of( partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
1392
1395
LintId :: of( precedence:: PRECEDENCE ) ,
@@ -1640,6 +1643,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1640
1643
LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
1641
1644
LintId :: of( no_effect:: NO_EFFECT ) ,
1642
1645
LintId :: of( no_effect:: UNNECESSARY_OPERATION ) ,
1646
+ LintId :: of( option_needless_deref:: OPTION_NEEDLESS_DEREF ) ,
1643
1647
LintId :: of( overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
1644
1648
LintId :: of( partialeq_ne_impl:: PARTIALEQ_NE_IMPL ) ,
1645
1649
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 ptr:: Ptr ) ;
1864
1868
store. register_late_pass ( || box ptr_eq:: PtrEq ) ;
1865
1869
store. register_late_pass ( || box needless_bool:: NeedlessBool ) ;
1870
+ store. register_late_pass ( || box option_needless_deref:: OptionNeedlessDeref ) ;
1866
1871
store. register_late_pass ( || box needless_bool:: BoolComparison ) ;
1867
1872
store. register_late_pass ( || box needless_for_each:: NeedlessForEach ) ;
1868
1873
store. register_late_pass ( || box approx_const:: ApproxConstant ) ;
0 commit comments