1
1
use hir:: GenericParamKind ;
2
2
use rustc_errors:: {
3
3
codes:: * , AddToDiagnostic , Applicability , Diag , DiagMessage , DiagStyledString ,
4
- EmissionGuarantee , IntoDiagnosticArg , MultiSpan , SubdiagnosticMessageOp ,
4
+ EmissionGuarantee , IntoDiagnosticArg , MultiSpan , SubdiagMessageOp ,
5
5
} ;
6
6
use rustc_hir as hir;
7
7
use rustc_hir:: FnRetTy ;
@@ -225,7 +225,7 @@ pub enum RegionOriginNote<'a> {
225
225
}
226
226
227
227
impl 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 > > (
229
229
self ,
230
230
diag : & mut Diag < ' _ , G > ,
231
231
_f : F ,
@@ -290,7 +290,7 @@ pub enum LifetimeMismatchLabels {
290
290
}
291
291
292
292
impl 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 > > (
294
294
self ,
295
295
diag : & mut Diag < ' _ , G > ,
296
296
_f : F ,
@@ -338,7 +338,7 @@ pub struct AddLifetimeParamsSuggestion<'a> {
338
338
}
339
339
340
340
impl 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 > > (
342
342
self ,
343
343
diag : & mut Diag < ' _ , G > ,
344
344
_f : F ,
@@ -440,7 +440,7 @@ pub struct IntroducesStaticBecauseUnmetLifetimeReq {
440
440
}
441
441
442
442
impl 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 > > (
444
444
mut self ,
445
445
diag : & mut Diag < ' _ , G > ,
446
446
_f : F ,
@@ -759,7 +759,7 @@ pub struct ConsiderBorrowingParamHelp {
759
759
}
760
760
761
761
impl 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 > > (
763
763
self ,
764
764
diag : & mut Diag < ' _ , G > ,
765
765
f : F ,
@@ -804,7 +804,7 @@ pub struct DynTraitConstraintSuggestion {
804
804
}
805
805
806
806
impl 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 > > (
808
808
self ,
809
809
diag : & mut Diag < ' _ , G > ,
810
810
f : F ,
@@ -851,7 +851,7 @@ pub struct ReqIntroducedLocations {
851
851
}
852
852
853
853
impl 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 > > (
855
855
mut self ,
856
856
diag : & mut Diag < ' _ , G > ,
857
857
f : F ,
@@ -874,7 +874,7 @@ pub struct MoreTargeted {
874
874
}
875
875
876
876
impl 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 > > (
878
878
self ,
879
879
diag : & mut Diag < ' _ , G > ,
880
880
_f : F ,
@@ -1297,7 +1297,7 @@ pub struct SuggestTuplePatternMany {
1297
1297
}
1298
1298
1299
1299
impl 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 > > (
1301
1301
self ,
1302
1302
diag : & mut Diag < ' _ , G > ,
1303
1303
f : F ,
0 commit comments