11use  hir:: GenericParamKind ; 
22use  rustc_errors:: { 
3-     codes:: * ,  AddToDiagnostic ,   Applicability ,  Diag ,  DiagMessage ,  DiagStyledString , 
4-     EmissionGuarantee ,   IntoDiagArg ,   MultiSpan ,  SubdiagMessageOp , 
3+     codes:: * ,  Applicability ,  Diag ,  DiagMessage ,  DiagStyledString ,   EmissionGuarantee ,   IntoDiagArg , 
4+     MultiSpan ,  SubdiagMessageOp ,   Subdiagnostic , 
55} ; 
66use  rustc_hir as  hir; 
77use  rustc_hir:: FnRetTy ; 
@@ -224,8 +224,8 @@ pub enum RegionOriginNote<'a> {
224224    } , 
225225} 
226226
227- impl  AddToDiagnostic  for  RegionOriginNote < ' _ >  { 
228-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
227+ impl  Subdiagnostic  for  RegionOriginNote < ' _ >  { 
228+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
229229        self , 
230230        diag :  & mut  Diag < ' _ ,  G > , 
231231        _f :  F , 
@@ -289,8 +289,8 @@ pub enum LifetimeMismatchLabels {
289289    } , 
290290} 
291291
292- impl  AddToDiagnostic  for  LifetimeMismatchLabels  { 
293-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
292+ impl  Subdiagnostic  for  LifetimeMismatchLabels  { 
293+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
294294        self , 
295295        diag :  & mut  Diag < ' _ ,  G > , 
296296        _f :  F , 
@@ -337,8 +337,8 @@ pub struct AddLifetimeParamsSuggestion<'a> {
337337    pub  add_note :  bool , 
338338} 
339339
340- impl  AddToDiagnostic  for  AddLifetimeParamsSuggestion < ' _ >  { 
341-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
340+ impl  Subdiagnostic  for  AddLifetimeParamsSuggestion < ' _ >  { 
341+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
342342        self , 
343343        diag :  & mut  Diag < ' _ ,  G > , 
344344        _f :  F , 
@@ -439,8 +439,8 @@ pub struct IntroducesStaticBecauseUnmetLifetimeReq {
439439    pub  binding_span :  Span , 
440440} 
441441
442- impl  AddToDiagnostic  for  IntroducesStaticBecauseUnmetLifetimeReq  { 
443-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
442+ impl  Subdiagnostic  for  IntroducesStaticBecauseUnmetLifetimeReq  { 
443+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
444444        mut  self , 
445445        diag :  & mut  Diag < ' _ ,  G > , 
446446        _f :  F , 
@@ -758,8 +758,8 @@ pub struct ConsiderBorrowingParamHelp {
758758    pub  spans :  Vec < Span > , 
759759} 
760760
761- impl  AddToDiagnostic  for  ConsiderBorrowingParamHelp  { 
762-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
761+ impl  Subdiagnostic  for  ConsiderBorrowingParamHelp  { 
762+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
763763        self , 
764764        diag :  & mut  Diag < ' _ ,  G > , 
765765        f :  F , 
@@ -803,8 +803,8 @@ pub struct DynTraitConstraintSuggestion {
803803    pub  ident :  Ident , 
804804} 
805805
806- impl  AddToDiagnostic  for  DynTraitConstraintSuggestion  { 
807-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
806+ impl  Subdiagnostic  for  DynTraitConstraintSuggestion  { 
807+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
808808        self , 
809809        diag :  & mut  Diag < ' _ ,  G > , 
810810        f :  F , 
@@ -850,8 +850,8 @@ pub struct ReqIntroducedLocations {
850850    pub  add_label :  bool , 
851851} 
852852
853- impl  AddToDiagnostic  for  ReqIntroducedLocations  { 
854-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
853+ impl  Subdiagnostic  for  ReqIntroducedLocations  { 
854+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
855855        mut  self , 
856856        diag :  & mut  Diag < ' _ ,  G > , 
857857        f :  F , 
@@ -873,8 +873,8 @@ pub struct MoreTargeted {
873873    pub  ident :  Symbol , 
874874} 
875875
876- impl  AddToDiagnostic  for  MoreTargeted  { 
877-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
876+ impl  Subdiagnostic  for  MoreTargeted  { 
877+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
878878        self , 
879879        diag :  & mut  Diag < ' _ ,  G > , 
880880        _f :  F , 
@@ -1296,8 +1296,8 @@ pub struct SuggestTuplePatternMany {
12961296    pub  compatible_variants :  Vec < String > , 
12971297} 
12981298
1299- impl  AddToDiagnostic  for  SuggestTuplePatternMany  { 
1300-     fn  add_to_diagnostic_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
1299+ impl  Subdiagnostic  for  SuggestTuplePatternMany  { 
1300+     fn  add_to_diag_with < G :  EmissionGuarantee ,  F :  SubdiagMessageOp < G > > ( 
13011301        self , 
13021302        diag :  & mut  Diag < ' _ ,  G > , 
13031303        f :  F , 
0 commit comments