]> git.lizzy.rs Git - rust.git/commit
Re-add support for parsing (and pretty-printing) inner-attributes within body of...
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 11 May 2021 19:18:09 +0000 (15:18 -0400)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 11 May 2021 19:18:09 +0000 (15:18 -0400)
commit75d62931280ae8f2ad26b2812e151f8f49de407a
tree8e274f053fee5e7cb64cdfab45f6b444c8b79d2a
parent2bafe96272bf22cd191c6a01741184b60063292d
Re-add support for parsing (and pretty-printing) inner-attributes within body of a `match`.

In other words, we can do `match EXPR { #![inner_attr] ARM_1 ARM_2 ... }` again.

I believe this unbreaks the only four crates that crater flagged as broken by PR 83312.

(I am putting this up so that the lang-team can check it out and decide whether
it changes their mind about what to do regarding PR 83312.)
compiler/rustc_ast_pretty/src/pprust/state.rs
compiler/rustc_parse/src/parser/expr.rs