mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
22d554657d
Parse inner attributes on inline const block According to https://github.com/rust-lang/rust/pull/84414#issuecomment-826150936, inner attributes are intended to be supported *"in all containers for statements (or some subset of statements)"*. This PR adds inner attribute parsing and pretty-printing for inline const blocks (https://github.com/rust-lang/rust/issues/76001), which contain statements just like an unsafe block or a loop body. ```rust let _ = const { #![allow(...)] let x = (); x }; ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |