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:
parent
6a95dee395
commit
ed95f397cf
3 changed files with 13 additions and 13 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue