diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-05 14:52:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-05 14:52:44 -0500 |
| commit | e8133700a2e1ea4ac2f6d40e5820d4cffdf5f0d5 (patch) | |
| tree | dbbacf6d9e16abea9a6fd37b49b82a31dcba96f7 /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | dbcde5717194cf69da909dabf8fff5dbb3634000 (diff) | |
| parent | 7811c976d1a6b014bff0fdada7aaaa1774d31b82 (diff) | |
| download | rust-e8133700a2e1ea4ac2f6d40e5820d4cffdf5f0d5.tar.gz rust-e8133700a2e1ea4ac2f6d40e5820d4cffdf5f0d5.zip | |
Rollup merge of #118587 - nnethercote:cleanup-error-handlers-2, r=compiler-errors
Cleanup error handlers some more A sequel to #118470. r? ```@compiler-errors```
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/errors.rs b/compiler/rustc_codegen_gcc/src/errors.rs index 4bf3b71f503..5fc4b12d7e6 100644 --- a/compiler/rustc_codegen_gcc/src/errors.rs +++ b/compiler/rustc_codegen_gcc/src/errors.rs @@ -111,8 +111,8 @@ pub(crate) struct TargetFeatureDisableOrEnable<'a> { pub(crate) struct MissingFeatures; impl IntoDiagnostic<'_, ErrorGuaranteed> for TargetFeatureDisableOrEnable<'_> { - fn into_diagnostic(self, sess: &'_ Handler) -> DiagnosticBuilder<'_, ErrorGuaranteed> { - let mut diag = sess.struct_err(fluent::codegen_gcc_target_feature_disable_or_enable); + fn into_diagnostic(self, handler: &'_ Handler) -> DiagnosticBuilder<'_, ErrorGuaranteed> { + let mut diag = handler.struct_err(fluent::codegen_gcc_target_feature_disable_or_enable); if let Some(span) = self.span { diag.set_span(span); }; |
