-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
formalize the panic interface #21520
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
04e694a
move std.time.sleep to std.Thread.sleep
andrewrk 4f8d244
remove formatted panics
andrewrk 9ccf8d3
fixes for this branch
andrewrk 76f0b6e
delete the old panic stuff again
andrewrk f2c8940
reintroduce the std.builtin safety panic helpers
andrewrk b66cc5a
reimplement integer overflow safety panic function calls
andrewrk 70746d5
better codegen for `@panic` with comptime-known operand
andrewrk 61b2010
fix crash report not using mutexes correctly
andrewrk e888782
compile error instead of crash when root panic fn wrong
andrewrk 231783f
update test cases to new panic API
andrewrk fcfbedc
work around riscv64 backend deficiencies
andrewrk c9c080a
embrace panic helpers
andrewrk 1b491e6
fixes and make sema report errors when std.builtin wrong
andrewrk db8c074
fix still calling std.builtin.panic sometimes
andrewrk 7f4c0e0
update safety test cases to new panic API
andrewrk 37d1da5
I think it's better to put the imports at the top
andrewrk 5b1a9fb
update crash report to the new panic interface
andrewrk 2e14cbe
Sema: better utility function semantics
andrewrk 737b581
disable plan9 test
andrewrk 777e722
macho: increase pre-allocated vmsize for __TEXT_ZIG segment
kubkon 2857ca1
revert safety test cases to rely on deprecated old API
andrewrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a namespace instead of a comptime struct like
std.Options
to avoid generating unused decls? Shouldn't only accessing the fields at comptime already avoid unused default values being codegened?