Files
rust/compiler/rustc_parse
Jonathan Brouwer 1d9829878a Rollup merge of #163927 - khyperia:abby-dsl-predicates-syntax, r=BoxyUwU
abby DSL: change `where` syntax to `predicates`

Fixes https://github.com/rust-lang/project-assumptions-on-binders/issues/53

The `where` syntax was very confusing, and caused at least one instance of bringing folks up to speed on abby being made more difficult due to the bad syntax:

```rust
core::test_binder_constraints! {
    impl {
        forall<'a, 'b> where 'a: 'b {
            where 'a: 'b
        }
    }
}
```

The two `where` here mean VERY different things. This PR changes the second one to be `predicates`. The name sucks, but Boxy and I bikeshedded for ages and couldn't come up with anything better.

The only reason it was done this way was because the parser has `self.eat_keyword(exp!(Where))` baked into `parse_where_clause_common` and it was vaguely annoying to refactor to reuse it with a different syntax. This PR does the vaguely annoying refactor.

r? @BoxyUwU
2026-10-07 16:44:44 +02:00
..