dtolnay / syn

Parser for Rust source code
Apache License 2.0
2.79k stars 306 forks source link

Parse `use<'a, T>` precise capturing bounds as verbatim #1707

Closed compiler-errors closed 3 weeks ago

compiler-errors commented 1 month ago

Parses the new use<> precise capturing bound (https://rust-lang.github.io/rfcs/3617-precise-capturing.html) as verbatim in all bound positions.

Not exactly sure what the process is for syn support for nightly features. I could alternatively prepare a PR adding full support for this.

cc https://github.com/rust-lang/rust/issues/123432

traviscross commented 1 month ago

This fixes https://github.com/dtolnay/syn/issues/1677. The stabilization report for this is up here.

cc @dtolnay