Skip to content

resolving cyclic glob vis-max - #161024

Open
calvinrp wants to merge 1 commit into
rust-lang:mainfrom
calvinrp:fix/pub-visibility
Open

resolving cyclic glob vis-max#161024
calvinrp wants to merge 1 commit into
rust-lang:mainfrom
calvinrp:fix/pub-visibility

Conversation

@calvinrp

Copy link
Copy Markdown
Contributor

Fixes #160685

#159039 follows ambiguity_vis_max. Mutual globs can cycle that and overflow the stack. Visit each most-visible glob once, and still walk source_decl so it stays public.

Also shortened the #159038 regression-test headers.

r? petrochenkov
@rustbot label +A-resolve +A-visibility +T-compiler +beta-nominated

LLM helped investigate and simplify. I wrote the change and this text.

@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. A-resolve Area: Name/path resolution done by `rustc_resolve` specifically A-visibility Area: Visibility / privacy beta-nominated Nominated for backporting to the compiler in the beta channel. labels Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-resolve Area: Name/path resolution done by `rustc_resolve` specifically A-visibility Area: Visibility / privacy beta-nominated Nominated for backporting to the compiler in the beta channel. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.98 beta regression: compiler stack overflow

3 participants