11use hir:: GenericParamKind ;
22use rustc_errors:: {
33 codes:: * , AddToDiagnostic , Applicability , Diag , DiagMessage , DiagStyledString ,
4- EmissionGuarantee , IntoDiagnosticArg , MultiSpan , SubdiagnosticMessageOp ,
4+ EmissionGuarantee , IntoDiagnosticArg , MultiSpan , SubdiagMessageOp ,
55} ;
66use rustc_hir as hir;
77use rustc_hir:: FnRetTy ;
@@ -225,7 +225,7 @@ pub enum RegionOriginNote<'a> {
225225}
226226
227227impl AddToDiagnostic for RegionOriginNote < ' _ > {
228- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
228+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
229229 self ,
230230 diag : & mut Diag < ' _ , G > ,
231231 _f : F ,
@@ -290,7 +290,7 @@ pub enum LifetimeMismatchLabels {
290290}
291291
292292impl AddToDiagnostic for LifetimeMismatchLabels {
293- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
293+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
294294 self ,
295295 diag : & mut Diag < ' _ , G > ,
296296 _f : F ,
@@ -338,7 +338,7 @@ pub struct AddLifetimeParamsSuggestion<'a> {
338338}
339339
340340impl AddToDiagnostic for AddLifetimeParamsSuggestion < ' _ > {
341- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
341+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
342342 self ,
343343 diag : & mut Diag < ' _ , G > ,
344344 _f : F ,
@@ -440,7 +440,7 @@ pub struct IntroducesStaticBecauseUnmetLifetimeReq {
440440}
441441
442442impl AddToDiagnostic for IntroducesStaticBecauseUnmetLifetimeReq {
443- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
443+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
444444 mut self ,
445445 diag : & mut Diag < ' _ , G > ,
446446 _f : F ,
@@ -759,7 +759,7 @@ pub struct ConsiderBorrowingParamHelp {
759759}
760760
761761impl AddToDiagnostic for ConsiderBorrowingParamHelp {
762- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
762+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
763763 self ,
764764 diag : & mut Diag < ' _ , G > ,
765765 f : F ,
@@ -804,7 +804,7 @@ pub struct DynTraitConstraintSuggestion {
804804}
805805
806806impl AddToDiagnostic for DynTraitConstraintSuggestion {
807- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
807+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
808808 self ,
809809 diag : & mut Diag < ' _ , G > ,
810810 f : F ,
@@ -851,7 +851,7 @@ pub struct ReqIntroducedLocations {
851851}
852852
853853impl AddToDiagnostic for ReqIntroducedLocations {
854- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
854+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
855855 mut self ,
856856 diag : & mut Diag < ' _ , G > ,
857857 f : F ,
@@ -874,7 +874,7 @@ pub struct MoreTargeted {
874874}
875875
876876impl AddToDiagnostic for MoreTargeted {
877- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
877+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
878878 self ,
879879 diag : & mut Diag < ' _ , G > ,
880880 _f : F ,
@@ -1297,7 +1297,7 @@ pub struct SuggestTuplePatternMany {
12971297}
12981298
12991299impl AddToDiagnostic for SuggestTuplePatternMany {
1300- fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagnosticMessageOp < G > > (
1300+ fn add_to_diagnostic_with < G : EmissionGuarantee , F : SubdiagMessageOp < G > > (
13011301 self ,
13021302 diag : & mut Diag < ' _ , G > ,
13031303 f : F ,
0 commit comments