-
Couldn't load subscription status.
- Fork 13.9k
Make dataflow-based const qualification the canonical one #66385
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
1924cc8 Remove `QUALIF_ERROR_BIT` checking
ecstatic-morse dbae15a Remove `requires_sync`
ecstatic-morse 4881104 Allow `Validator` to get qualifs for the return place
ecstatic-morse 973b16a Enable standalone const-checking with `Validator`
ecstatic-morse 55da0c0 Use new const-checker for `mir_const_qualif`
ecstatic-morse 6d4e204 Remove `qualify_consts` completely
ecstatic-morse 7527766 Move `delay_span_bug` into `emit_error` for if/loop
ecstatic-morse 3d2bc50 Remove remaining validator mismatch code
ecstatic-morse c8156b9 Remove unnecessary `fmt::Debug` bound
ecstatic-morse 8f5494b Silence miri unleashed warnings in test
ecstatic-morse d1f0ef5 Add explanation of test for validation mismatch
ecstatic-morse 9a2e53a Remove -Z flag for suppressing validation mismatch ICE
ecstatic-morse a4ce201 A `Downcast` is now reached when const-checking a `for` loop
ecstatic-morse 056edc0 Use a bespoke type for the result of `mir_const_qualif`
ecstatic-morse 1e840f8 Use `mir::QualifSet` to store qualifs
ecstatic-morse ea95e94 Fix nits from review
ecstatic-morse a1135cc Remove newtype for qualifs in `rustc_metadata`
ecstatic-morse 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
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.
I wonder if these two fields should have similar doc comments to the
HasMutInteriorandNeedsDroptypes inrustc_mir::transform::check_consts.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.
Would a link to the
Qualifimplementers suffice? I don't wanna copy-paste lest they get out of sync.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.
Oh I wasn't thinking copy-pasting, maybe a few words and a link (or even just the
rustc_mir::...::HasMutInterioretc. path).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 added a note on
ConstQualifsthat points the user tolibrustc_mir/transform/check_consts/qualifs.rs. Lemme know if you want something more here.