mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 09:47:57 +00:00
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