dtolnay / syn

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

Enable expression fixups in "derive" mode #1704

Closed dtolnay closed 1 month ago

dtolnay commented 1 month ago

This is needed after https://github.com/dtolnay/syn/pull/1703 to support parenthesization of casts such as 1 + (x as i32) < 0, which can occur even when "full" feature is not enabled.