@@ -2,7 +2,7 @@ use std::borrow::Cow;
2
2
3
3
use rustc_ast:: token:: Token ;
4
4
use rustc_ast:: { Path , Visibility } ;
5
- use rustc_errors:: { AddToDiagnostic , Applicability , EmissionGuarantee , IntoDiagnostic } ;
5
+ use rustc_errors:: { AddToDiagnostic , Applicability , ErrorGuaranteed , IntoDiagnostic } ;
6
6
use rustc_macros:: { Diagnostic , Subdiagnostic } ;
7
7
use rustc_session:: errors:: ExprParenthesesNeeded ;
8
8
use rustc_span:: edition:: { Edition , LATEST_STABLE_EDITION } ;
@@ -1038,12 +1038,12 @@ pub(crate) struct ExpectedIdentifier {
1038
1038
pub help_cannot_start_number : Option < HelpIdentifierStartsWithNumber > ,
1039
1039
}
1040
1040
1041
- impl < ' a , G : EmissionGuarantee > IntoDiagnostic < ' a , G > for ExpectedIdentifier {
1041
+ impl < ' a > IntoDiagnostic < ' a > for ExpectedIdentifier {
1042
1042
#[ track_caller]
1043
1043
fn into_diagnostic (
1044
1044
self ,
1045
1045
handler : & ' a rustc_errors:: Handler ,
1046
- ) -> rustc_errors:: DiagnosticBuilder < ' a , G > {
1046
+ ) -> rustc_errors:: DiagnosticBuilder < ' a , ErrorGuaranteed > {
1047
1047
let token_descr = TokenDescription :: from_token ( & self . token ) ;
1048
1048
1049
1049
let mut diag = handler. struct_diagnostic ( match token_descr {
@@ -1095,12 +1095,12 @@ pub(crate) struct ExpectedSemi {
1095
1095
pub sugg : ExpectedSemiSugg ,
1096
1096
}
1097
1097
1098
- impl < ' a , G : EmissionGuarantee > IntoDiagnostic < ' a , G > for ExpectedSemi {
1098
+ impl < ' a > IntoDiagnostic < ' a > for ExpectedSemi {
1099
1099
#[ track_caller]
1100
1100
fn into_diagnostic (
1101
1101
self ,
1102
1102
handler : & ' a rustc_errors:: Handler ,
1103
- ) -> rustc_errors:: DiagnosticBuilder < ' a , G > {
1103
+ ) -> rustc_errors:: DiagnosticBuilder < ' a , ErrorGuaranteed > {
1104
1104
let token_descr = TokenDescription :: from_token ( & self . token ) ;
1105
1105
1106
1106
let mut diag = handler. struct_diagnostic ( match token_descr {
0 commit comments