Repository navigation
Re-export RegionInferenceContext - #164317
Conversation
|
r? @davidtwco rustbot has assigned @davidtwco. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
r? me
The change was made knowingly, because that PR split it into two (mutable and frozen), and we don't know how that impacts 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. |
This comment has been minimized.
This comment has been minimized.
|
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. |
|
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. |
|
@rustbot ready |
|
@bors r+ rollup |
…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)
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.
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.