Skip to content

fix panic from out of scope params in opaque hidden types - #23142

Open
im-lunex wants to merge 1 commit into
rust-lang:masterfrom
im-lunex:fix-23125
Open

fix panic from out of scope params in opaque hidden types#23142
im-lunex wants to merge 1 commit into
rust-lang:masterfrom
im-lunex:fix-23125

Conversation

@im-lunex

@im-lunex im-lunex commented Aug 14, 2026

Copy link
Copy Markdown

fix panic from out of scope params in opaque hidden types.. this follows rustc's approach of remapping hidden type params into the opaque's parameter space and replacing params that do not belong to the opaque with error type.. also adds a regression test for the reported case

fixes: #23125

NOTE - i intentionally focused on the minimal subset needed just to fix reported bug. rustc also have things for consts, regions, and some closure-specific cases

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 14, 2026
@im-lunex

Copy link
Copy Markdown
Author

r? @ChayimFriedman2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic; highlight: has parameters, but no args were provided in instantiate

3 participants