1
Fork 0

Always use G for EmissionGuarantee type variables.

That's what is mostly used. This commit changes a few `EM` and `E` and
`T` type variables to `G`.
This commit is contained in:
Nicholas Nethercote 2023-12-04 08:46:50 +11:00
parent 6a95dee395
commit ed95f397cf
3 changed files with 13 additions and 13 deletions

View file

@ -13,12 +13,12 @@ pub struct FeatureGateError {
pub explain: DiagnosticMessage,
}
impl<'a, T: EmissionGuarantee> IntoDiagnostic<'a, T> for FeatureGateError {
impl<'a, G: EmissionGuarantee> IntoDiagnostic<'a, G> for FeatureGateError {
#[track_caller]
fn into_diagnostic(
self,
handler: &'a rustc_errors::Handler,
) -> rustc_errors::DiagnosticBuilder<'a, T> {
) -> rustc_errors::DiagnosticBuilder<'a, G> {
let mut diag = handler.struct_diagnostic(self.explain);
diag.set_span(self.span);
diag.code(error_code!(E0658));