Skip to content

Re-export RegionInferenceContext - #164317

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Lysxia:ree-region
Oct 23, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Lysxia:ree-region

Conversation

@Lysxia

@Lysxia Lysxia commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

This export was made private in https://github.com/rust-lang/rust/pull/163225/changes#diff-637a488a4cb8b83e26c2dd558341aa8ca9feb6b72855e919d1d9ece547f23387R19 This is already used by Creusot, a third-party rustc driver, so I propose to reexport it. It seems odd to hide this type when it appears as argument and field types in other exported entities of consumers.

I'm just shooting in the dark here; I'm open to figure out alternative solutions if making that type private was intentional.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 14, 2026
@rustbot

rustbot commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: borrowck, compiler
  • borrowck, compiler expanded to 77 candidates
  • Random selection from 18 candidates

@rust-log-analyzer

This comment has been minimized.

@lqd

lqd commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

r? me

It seems odd to hide this type when it appears as argument and field types in other exported entities of consumers.

The change was made knowingly, because that PR split it into two (mutable and frozen), and we don't know how that impacts consumers more than the visibility. This is all unstable, some churn is expected when we need to make big changes.

The regioncx also has functions that are called when it's solved but are somehow public for consumers and can panic if called before solving, making the split unlikely to be non-breaking, and we don't know how people use these (if they even should) unless you're broken by it and open an issue or a PR like you did here. So that worked.

Now onto this PR: if you only need visibility/access to the frozen regioncx, that's great, and we can land this soon. If you need a mutable (unsolved) regioncx however, then it'll need discussion and design, and take longer.

@rustbot rustbot assigned lqd and unassigned davidtwco Oct 14, 2026

@lqd lqd left a comment •

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.

In addition to the question above, this will also need a comment

View changes since this review

@rust-log-analyzer

This comment has been minimized.

@lqd lqd added 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. labels Oct 14, 2026
@Lysxia

Lysxia commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Thank you, that's reassuring. I'm pretty sure we only need the frozen context, but I'll double check this and come back to fix this PR.

Update: Indeed we only need the frozen context.

@rustbot

rustbot commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@Lysxia

Lysxia commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@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 Oct 22, 2026
@lqd

lqd commented Oct 23, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 3a55067 has been approved by lqd

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-review Status: Awaiting review from the assignee but also interested parties. labels Oct 23, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #159689 (Account for missing turbofish in resolve errors)
 - #164317 (Re-export RegionInferenceContext)
 - #164733 (Include `deprecated` attributes in `rustc_resolve` intra-doc link resolution)
 - #164754 (Update outdated/incorrect unstable tracking issue links)
 - #164761 ([tiny] Properly format return type in lifetime error with backticks)
@rust-bors
rust-bors Bot merged commit 30d6b5e into rust-lang:main Oct 23, 2026
14 checks passed
rust-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
Rollup merge of #164317 - Lysxia:ree-region, r=lqd

Re-export RegionInferenceContext

This export was made private in https://github.com/rust-lang/rust/pull/163225/changes#diff-637a488a4cb8b83e26c2dd558341aa8ca9feb6b72855e919d1d9ece547f23387R19 This is already used by Creusot, a third-party rustc driver, so I propose to reexport it. It seems odd to hide this type when it appears as argument and field types in other exported entities of `consumers`.

I'm just shooting in the dark here; I'm open to figure out alternative solutions if making that type private was intentional.
@rustbot rustbot added this to the 1.101.0 milestone Oct 23, 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.

5 participants