diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-21 16:01:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-21 16:01:34 +0200 |
| commit | 1486b7f91ce18962038ef36d2479e57e27a569ed (patch) | |
| tree | 7e06ceccadc69cf3115de1a8461ce7808a9b1a8e /src/libcore | |
| parent | 6254d7a80a77db4d314353e418d36e1a6317c749 (diff) | |
| parent | 9f374da46781cfe2d297636fe97b2fd9647cb1d9 (diff) | |
| download | rust-1486b7f91ce18962038ef36d2479e57e27a569ed.tar.gz rust-1486b7f91ce18962038ef36d2479e57e27a569ed.zip | |
Rollup merge of #64641 - cuviper:extern-rust-ctypes, r=estebank
Exempt extern "Rust" from improper_ctypes It should be fine for Rust ABIs to involve any Rust type. Fixes #64593.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/panicking.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/panicking.rs b/src/libcore/panicking.rs index 15b7d69c58d..3d2bc24bf24 100644 --- a/src/libcore/panicking.rs +++ b/src/libcore/panicking.rs @@ -71,7 +71,7 @@ pub fn panic_fmt(fmt: fmt::Arguments<'_>, file_line_col: &(&'static str, u32, u3 } // NOTE This function never crosses the FFI boundary; it's a Rust-to-Rust call - #[allow(improper_ctypes)] // PanicInfo contains a trait object which is not FFI safe + #[cfg_attr(boostrap_stdarch_ignore_this, allow(improper_ctypes))] extern "Rust" { #[lang = "panic_impl"] fn panic_impl(pi: &PanicInfo<'_>) -> !; |
