File tree 2 files changed +12
-1
lines changed
substrate/primitives/io/src 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -1771,7 +1771,6 @@ pub fn unreachable() -> ! {
1771
1771
/// A default panic handler for the runtime environment.
1772
1772
#[ cfg( all( not( feature = "disable_panic_handler" ) , substrate_runtime) ) ]
1773
1773
#[ panic_handler]
1774
- #[ no_mangle]
1775
1774
pub fn panic ( info : & core:: panic:: PanicInfo ) -> ! {
1776
1775
let message = alloc:: format!( "{}" , info) ;
1777
1776
#[ cfg( feature = "improved_panic_error_reporting" ) ]
You can’t perform that action at this time.
0 commit comments