about summary refs log tree commit diff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2022-08-26 20:50:37 -0700
committerEllis Hoag <ellis.sparky.hoag@gmail.com>2022-09-24 10:24:48 -0700
commit33b58ebf22bed790dacf2ef82351a95883559b77 (patch)
tree1062d8b668fe6248b20f8f5b8e18ef1a0ba053b5 /src/errors.rs
parent7fc07caf6798dcb29f91a6a57fd63e3d3ffa34ee (diff)
Add LTONotSupported
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs
index e0c7dca8e32..1b2953952ef 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -15,6 +15,10 @@ pub(crate) struct LinkageConstOrMutType {
 }
 
 #[derive(SessionDiagnostic)]
+#[diag(codegen_gcc::lto_not_supported)]
+pub(crate) struct LTONotSupported {}
+
+#[derive(SessionDiagnostic)]
 #[diag(codegen_gcc::unwinding_inline_asm)]
 pub(crate) struct UnwindingInlineAsm {
     #[primary_span]