We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6318fe commit ffd1984Copy full SHA for ffd1984
tests/ui/format-no-std.rs
@@ -38,6 +38,17 @@ extern "C" fn rust_eh_personality() {
38
loop {}
39
}
40
41
+/// Workaround for rustc bug: https://github.com/rust-lang/rust/issues/47493,
42
+/// https://github.com/rust-lang/rust/issues/53301.
43
+///
44
+/// It shouldn't even be possible to reach this function, thanks to panic=abort,
45
+/// but liballoc is compiled with unwinding enabled and that ends up making unreachable
46
+/// references to this.
47
+#[no_mangle]
48
+extern "C" fn _Unwind_Resume() -> ! {
49
+ unreachable!("Unwinding not supported");
50
+}
51
+
52
#[no_mangle]
53
extern "C" fn main(_argc: core::ffi::c_int, _argv: *const *const u8) -> core::ffi::c_int {
54
let s = format!("{}", 1_isize);
0 commit comments