Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Don't callrust_begin_unwind#802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
tgross35 wants to merge4 commits intorust-lang:master
base:master
Choose a base branch
Loading
fromtgross35:no-rust-begin-unwind

Conversation

tgross35
Copy link
Contributor

No description provided.

@tgross35tgross35force-pushed theno-rust-begin-unwind branch 7 times, most recently fromc7127cb to20a6f93CompareMarch 19, 2025 03:35
`builtins-test-intrinsics` has long included a call to an unmangled`rust_begin_unwind` (the name `rustc` gives the `#[panic_handler]`),since [1], which I believe was intended to ensure panic machinery linkscorrectly. However, since [2], `rust_begin_unwind` is mangled andunavailable for calling directly, which explains the recent CI failures.Instead of calling the function directly, we can just panic; do so here.Additionally, put this call behind `black_box(false)` rather thanunconditional, which means we can run the binary and ensure there are noruntime issues.[1]:rust-lang#360[2]:rust-lang/rust#127173
@tgross35tgross35 marked this pull request as draftMarch 19, 2025 03:46
@tgross35
Copy link
ContributorAuthor

Now I see why this was done rather than callingpanic!() in the first place, looks like panic handling needs a lot more symbols (__CxxFrameHandler3,string.h, etc)

tgross35 added a commit to tgross35/compiler-builtins that referenced this pull requestMar 19, 2025
Since [1] this symbol is mangled, meaning it is not easy to calldirectly. A better fix will come in [2] but for now, just disable thatportion of the test.[1]:rust-lang/rust#127173[2]:rust-lang#802
tgross35 added a commit that referenced this pull requestMar 19, 2025
Since [1] this symbol is mangled, meaning it is not easy to calldirectly. A better fix will come in [2] but for now, just disable thatportion of the test.[1]:rust-lang/rust#127173[2]:#802
tgross35 added a commit to tgross35/rust that referenced this pull requestJun 3, 2025
Since [1] this symbol is mangled, meaning it is not easy to calldirectly. A better fix will come in [2] but for now, just disable thatportion of the test.[1]:rust-lang#127173[2]:rust-lang/compiler-builtins#802
tautschnig pushed a commit to model-checking/verify-rust-std that referenced this pull requestJun 17, 2025
Since [1] this symbol is mangled, meaning it is not easy to calldirectly. A better fix will come in [2] but for now, just disable thatportion of the test.[1]:rust-lang#127173[2]:rust-lang/compiler-builtins#802
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@tgross35

[8]ページ先頭

©2009-2025 Movatter.jp