mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
5266800936
reject inline const patterns pre-expansion Reverts the parser changes from https://github.com/rust-lang/rust/pull/149667 Fixes https://github.com/rust-lang/rust/issues/152499 Awkwardly, some cases of inline const pats can only be caught pre-expansion and some can only be caught post-expansion. https://github.com/rust-lang/rust/pull/149667 switched from only rejecting the former to only rejecting the latter.