@@ -1358,9 +1358,7 @@ pub struct CrossCrateTraitsDefined {
13581358 pub traits : String ,
13591359}
13601360
1361- // FIXME(fmease): Deduplicate:
1362-
1363- #[ derive( Diagnostic ) ]
1361+ #[ derive( Diagnostic , LintDiagnostic ) ]
13641362#[ diag( hir_analysis_ty_param_first_local, code = E0210 ) ]
13651363#[ note]
13661364pub struct TyParamFirstLocal < ' tcx > {
@@ -1373,20 +1371,7 @@ pub struct TyParamFirstLocal<'tcx> {
13731371 pub local_type : Ty < ' tcx > ,
13741372}
13751373
1376- #[ derive( LintDiagnostic ) ]
1377- #[ diag( hir_analysis_ty_param_first_local, code = E0210 ) ]
1378- #[ note]
1379- pub struct TyParamFirstLocalLint < ' tcx > {
1380- #[ primary_span]
1381- #[ label]
1382- pub span : Span ,
1383- #[ note( hir_analysis_case_note) ]
1384- pub note : ( ) ,
1385- pub param : Symbol ,
1386- pub local_type : Ty < ' tcx > ,
1387- }
1388-
1389- #[ derive( Diagnostic ) ]
1374+ #[ derive( Diagnostic , LintDiagnostic ) ]
13901375#[ diag( hir_analysis_ty_param_some, code = E0210 ) ]
13911376#[ note]
13921377pub struct TyParamSome {
@@ -1398,18 +1383,6 @@ pub struct TyParamSome {
13981383 pub param : Symbol ,
13991384}
14001385
1401- #[ derive( LintDiagnostic ) ]
1402- #[ diag( hir_analysis_ty_param_some, code = E0210 ) ]
1403- #[ note]
1404- pub struct TyParamSomeLint {
1405- #[ primary_span]
1406- #[ label]
1407- pub span : Span ,
1408- #[ note( hir_analysis_only_note) ]
1409- pub note : ( ) ,
1410- pub param : Symbol ,
1411- }
1412-
14131386#[ derive( Diagnostic ) ]
14141387pub enum OnlyCurrentTraits {
14151388 #[ diag( hir_analysis_only_current_traits_outside, code = E0117 ) ]
0 commit comments