@@ -289,6 +289,7 @@ mod needless_borrow;
289289mod needless_borrowed_ref;
290290mod needless_continue;
291291mod needless_for_each;
292+ mod needless_option_as_deref;
292293mod needless_pass_by_value;
293294mod needless_question_mark;
294295mod needless_update;
@@ -847,6 +848,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
847848 needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
848849 needless_continue:: NEEDLESS_CONTINUE ,
849850 needless_for_each:: NEEDLESS_FOR_EACH ,
851+ needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ,
850852 needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
851853 needless_question_mark:: NEEDLESS_QUESTION_MARK ,
852854 needless_update:: NEEDLESS_UPDATE ,
@@ -1374,6 +1376,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13741376 LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
13751377 LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
13761378 LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1379+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
13771380 LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
13781381 LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
13791382 LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
@@ -1636,6 +1639,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16361639 LintId :: of( needless_bool:: BOOL_COMPARISON ) ,
16371640 LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
16381641 LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1642+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
16391643 LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
16401644 LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
16411645 LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
@@ -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 ( needless_option_as_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