]> git.lizzy.rs Git - rust.git/commit
Add support for new `where` clause location in associated types.
authorDario Nieuwenhuis <dirbaio@dirbaio.net>
Thu, 10 Mar 2022 17:10:03 +0000 (18:10 +0100)
committerDario Nieuwenhuis <dirbaio@dirbaio.net>
Thu, 10 Mar 2022 17:21:29 +0000 (18:21 +0100)
commit49d12077757fc937f8c8fac1f800436153eb5d4e
treec1e877e72a4f332c11a105ad86151d33855c195a
parent356c507357d32951924516217b402909c820ce9c
Add support for new `where` clause location in associated types.

A recent Rust nightly changed it: https://github.com/rust-lang/rust/issues/89122

This allows both the old and new location.
crates/parser/src/grammar/items.rs
crates/parser/test_data/parser/inline/ok/0012_type_item_where_clause.rast
crates/parser/test_data/parser/inline/ok/0012_type_item_where_clause.rs
crates/parser/test_data/parser/inline/ok/0199_type_item_where_clause_deprecated.rast [new file with mode: 0644]
crates/parser/test_data/parser/inline/ok/0199_type_item_where_clause_deprecated.rs [new file with mode: 0644]