Skip to content

Abby: make the fields of And/Or private - #166091

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
adwinwhite:abby_private_fields
Nov 20, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
adwinwhite:abby_private_fields

Conversation

@adwinwhite

@adwinwhite adwinwhite commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 17, 2026
@adwinwhite
adwinwhite marked this pull request as ready for review November 18, 2026 01:34
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels 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

@khyperia khyperia Nov 18, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this :>

@adwinwhite

Copy link
Copy Markdown
Contributor Author

@bors r=khyperia rollup

@rust-bors

rust-bors Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 043c384 has been tentatively approved by khyperia

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 19, 2026
@rust-bors

rust-bors Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

❌ Commit 043c384 has been unapproved because PR CI timed out after 7200s.

@adwinwhite

Copy link
Copy Markdown
Contributor Author

@bors r=khyperia rollup

@rust-bors

rust-bors Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 043c384 has been approved by khyperia

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 20, 2026
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
rust-bors Bot merged commit e5e3fde into rust-lang:main Nov 20, 2026
14 checks passed
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
@rustbot rustbot added this to the 1.102.0 milestone Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants