diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-04-09 15:12:19 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-04-09 15:12:19 +0000 |
| commit | 45eb938b096e9d506d835d870b5ced78137b6681 (patch) | |
| tree | 20183854953781716f4991b90582c782660c82c9 /example | |
| parent | 8b447bcdd84260830251d19cb5152d78a6bea595 (diff) | |
| download | rust-45eb938b096e9d506d835d870b5ced78137b6681.tar.gz rust-45eb938b096e9d506d835d870b5ced78137b6681.zip | |
Rustup to rustc 1.70.0-nightly (af06dce64 2023-04-08)
Diffstat (limited to 'example')
| -rw-r--r-- | example/mini_core.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs index 5792ccd7cea..6ab226b4691 100644 --- a/example/mini_core.rs +++ b/example/mini_core.rs @@ -480,6 +480,15 @@ fn panic_bounds_check(index: usize, len: usize) -> ! { } } +#[lang = "panic_cannot_unwind"] +#[track_caller] +fn panic_cannot_unwind() -> ! { + unsafe { + libc::puts("panic in a function that cannot unwind\n\0" as *const str as *const i8); + intrinsics::abort(); + } +} + #[lang = "eh_personality"] fn eh_personality() -> ! { loop {} |
