diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-04 08:46:50 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-04 18:57:42 +1100 |
| commit | ed95f397cf83a3ca52a66818963e3fd20d6705c3 (patch) | |
| tree | 8a09a45714f896859893bb0d78ffc8a73d46be2d /compiler/rustc_session/src/errors.rs | |
| parent | 6a95dee395b65ecf68712a987df1a2d60debd597 (diff) | |
| download | rust-ed95f397cf83a3ca52a66818963e3fd20d6705c3.tar.gz rust-ed95f397cf83a3ca52a66818963e3fd20d6705c3.zip | |
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`.
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
| -rw-r--r-- | compiler/rustc_session/src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs index 70ee46ea902..f7934ce163d 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -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)); |
