-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactorings in preparation for const value trees #77227
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
The head ref may contain hidden characters: "const_val_\u{1F333}_prelude"
Merged
Changes from 20 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
362123d
Split the "raw integer bytes" part out of `Scalar`
oli-obk eac3099
Encode `ScalarInt::bytes` as `u128` instead of `[u8; 16]` to see if t…
oli-obk ed7a4ad
32 bit platforms don't have 64 bit pointers
oli-obk 02131f4
Use packed struct instead of manually packing into an array
oli-obk c478574
Explain the use of blocks around `self.data` accesses
oli-obk 3a79708
Fix cranelift build
oli-obk df4d717
s/Scalar::Raw/Scalar::Int
oli-obk e5258e6
Remove outdated FIXME
oli-obk 1eb300e
Unaligned reads are UB in Rust irrelevant on which platform we are
oli-obk 3ef9dfd
Update comment
oli-obk b8751c1
No need for a `zst` constructor method when we can have a constant
oli-obk 8282d52
Replace `Scalar::zst` with a `Scalar::ZST` constant
oli-obk d1074ed
catch conversion errors during `ptr_sized_op`
oli-obk 0347ca7
Explain why we forward to self-printing during self-printing
oli-obk f03b18b
Add `is_null` helper
oli-obk 500af76
Add helper for getting an `int` out of a `Scalar`
oli-obk dad0036
Do not raise interp errors from the scalar int module
oli-obk 98b70c9
Simplify `assert_bits` impl
oli-obk cb1cf6a
Update compiler/rustc_middle/src/ty/consts/int.rs
oli-obk e67c768
Move ZST constant to the top of the impl block
oli-obk abacaf2
`u128` truncation and sign extension are not just interpreter related
oli-obk 2e53625
Document an `unwrap`
oli-obk 97bfff1
Make `ScalarInt` entirely independent of MIR interpretation
oli-obk 6e6c8a8
`u64::try_from` will now fail if `ScalarInt` isn't exactly 64 bits, t…
oli-obk 5f087f0
Update compiler/rustc_target/src/abi/mod.rs
oli-obk 332750f
Update compiler/rustc_target/src/abi/mod.rs
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.