-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Various cleanups around scalar layout restrictions #103917
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
17 commits
Select commit
Hold shift + click to select a range
b555472
Add helper method to `ScalarInt`
oli-obk 2a94a2d
Prefer not accessing the private field of newtype_index types
oli-obk 2b8963a
Some manual formatting of let..else statements
oli-obk c3eb8f2
`rustc_layout_scalar_valid_range` can be applied to scalar pairs and …
oli-obk 6773e7e
More manual formatting
oli-obk 9909cb9
Make the ICEs in the mir typechecker have more spans helpful
oli-obk 5cbf172
Print a trace through types to show how to get to the problematic type
oli-obk 2bed079
Compute layout instead of manually procesisng the layout restriction…
oli-obk ccaa28b
Don't try to compute the layout of generic types.
oli-obk 545fcca
Add a test for scalar pair layout validation
oli-obk 98c550e
Reinstate the previous compact form of "in this field" errors
oli-obk 2e79f5f
Move a comment to the right place
oli-obk fcb1f18
Don't show fields from other crates
oli-obk d7f5d78
Simplify and document range layout computation
oli-obk 9b6f8e5
Add a test for OOB ranges
oli-obk 5446a52
Add a `because` to errors derived from fields
oli-obk 208bb93
Use "must be init" instead of "must not be uninit" everywhere
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.