You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#110721 - lukas-code:panic-fmt, r=Amanieu
format panic message only once
For `panic!` and friends, the `std` panic runtime will always set the `.payload()` of `PanicInfo` to the formatted string. The linked issues show that formatting the message twice can cause problems, so we simply print the already formatted message instead of formatting it again. We can't remove the preformatted payload, because it can be observed by custom panic hooks.
fixesrust-lang#110717fixesrust-itertools/itertools#694
cc `@Amanieu` who broke this in rust-lang#109507
0 commit comments