-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Validate constants during const_eval_raw
#74949
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift click to select a range
083f1d7
Validate constants during `const_eval_raw`
oli-obk 2d7ac72
Stop using the `const_eval` query for initializers of statics
oli-obk 6d3c7bb
Update codegen tests
oli-obk 4397d66
Document `op_to_const`'s purpose
oli-obk b1bd34d
`turn_into_const` is infallible
oli-obk 48f366f
Replace `and_then` `map_err` `and_then` chain with a match
oli-obk a6c60bb
Clarify a statement in UB test
oli-obk dd9702a
Do not call the `const_eval` query in mir interpretation except for c…
oli-obk 40c2087
We can make const eval sound, it's just super expensive
oli-obk 69a6be7
Rename const eval queries to reflect the validation changes
oli-obk 888afd5
Unify the names of const eval queries and their return types
oli-obk 90708c1
Fix rebase fallout and make the test work with debug info
oli-obk 182ed85
Address review comments
oli-obk c3c8c98
Rustfmt
oli-obk ef04e68
Update compile-fail tests
oli-obk c5889e4
Update incremental tests
oli-obk b8e6883
Reflect the "do not call this query directly" mentality in its name
oli-obk 34785fc
Make codegen test bitwidth-independent
oli-obk 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
Prev
Previous commit
Make codegen test bitwidth-independent
- Loading branch information
commit 34785fcc4a56c4f705a1f5c9929689e5c46e1fbc
There are no files selected for viewing
This file contains 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
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.
I do not have the slightest idea what is happening here, even after reading the comments -- all I can see is that you are matching very different things than before, for whatever reason. Why did anything change here to begin with? Do you want to find someone to actually check this?