Skip to content

Commit 02c9e61

Browse files
paritytech-release-backport-bot[bot]koutegithub-actions[bot]EgorPopelyaevggwpez
authored
[stable2503] Backport #8198 (#8207)
Backport #8198 into `stable2503` from koute. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Koute <[email protected]> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Egor_P <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]>
1 parent ed79c00 commit 02c9e61

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

prdoc/pr_8198.prdoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title: Remove `#[no_mangle]` from the panic handler
2+
doc:
3+
- audience: Runtime Dev
4+
description: |-
5+
Fixes https://github.com/paritytech/polkadot-sdk/issues/8190
6+
7+
Remove useless `#[no_mangle]` from the panic handler which screws up the panic handling machinery on recent versions of Rust.
8+
crates:
9+
- name: substrate-wasm-builder
10+
bump: patch
11+
- name: sp-io
12+
bump: patch

substrate/primitives/io/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,6 @@ pub fn unreachable() -> ! {
17711771
/// A default panic handler for the runtime environment.
17721772
#[cfg(all(not(feature = "disable_panic_handler"), substrate_runtime))]
17731773
#[panic_handler]
1774-
#[no_mangle]
17751774
pub fn panic(info: &core::panic::PanicInfo) -> ! {
17761775
let message = alloc::format!("{}", info);
17771776
#[cfg(feature = "improved_panic_error_reporting")]

0 commit comments

Comments
 (0)