about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-13 19:16:43 +0100
committerGitHub <noreply@github.com>2023-01-13 19:16:43 +0100
commite4d01047547ba7fa3939e70e69df39e7bef78c5a (patch)
treedc6f44f8b8e0a595a2c7d662fef51e10a2ae2736 /compiler/rustc_interface/src/errors.rs
parent57b371ab145698bce32425dc8566bcf80ac98f63 (diff)
parent549ece703393bf78c7567605862496435cae7202 (diff)
downloadrust-e4d01047547ba7fa3939e70e69df39e7bef78c5a.tar.gz
rust-e4d01047547ba7fa3939e70e69df39e7bef78c5a.zip
Rollup merge of #106678 - Veykril:proc-macro-panic-abort, r=eholk
Warn when using panic-strategy abort for proc-macro crates

See https://github.com/rust-lang/rust/issues/82320, this simply warns for now as that seems like the best step that can be immediately taken (opposed to straight up rejecting or ignoring)
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
-rw-r--r--compiler/rustc_interface/src/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/errors.rs b/compiler/rustc_interface/src/errors.rs
index f5135c78dc8..15d7e977bbe 100644
--- a/compiler/rustc_interface/src/errors.rs
+++ b/compiler/rustc_interface/src/errors.rs
@@ -87,3 +87,7 @@ pub struct FailedWritingFile<'a> {
     pub path: &'a Path,
     pub error: io::Error,
 }
+
+#[derive(Diagnostic)]
+#[diag(interface_proc_macro_crate_panic_abort)]
+pub struct ProcMacroCratePanicAbort;