@@ -290,6 +290,7 @@ mod needless_borrow;
290290mod needless_borrowed_ref;
291291mod needless_continue;
292292mod needless_for_each;
293+ mod needless_option_as_deref;
293294mod needless_pass_by_value;
294295mod needless_question_mark;
295296mod needless_update;
@@ -849,6 +850,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
849850 needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
850851 needless_continue:: NEEDLESS_CONTINUE ,
851852 needless_for_each:: NEEDLESS_FOR_EACH ,
853+ needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ,
852854 needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
853855 needless_question_mark:: NEEDLESS_QUESTION_MARK ,
854856 needless_update:: NEEDLESS_UPDATE ,
@@ -1377,6 +1379,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13771379 LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
13781380 LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
13791381 LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1382+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
13801383 LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
13811384 LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
13821385 LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
@@ -1640,6 +1643,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16401643 LintId :: of( needless_bool:: BOOL_COMPARISON ) ,
16411644 LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
16421645 LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1646+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
16431647 LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
16441648 LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
16451649 LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
@@ -1867,6 +1871,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18671871 store. register_late_pass ( || Box :: new ( ptr:: Ptr ) ) ;
18681872 store. register_late_pass ( || Box :: new ( ptr_eq:: PtrEq ) ) ;
18691873 store. register_late_pass ( || Box :: new ( needless_bool:: NeedlessBool ) ) ;
1874+ store. register_late_pass ( || Box :: new ( needless_option_as_deref:: OptionNeedlessDeref ) ) ;
18701875 store. register_late_pass ( || Box :: new ( needless_bool:: BoolComparison ) ) ;
18711876 store. register_late_pass ( || Box :: new ( needless_for_each:: NeedlessForEach ) ) ;
18721877 store. register_late_pass ( || Box :: new ( misc:: MiscLints ) ) ;
0 commit comments