about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorSLASHLogin <loginmlgxd@gmail.com>2022-10-30 16:07:04 +0100
committerSLASHLogin <loginmlgxd@gmail.com>2022-11-09 14:56:21 +0100
commit3728e95596fa937eac9188af0ffe177e94635a5b (patch)
tree0db0485167b6efc955348d34cf86f0d74efcd9c4 /compiler/rustc_codegen_llvm/src/errors.rs
parent67394e794519542490293487134f6d6293614ab1 (diff)
downloadrust-3728e95596fa937eac9188af0ffe177e94635a5b.tar.gz
rust-3728e95596fa937eac9188af0ffe177e94635a5b.zip
Port diagnostics created by `Handler`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/errors.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/errors.rs b/compiler/rustc_codegen_llvm/src/errors.rs
index db3ca6a7783..c08827b9521 100644
--- a/compiler/rustc_codegen_llvm/src/errors.rs
+++ b/compiler/rustc_codegen_llvm/src/errors.rs
@@ -117,6 +117,17 @@ pub(crate) struct UnknownArchiveKind<'a> {
     pub kind: &'a str,
 }
 
+#[derive(Diagnostic)]
+#[diag(codegen_llvm_dynamic_linking_with_lto)]
+#[note]
+pub(crate) struct DynamicLinkingWithLTO;
+
+#[derive(Diagnostic)]
+#[diag(codegen_llvm_fail_parsing_target_machine_config_to_target_machine)]
+pub(crate) struct FailParsingTargetMachineConfigToTargetMachine {
+    pub error: String,
+}
+
 pub(crate) struct TargetFeatureDisableOrEnable<'a> {
     pub features: &'a [&'a str],
     pub span: Option<Span>,