diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2023-01-10 13:57:42 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2023-01-13 10:13:49 +0100 |
| commit | 549ece703393bf78c7567605862496435cae7202 (patch) | |
| tree | 07a03f2d2fe6b04d7283e26d84e9b989d143fc2c /compiler/rustc_interface/src/errors.rs | |
| parent | 279f1c9d8c26a8d227ae8ab806d262bb784b251b (diff) | |
| download | rust-549ece703393bf78c7567605862496435cae7202.tar.gz rust-549ece703393bf78c7567605862496435cae7202.zip | |
Warn when using panic-strategy abort for proc-macro crates
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
| -rw-r--r-- | compiler/rustc_interface/src/errors.rs | 4 |
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; |
