view-types: propagate view types to rustc_middle - #159291
Draft
scrabsha wants to merge 1 commit into
Draft
Conversation
This comment has been minimized.
This comment has been minimized.
scrabsha
force-pushed
the
view-types/in-mir
branch
from
July 14, 2026 14:42
e9822b0 to
4600dd1
Compare
This comment has been minimized.
This comment has been minimized.
scrabsha
force-pushed
the
view-types/in-mir
branch
from
July 14, 2026 15:28
4600dd1 to
e2963ed
Compare
This comment has been minimized.
This comment has been minimized.
scrabsha
force-pushed
the
view-types/in-mir
branch
from
July 15, 2026 09:44
e2963ed to
15cc52f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
scrabsha
force-pushed
the
view-types/in-mir
branch
from
July 27, 2026 19:55
15cc52f to
26818c0
Compare
This comment has been minimized.
This comment has been minimized.
scrabsha
force-pushed
the
view-types/in-mir
branch
from
July 27, 2026 20:01
26818c0 to
8a1ca0e
Compare
This comment has been minimized.
This comment has been minimized.
scrabsha
force-pushed
the
view-types/in-mir
branch
from
July 28, 2026 09:38
8a1ca0e to
26b0846
Compare
scrabsha
commented
Jul 30, 2026
| /// Returns the type of the discriminant of this type. | ||
| pub fn discriminant_ty(self, tcx: TyCtxt<'tcx>) -> Ty<'tcx> { | ||
| match self.kind() { | ||
| // It is somewhat guaranteed that view types |
Contributor
Author
There was a problem hiding this comment.
Contributor
|
☔ The latest upstream changes (presumably #159836) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
Contributor
Author
|
discussed privately with @oli-obk : we want to model the set of viewed fields as a type. something like: enum TyKind {
View(AdtDef, GenericArgs, Ty),
}the |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TODO: