@@ -290,6 +290,7 @@ mod needless_borrow;
290
290
mod needless_borrowed_ref;
291
291
mod needless_continue;
292
292
mod needless_for_each;
293
+ mod needless_option_as_deref;
293
294
mod needless_pass_by_value;
294
295
mod needless_question_mark;
295
296
mod needless_update;
@@ -849,6 +850,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
849
850
needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
850
851
needless_continue:: NEEDLESS_CONTINUE ,
851
852
needless_for_each:: NEEDLESS_FOR_EACH ,
853
+ needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ,
852
854
needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
853
855
needless_question_mark:: NEEDLESS_QUESTION_MARK ,
854
856
needless_update:: NEEDLESS_UPDATE ,
@@ -1377,6 +1379,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1377
1379
LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
1378
1380
LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
1379
1381
LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1382
+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
1380
1383
LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
1381
1384
LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
1382
1385
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:
1640
1643
LintId :: of( needless_bool:: BOOL_COMPARISON ) ,
1641
1644
LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
1642
1645
LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1646
+ LintId :: of( needless_option_as_deref:: NEEDLESS_OPTION_AS_DEREF ) ,
1643
1647
LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
1644
1648
LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
1645
1649
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:
1867
1871
store. register_late_pass ( || Box :: new ( ptr:: Ptr ) ) ;
1868
1872
store. register_late_pass ( || Box :: new ( ptr_eq:: PtrEq ) ) ;
1869
1873
store. register_late_pass ( || Box :: new ( needless_bool:: NeedlessBool ) ) ;
1874
+ store. register_late_pass ( || Box :: new ( needless_option_as_deref:: OptionNeedlessDeref ) ) ;
1870
1875
store. register_late_pass ( || Box :: new ( needless_bool:: BoolComparison ) ) ;
1871
1876
store. register_late_pass ( || Box :: new ( needless_for_each:: NeedlessForEach ) ) ;
1872
1877
store. register_late_pass ( || Box :: new ( misc:: MiscLints ) ) ;
0 commit comments