about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-29 03:57:17 +0000
committerbors <bors@rust-lang.org>2023-09-29 03:57:17 +0000
commita327e753bc873d5f5dc1820151a6cdf3dac0a39c (patch)
tree4aec4fff87958e16d25f73303d722549b4eff0a0 /compiler/rustc_codegen_llvm/src/errors.rs
parent60bb5192d169d301db9be08141d852592142d3b3 (diff)
parentbdd66b3f98e8c3907aad82f16726f0a233ea4ba8 (diff)
downloadrust-a327e753bc873d5f5dc1820151a6cdf3dac0a39c.tar.gz
rust-a327e753bc873d5f5dc1820151a6cdf3dac0a39c.zip
Auto merge of #115986 - onur-ozkan:fix-cross-compilation-lto-problem, r=wesleywiser
allow LTO on `proc-macro` crates with `-Zdylib-lto`

ref https://github.com/rust-lang/rust/pull/115986#issuecomment-1732316361

Fixes #110296
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/errors.rs b/compiler/rustc_codegen_llvm/src/errors.rs
index 264c273ba30..665d195790c 100644
--- a/compiler/rustc_codegen_llvm/src/errors.rs
+++ b/compiler/rustc_codegen_llvm/src/errors.rs
@@ -139,6 +139,10 @@ pub(crate) struct LtoDisallowed;
 pub(crate) struct LtoDylib;
 
 #[derive(Diagnostic)]
+#[diag(codegen_llvm_lto_proc_macro)]
+pub(crate) struct LtoProcMacro;
+
+#[derive(Diagnostic)]
 #[diag(codegen_llvm_lto_bitcode_from_rlib)]
 pub(crate) struct LtoBitcodeFromRlib {
     pub llvm_err: String,