Skip to content

Commit

Permalink
Auto merge of #129491 - StackOverflowExcept1on:master, r=m-ou-se
Browse files Browse the repository at this point in the history
Pass `fmt::Arguments` by reference to `PanicInfo` and `PanicMessage`

Resolves #129330

For some reason after #115974 and #126732 optimizations applied to panic handler became worse and compiler stopped removing panic locations if they are not used in the panic message. This PR fixes that and maybe we can merge it into beta before rust 1.81 is released.

Note: optimization only works with `lto = "fat"`.

r? libs-api
  • Loading branch information
bors committed Sep 18, 2024
2 parents 1197206 + 1126c8a commit 1b00a09
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 1b00a09

Please sign in to comment.