Improve the ABI between the panic runtime and libstd - #161048
Merged
Merged
Conversation
Collaborator
|
r? @clarfonthey rustbot has assigned @clarfonthey. Use Why was this reviewer chosen?The reviewer was selected based on:
|
bjorn3
force-pushed
the
refactor_unwind5
branch
from
August 14, 2026 09:45
3e75450 to
8ebd57c
Compare
bjorn3
force-pushed
the
refactor_unwind5
branch
from
August 14, 2026 11:11
8ebd57c to
3ef33b7
Compare
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Member
Author
|
#160440 has been merged, so this is ready for review. |
Contributor
|
Looks fairly reasonable to me. Thank you! @bors r+ |
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 21, 2026
…they Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to rust-lang#160440
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 21, 2026
…they Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to rust-lang#160440
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 21, 2026
…they Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to rust-lang#160440
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 22, 2026
…they Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to rust-lang#160440
rust-bors Bot
pushed a commit
that referenced
this pull request
Aug 22, 2026
…uwer Rollup of 18 pull requests Successful merges: - #151061 (Build rustc and codegen backends with -Zembed-metadata=no) - #157949 (Allow self in const generics) - #158588 (trait_selection: fix assumptions-on-binders diagnostics) - #159954 (core: implement float conversion methods) - #160136 (Add `Default` implementation for `std::sync::Once`) - #160835 (resolver diagnostics: don't swallow labels and point out similar items as a note, not a label) - #161048 (Improve the ABI between the panic runtime and libstd) - #161292 (Add safety comments in alloc::Wtf8) - #161444 (Add some `rustc_type_ir` comments) - #161465 (Remove leftover immediate creation) - #152433 (Use `symlink_dir` to create junctions on Windows instead of trying to use symbolic links in `copy_link_internal`) - #159098 (Add Arc/Rc::strong_count_from_raw) - #159282 (Update documentation for `-Zdump-dep-graph`) - #161401 (Remove fields from TypeKind: Bool, Char, Float and Int) - #161431 (bootstrap: (offload) be stricter about selected compiler and paths) - #161451 (Avoid arming the Windows TLS destructor guard in fibers) - #161463 (Add myself to mailmap) - #161476 (Use bitset for locals_with_use_data) Failed merges: - #161443 (add internal DSL for testing binders)
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Aug 22, 2026
…they Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to rust-lang#160440
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 22, 2026
…they Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to rust-lang#160440
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 22, 2026
…they Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to rust-lang#160440
This was referenced Aug 22, 2026
rust-bors Bot
pushed a commit
that referenced
this pull request
Aug 22, 2026
…uwer Rollup of 19 pull requests Successful merges: - #151061 (Build rustc and codegen backends with -Zembed-metadata=no) - #154992 (Error on projection of dyn noncompat type in old trait solver) - #157949 (Allow self in const generics) - #158588 (trait_selection: fix assumptions-on-binders diagnostics) - #159954 (core: implement float conversion methods) - #160136 (Add `Default` implementation for `std::sync::Once`) - #160835 (resolver diagnostics: don't swallow labels and point out similar items as a note, not a label) - #161048 (Improve the ABI between the panic runtime and libstd) - #161292 (Add safety comments in alloc::Wtf8) - #161444 (Add some `rustc_type_ir` comments) - #161465 (Remove leftover immediate creation) - #159098 (Add Arc/Rc::strong_count_from_raw) - #159282 (Update documentation for `-Zdump-dep-graph`) - #161401 (Remove fields from TypeKind: Bool, Char, Float and Int) - #161431 (bootstrap: (offload) be stricter about selected compiler and paths) - #161451 (Avoid arming the Windows TLS destructor guard in fibers) - #161463 (Add myself to mailmap) - #161476 (Use bitset for locals_with_use_data) - #161483 (Warn about running ui-fulldeps tests in stage 1) Failed merges: - #161443 (add internal DSL for testing binders)
rust-bors Bot
pushed a commit
that referenced
this pull request
Aug 22, 2026
Rollup merge of #161048 - bjorn3:refactor_unwind5, r=clarfonthey Improve the ABI between the panic runtime and libstd * Use the Rust ABI rather than C ABI * Mark some extern functions as safe * Move `PanicPayload` from libcore to liballoc and directly reference `Box<dyn Any>` instead of `*mut dyn Any` * Avoid an unnecessary allocation with panic=abort Follow up to #160440
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PanicPayloadfrom libcore to liballoc and directly referenceBox<dyn Any>instead of*mut dyn AnyFollow up to #160440