@@ -1382,9 +1382,7 @@ pub(crate) struct CrossCrateTraitsDefined {
13821382 pub traits : String ,
13831383}
13841384
1385- // FIXME(fmease): Deduplicate:
1386-
1387- #[ derive( Diagnostic ) ]
1385+ #[ derive( Diagnostic , LintDiagnostic ) ]
13881386#[ diag( hir_analysis_ty_param_first_local, code = E0210 ) ]
13891387#[ note]
13901388pub ( crate ) struct TyParamFirstLocal < ' tcx > {
@@ -1397,20 +1395,7 @@ pub(crate) struct TyParamFirstLocal<'tcx> {
13971395 pub local_type : Ty < ' tcx > ,
13981396}
13991397
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 ) ]
14141399#[ diag( hir_analysis_ty_param_some, code = E0210 ) ]
14151400#[ note]
14161401pub ( crate ) struct TyParamSome {
@@ -1422,18 +1407,6 @@ pub(crate) struct TyParamSome {
14221407 pub param : Symbol ,
14231408}
14241409
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-
14371410#[ derive( Diagnostic ) ]
14381411pub ( crate ) enum OnlyCurrentTraits {
14391412 #[ diag( hir_analysis_only_current_traits_outside, code = E0117 ) ]
0 commit comments