@@ -1382,9 +1382,7 @@ pub(crate) struct CrossCrateTraitsDefined {
1382
1382
pub traits : String ,
1383
1383
}
1384
1384
1385
- // FIXME(fmease): Deduplicate:
1386
-
1387
- #[ derive( Diagnostic ) ]
1385
+ #[ derive( Diagnostic , LintDiagnostic ) ]
1388
1386
#[ diag( hir_analysis_ty_param_first_local, code = E0210 ) ]
1389
1387
#[ note]
1390
1388
pub ( crate ) struct TyParamFirstLocal < ' tcx > {
@@ -1397,20 +1395,7 @@ pub(crate) struct TyParamFirstLocal<'tcx> {
1397
1395
pub local_type : Ty < ' tcx > ,
1398
1396
}
1399
1397
1400
- #[ derive( LintDiagnostic ) ]
1401
- #[ diag( hir_analysis_ty_param_first_local, code = E0210 ) ]
1402
- #[ note]
1403
- pub ( crate ) struct TyParamFirstLocalLint < ' tcx > {
1404
- #[ primary_span]
1405
- #[ label]
1406
- pub span : Span ,
1407
- #[ note( hir_analysis_case_note) ]
1408
- pub note : ( ) ,
1409
- pub param : Symbol ,
1410
- pub local_type : Ty < ' tcx > ,
1411
- }
1412
-
1413
- #[ derive( Diagnostic ) ]
1398
+ #[ derive( Diagnostic , LintDiagnostic ) ]
1414
1399
#[ diag( hir_analysis_ty_param_some, code = E0210 ) ]
1415
1400
#[ note]
1416
1401
pub ( crate ) struct TyParamSome {
@@ -1422,18 +1407,6 @@ pub(crate) struct TyParamSome {
1422
1407
pub param : Symbol ,
1423
1408
}
1424
1409
1425
- #[ derive( LintDiagnostic ) ]
1426
- #[ diag( hir_analysis_ty_param_some, code = E0210 ) ]
1427
- #[ note]
1428
- pub ( crate ) struct TyParamSomeLint {
1429
- #[ primary_span]
1430
- #[ label]
1431
- pub span : Span ,
1432
- #[ note( hir_analysis_only_note) ]
1433
- pub note : ( ) ,
1434
- pub param : Symbol ,
1435
- }
1436
-
1437
1410
#[ derive( Diagnostic ) ]
1438
1411
pub ( crate ) enum OnlyCurrentTraits {
1439
1412
#[ diag( hir_analysis_only_current_traits_outside, code = E0117 ) ]
0 commit comments