Repository navigation
abby test dsl: one binder to rule them all - #166586
Merged
Merged
Conversation
Collaborator
|
The parser was modified, potentially altering the grammar of (stable) Rust cc @fmease |
Collaborator
|
|
khyperia
force-pushed
the
abby-dsl-mega-binder
branch
from
November 26, 2026 09:18
24d6158 to
ca68659
Compare
Collaborator
|
cc @rust-lang/clippy |
BoxyUwU
reviewed
Nov 26, 2026
BoxyUwU
reviewed
Nov 26, 2026
BoxyUwU
reviewed
Nov 26, 2026
khyperia
force-pushed
the
abby-dsl-mega-binder
branch
from
November 26, 2026 12:24
ca68659 to
e3ae116
Compare
Member
|
@bors r+ |
Contributor
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
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 26, 2026
…uwer Rollup of 14 pull requests Successful merges: - #166235 (Keep opening '(' when suggesting to remove '&' from pattern) - #166516 (Fix ICE in iterator method suggestion when the receiver is a block) - #166586 (abby test dsl: one binder to rule them all) - #164289 (Add regression test for self-referential GAT with missing lifetime argument) - #165859 (Add codegen test for MaybeUninit array built in the return slot) - #166092 (add fake borrow tests for divergent match guards) - #166292 (Don't suggest closure braces for errors inside the body) - #166435 (Encode direct const mir) - #166447 (Document allocator behaviour of BTreeMap::append and BTreeSet::append) - #166558 (triagebot: Send "in progress" message when nomination is in progress pt. 2) - #166574 (bump libffi) - #166584 (Arg pos const mismatch ice) - #166599 (add alias-bound test) - #166606 (llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.) Failed merges: - #166583 (abby dsl tests: the passing test should check-pass)
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
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 26, 2026
…uwer Rollup of 17 pull requests Successful merges: - #165572 (Run the `FatLtoCleanup` pass to lower `llvm.type.checked.load`) - #166235 (Keep opening '(' when suggesting to remove '&' from pattern) - #166516 (Fix ICE in iterator method suggestion when the receiver is a block) - #166586 (abby test dsl: one binder to rule them all) - #166604 (fix: embed-source-dwarf test with remapped debuginfo) - #166620 (Change wording of overwrite span in `unused_assignments` lint) - #164289 (Add regression test for self-referential GAT with missing lifetime argument) - #165859 (Add codegen test for MaybeUninit array built in the return slot) - #166092 (add fake borrow tests for divergent match guards) - #166292 (Don't suggest closure braces for errors inside the body) - #166435 (Encode direct const mir) - #166447 (Document allocator behaviour of BTreeMap::append and BTreeSet::append) - #166558 (triagebot: Send "in progress" message when nomination is in progress pt. 2) - #166584 (Arg pos const mismatch ice) - #166599 (add alias-bound test) - #166606 (llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.) - #166623 (Correct feature name for `is_cased()` method) Failed merges: - #166583 (abby dsl tests: the passing test should check-pass)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
Rollup of 20 pull requests Successful merges: - #164161 (`-Znext-solver` Support a bit more types for rustdoc auto traits) - #165572 (Run the `FatLtoCleanup` pass to lower `llvm.type.checked.load`) - #166235 (Keep opening '(' when suggesting to remove '&' from pattern) - #166335 (A few fixes in x86 std_detect) - #166516 (Fix ICE in iterator method suggestion when the receiver is a block) - #166586 (abby test dsl: one binder to rule them all) - #166604 (fix: embed-source-dwarf test with remapped debuginfo) - #166620 (Change wording of overwrite span in `unused_assignments` lint) - #166626 (Remove some outdated comments about None terminator) - #164289 (Add regression test for self-referential GAT with missing lifetime argument) - #165859 (Add codegen test for MaybeUninit array built in the return slot) - #166092 (add fake borrow tests for divergent match guards) - #166292 (Don't suggest closure braces for errors inside the body) - #166435 (Encode direct const mir) - #166447 (Document allocator behaviour of BTreeMap::append and BTreeSet::append) - #166558 (triagebot: Send "in progress" message when nomination is in progress pt. 2) - #166584 (Arg pos const mismatch ice) - #166599 (add alias-bound test) - #166606 (llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.) - #166623 (Correct feature name for `is_cased()` method) Failed merges: - #166583 (abby dsl tests: the passing test should check-pass)
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 #166561
allow the following:
by moving the
ty::Binderfrom eachforall/existsto a single top-level mega-binder, so the whole thing instantiates at the same time, and all variables are in scope across the entiretest_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