File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1280,6 +1280,7 @@ declare_lint! {
1280
1280
"`...` range patterns are deprecated"
1281
1281
}
1282
1282
1283
+ #[ derive( Default ) ]
1283
1284
pub struct EllipsisInclusiveRangePatterns {
1284
1285
/// If `Some(_)`, suppress all subsequent pattern
1285
1286
/// warnings for better diagnostics.
@@ -1288,14 +1289,6 @@ pub struct EllipsisInclusiveRangePatterns {
1288
1289
1289
1290
impl_lint_pass ! ( EllipsisInclusiveRangePatterns => [ ELLIPSIS_INCLUSIVE_RANGE_PATTERNS ] ) ;
1290
1291
1291
- impl EllipsisInclusiveRangePatterns {
1292
- pub fn new ( ) -> Self {
1293
- Self {
1294
- node_id : None ,
1295
- }
1296
- }
1297
- }
1298
-
1299
1292
impl EarlyLintPass for EllipsisInclusiveRangePatterns {
1300
1293
fn check_pat ( & mut self , cx : & EarlyContext < ' _ > , pat : & ast:: Pat ) {
1301
1294
if self . node_id . is_some ( ) {
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ macro_rules! early_lint_passes {
94
94
UnusedImportBraces : UnusedImportBraces ,
95
95
UnsafeCode : UnsafeCode ,
96
96
AnonymousParameters : AnonymousParameters ,
97
- EllipsisInclusiveRangePatterns : EllipsisInclusiveRangePatterns :: new ( ) ,
97
+ EllipsisInclusiveRangePatterns : EllipsisInclusiveRangePatterns :: default ( ) ,
98
98
NonCamelCaseTypes : NonCamelCaseTypes ,
99
99
DeprecatedAttr : DeprecatedAttr :: new( ) ,
100
100
] ) ;
You can’t perform that action at this time.
0 commit comments