Repository navigation
Fancy paramenv accessors that communicate the access pattern better. - #163477
Draft
jdonszelmann wants to merge 1 commit into
Draft
jdonszelmann wants to merge 1 commit into
jdonszelmann wants to merge 1 commit into
Conversation
jdonszelmann
force-pushed
the
paramenv-accessors
branch
2 times, most recently
from
September 29, 2026 10:08
67c2b09 to
6d71f6c
Compare
jdonszelmann
force-pushed
the
paramenv-accessors
branch
from
September 29, 2026 13:07
6d71f6c to
82b91b0
Compare
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
☔ The latest upstream changes (presumably #163767) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
This branch has not been deployed
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.
r? @lcnr or @rust-lang/initiative-trait-system-refactor
This is a single commit, to precede the future change of "compressed trait clauses". It adds a lot of the infrastructure, without making any real changes that may affect performance. As such it forms a separately reviewable step. Even though this isn't on its own such a useful change, it mostly refactors things, it does still make for a nicer API surface.
Importantly, with compressed trait clauses (i.e. encoding some common traits as
where self_ty : <bitset of common traits>), it becomes very important to be careful with how we iterate over caller bounds. I've tried other methods, but the typestate API (as proposed in this PR) is the only one I've found that's both ergonomic, and still allows for implementing compressed trait clauses performantly.Note
I've not used an LLM for any part of this PR, or any other PR I make. This includes any related work like research.