Repository navigation
abby dsl: exists in universe - #166561
Closed
khyperia wants to merge 1 commit into
Closed
abby dsl: exists in universe#166561khyperia wants to merge 1 commit into
khyperia wants to merge 1 commit into
Conversation
Collaborator
|
|
Member
Author
|
Closing in favor of #166561 |
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 26, 2026
…oxyUwU abby test dsl: one binder to rule them all prerequisite PR to allow leaking variables in the test DSL to allow testing a solution for rust-lang/project-assumptions-on-binders#49 alternative to rust-lang#166561 allow the following: ```rust forall<'a> { }, 'a: 'c, ``` by moving the `ty::Binder` from each `forall`/`exists` to a single top-level mega-binder, so the whole thing instantiates at the same time, and all variables are in scope across the entire `test_binder_constraints!`. This does mean that you can't use the same name twice even though it "looks like" they're in different scopes, because, it's all just one big scope. r? @BoxyUwU
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 26, 2026
…oxyUwU abby test dsl: one binder to rule them all prerequisite PR to allow leaking variables in the test DSL to allow testing a solution for rust-lang/project-assumptions-on-binders#49 alternative to rust-lang#166561 allow the following: ```rust forall<'a> { }, 'a: 'c, ``` by moving the `ty::Binder` from each `forall`/`exists` to a single top-level mega-binder, so the whole thing instantiates at the same time, and all variables are in scope across the entire `test_binder_constraints!`. This does mean that you can't use the same name twice even though it "looks like" they're in different scopes, because, it's all just one big scope. r? @BoxyUwU
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 26, 2026
…oxyUwU abby test dsl: one binder to rule them all prerequisite PR to allow leaking variables in the test DSL to allow testing a solution for rust-lang/project-assumptions-on-binders#49 alternative to rust-lang#166561 allow the following: ```rust forall<'a> { }, 'a: 'c, ``` by moving the `ty::Binder` from each `forall`/`exists` to a single top-level mega-binder, so the whole thing instantiates at the same time, and all variables are in scope across the entire `test_binder_constraints!`. This does mean that you can't use the same name twice even though it "looks like" they're in different scopes, because, it's all just one big scope. r? @BoxyUwU
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Nov 27, 2026
…oxyUwU abby test dsl: one binder to rule them all prerequisite PR to allow leaking variables in the test DSL to allow testing a solution for rust-lang/project-assumptions-on-binders#49 alternative to rust-lang#166561 allow the following: ```rust forall<'a> { }, 'a: 'c, ``` by moving the `ty::Binder` from each `forall`/`exists` to a single top-level mega-binder, so the whole thing instantiates at the same time, and all variables are in scope across the entire `test_binder_constraints!`. This does mean that you can't use the same name twice even though it "looks like" they're in different scopes, because, it's all just one big scope. r? @BoxyUwU
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
Rollup merge of #166586 - khyperia:abby-dsl-mega-binder, r=BoxyUwU abby test dsl: one binder to rule them all prerequisite PR to allow leaking variables in the test DSL to allow testing a solution for rust-lang/project-assumptions-on-binders#49 alternative to #166561 allow the following: ```rust forall<'a> { }, 'a: 'c, ``` by moving the `ty::Binder` from each `forall`/`exists` to a single top-level mega-binder, so the whole thing instantiates at the same time, and all variables are in scope across the entire `test_binder_constraints!`. This does mean that you can't use the same name twice even though it "looks like" they're in different scopes, because, it's all just one big scope. r? @BoxyUwU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
prerequisite PR to allow leaking variables in the test DSL to allow testing a solution for rust-lang/project-assumptions-on-binders#49
alternative to #166586
ideally, we would allow
i.e. complete nonlexical resolution of variables with arbitrary leakage. however, this is difficult and annoying (it is what is done in #166586), so as a stopgap, provide the ability to leak variables by having an
existstarget a universe other than the current one. the above example can then be written as:r? @BoxyUwU