diff options
| author | bors <bors@rust-lang.org> | 2023-12-19 05:07:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-19 05:07:32 +0000 |
| commit | f36251f689c470aaa81c31710b96fc3e51029852 (patch) | |
| tree | 5abaccd88ccb2f5852113cbbb76418387134d508 /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | 1929606c3e31385719253c21be0360a51c787161 (diff) | |
| parent | 0f70ced1280124e2078ec5838ac173c13f400e2e (diff) | |
| download | rust-f36251f689c470aaa81c31710b96fc3e51029852.tar.gz rust-f36251f689c470aaa81c31710b96fc3e51029852.zip | |
Auto merge of #3232 - rust-lang:rustup-2023-12-19, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/errors.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_gcc/src/errors.rs b/compiler/rustc_codegen_gcc/src/errors.rs index 5fc4b12d7e6..766d90cf724 100644 --- a/compiler/rustc_codegen_gcc/src/errors.rs +++ b/compiler/rustc_codegen_gcc/src/errors.rs @@ -1,5 +1,6 @@ use rustc_errors::{ - DiagnosticArgValue, DiagnosticBuilder, ErrorGuaranteed, Handler, IntoDiagnostic, IntoDiagnosticArg, + DiagCtxt, DiagnosticArgValue, DiagnosticBuilder, ErrorGuaranteed, IntoDiagnostic, + IntoDiagnosticArg, }; use rustc_macros::{Diagnostic, Subdiagnostic}; use rustc_span::Span; @@ -111,8 +112,8 @@ pub(crate) struct TargetFeatureDisableOrEnable<'a> { pub(crate) struct MissingFeatures; impl IntoDiagnostic<'_, ErrorGuaranteed> for TargetFeatureDisableOrEnable<'_> { - fn into_diagnostic(self, handler: &'_ Handler) -> DiagnosticBuilder<'_, ErrorGuaranteed> { - let mut diag = handler.struct_err(fluent::codegen_gcc_target_feature_disable_or_enable); + fn into_diagnostic(self, dcx: &'_ DiagCtxt) -> DiagnosticBuilder<'_, ErrorGuaranteed> { + let mut diag = dcx.struct_err(fluent::codegen_gcc_target_feature_disable_or_enable); if let Some(span) = self.span { diag.set_span(span); }; |
