mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-23 05:37:27 +00:00
This improves the case where someone tries to write a `match` expr where the patterns have type ascription syntax. Makes them less verbose, by giving up on the first encounter in the block, and makes them more accurate by only treating them as a struct literal if successfuly parsed as such.