@@ -289,6 +289,7 @@ mod needless_borrow;
289
289
mod needless_borrowed_ref;
290
290
mod needless_continue;
291
291
mod needless_for_each;
292
+ mod needless_option_as_deref;
292
293
mod needless_pass_by_value;
293
294
mod needless_question_mark;
294
295
mod needless_update;
@@ -847,6 +848,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
847
848
needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
848
849
needless_continue:: NEEDLESS_CONTINUE ,
849
850
needless_for_each:: NEEDLESS_FOR_EACH ,
851
+ needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ,
850
852
needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
851
853
needless_question_mark:: NEEDLESS_QUESTION_MARK ,
852
854
needless_update:: NEEDLESS_UPDATE ,
@@ -1374,6 +1376,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1374
1376
LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
1375
1377
LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
1376
1378
LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1379
+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
1377
1380
LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
1378
1381
LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
1379
1382
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:
1636
1639
LintId :: of( needless_bool:: BOOL_COMPARISON ) ,
1637
1640
LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
1638
1641
LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1642
+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
1639
1643
LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
1640
1644
LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
1641
1645
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:
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 ( needless_option_as_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