@@ -2,7 +2,7 @@ use std::borrow::Cow;
22
33use rustc_ast:: token:: Token ;
44use rustc_ast:: { Path , Visibility } ;
5- use rustc_errors:: { AddToDiagnostic , Applicability , EmissionGuarantee , IntoDiagnostic } ;
5+ use rustc_errors:: { AddToDiagnostic , Applicability , ErrorGuaranteed , IntoDiagnostic } ;
66use rustc_macros:: { Diagnostic , Subdiagnostic } ;
77use rustc_session:: errors:: ExprParenthesesNeeded ;
88use rustc_span:: edition:: { Edition , LATEST_STABLE_EDITION } ;
@@ -1038,12 +1038,12 @@ pub(crate) struct ExpectedIdentifier {
10381038 pub help_cannot_start_number : Option < HelpIdentifierStartsWithNumber > ,
10391039}
10401040
1041- impl < ' a , G : EmissionGuarantee > IntoDiagnostic < ' a , G > for ExpectedIdentifier {
1041+ impl < ' a > IntoDiagnostic < ' a > for ExpectedIdentifier {
10421042 #[ track_caller]
10431043 fn into_diagnostic (
10441044 self ,
10451045 handler : & ' a rustc_errors:: Handler ,
1046- ) -> rustc_errors:: DiagnosticBuilder < ' a , G > {
1046+ ) -> rustc_errors:: DiagnosticBuilder < ' a , ErrorGuaranteed > {
10471047 let token_descr = TokenDescription :: from_token ( & self . token ) ;
10481048
10491049 let mut diag = handler. struct_diagnostic ( match token_descr {
@@ -1095,12 +1095,12 @@ pub(crate) struct ExpectedSemi {
10951095 pub sugg : ExpectedSemiSugg ,
10961096}
10971097
1098- impl < ' a , G : EmissionGuarantee > IntoDiagnostic < ' a , G > for ExpectedSemi {
1098+ impl < ' a > IntoDiagnostic < ' a > for ExpectedSemi {
10991099 #[ track_caller]
11001100 fn into_diagnostic (
11011101 self ,
11021102 handler : & ' a rustc_errors:: Handler ,
1103- ) -> rustc_errors:: DiagnosticBuilder < ' a , G > {
1103+ ) -> rustc_errors:: DiagnosticBuilder < ' a , ErrorGuaranteed > {
11041104 let token_descr = TokenDescription :: from_token ( & self . token ) ;
11051105
11061106 let mut diag = handler. struct_diagnostic ( match token_descr {
0 commit comments