mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
43057698c1
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.