Repository navigation
Abby: make the fields of And/Or private - #166091
Merged
Merged
Conversation
adwinwhite
marked this pull request as ready for review
November 18, 2026 01:34
khyperia
approved these changes
Nov 18, 2026
| /// - All ANDs are in canonical form | ||
| /// - If any AND is empty, i.e. trivially true, it is the only AND | ||
| pub struct Or<I: Interner, S: Clone + std::fmt::Debug = NoSpan>(pub SmallVec<[And<I, S>; 1]>); | ||
| // FIXME(assumptions-on-binders): move to a separate module to avoid accidental |
Member
There was a problem hiding this comment.
nit: I believe the convention is FIXME(-Zassumptions-on-binders), not FIXME(assumptions-on-binders) (should keep it consistent to make it easier to grep for~)
otherwise, lgtm, r=me!
Contributor
Author
There was a problem hiding this comment.
Thanks for catching this :>
adwinwhite
force-pushed
the
abby_private_fields
branch
from
November 19, 2026 06:22
7f7fb7e to
043c384
Compare
Contributor
Author
|
@bors r=khyperia rollup |
Contributor
Contributor
|
❌ Commit 043c384 has been unapproved because PR CI timed out after |
Contributor
Author
|
@bors r=khyperia rollup |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 20, 2026
…uwer Rollup of 6 pull requests Successful merges: - #165814 (diag: Fix source location for macro diagnostic message) - #166091 (Abby: make the fields of `And/Or` private) - #166150 (Reflection: refactor Type and TypeKind) - #166213 (remove optionally_braced_mac_call) - #166233 (Allow `#[derive(StableHash)]` for enums with >256 variants) - #166237 (Add crash test for const param ty unchecked)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 20, 2026
Rollup merge of #166091 - adwinwhite:abby_private_fields, r=khyperia Abby: make the fields of `And/Or` private This makes it harder to violate the invariants on these types. See [comment](#164302 (comment)). Split from #164302 to get it merged earlier so that I can rebase less :> r? khyperia
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.
This makes it harder to violate the invariants on these types. See comment.
Split from #164302 to get it merged earlier so that I can rebase less :>
r? khyperia