Skip to content

Commit 03e2416

Browse files
authored
Unrolled build for rust-lang#121551
Rollup merge of rust-lang#121551 - nbdd0121:ffi_unwind, r=RalfJung Forbid use of `extern "C-unwind"` inside standard library Those libraries are build with `-C panic=unwind` and is expected to be linkable to `-C panic=abort` library. To ensure unsoundness compiler needs to prevent a `C-unwind` call to exist, as doing so may leak foreign exceptions into `-C panic=abort`. r? ``@RalfJung``
2 parents 381d699 + f08e2d4 commit 03e2416

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

library/alloc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
#![warn(multiple_supertrait_upcastable)]
9393
#![allow(internal_features)]
9494
#![allow(rustdoc::redundant_explicit_links)]
95+
#![deny(ffi_unwind_calls)]
9596
//
9697
// Library features:
9798
// tidy-alphabetical-start

library/core/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
#![allow(incomplete_features)]
107107
#![warn(multiple_supertrait_upcastable)]
108108
#![allow(internal_features)]
109+
#![deny(ffi_unwind_calls)]
109110
// Do not check link redundancy on bootstraping phase
110111
#![allow(rustdoc::redundant_explicit_links)]
111112
//

library/proc_macro/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#![feature(strict_provenance)]
3737
#![recursion_limit = "256"]
3838
#![allow(internal_features)]
39+
#![deny(ffi_unwind_calls)]
3940

4041
#[unstable(feature = "proc_macro_internals", issue = "27812")]
4142
#[doc(hidden)]

0 commit comments

Comments
 (0)