about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2023-12-14 16:07:48 -0800
committerGitHub <noreply@github.com>2023-12-14 16:07:48 -0800
commit9e872b7cd8cd28314b9426e13ac586dad6fc9c2e (patch)
tree33b238d5fc9b8970f6a89273089982dd0bd7ce56 /compiler/rustc_codegen_llvm
parent576a74b8c9dc72704309db8fc12a2f1ca1cd7c59 (diff)
parent9a7841251115c79fe7e1c12e2e5d637e19ad940a (diff)
downloadrust-9e872b7cd8cd28314b9426e13ac586dad6fc9c2e.tar.gz
rust-9e872b7cd8cd28314b9426e13ac586dad6fc9c2e.zip
Rollup merge of #118933 - nnethercote:cleanup-errors-even-more, r=compiler-errors
Cleanup errors handlers even more

A sequel to #118587.

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/errors.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/errors.rs b/compiler/rustc_codegen_llvm/src/errors.rs
index 57ea13ddcd6..e6e37a02335 100644
--- a/compiler/rustc_codegen_llvm/src/errors.rs
+++ b/compiler/rustc_codegen_llvm/src/errors.rs
@@ -107,7 +107,8 @@ impl IntoDiagnostic<'_, FatalError> for ParseTargetMachineConfig<'_> {
         let (message, _) = diag.styled_message().first().expect("`LlvmError` with no message");
         let message = handler.eagerly_translate_to_string(message.clone(), diag.args());
 
-        let mut diag = handler.struct_diagnostic(fluent::codegen_llvm_parse_target_machine_config);
+        let mut diag =
+            handler.struct_almost_fatal(fluent::codegen_llvm_parse_target_machine_config);
         diag.set_arg("error", message);
         diag
     }