rust/compiler/rustc_parse/src
Dylan DPC 22d554657d
Rollup merge of #94985 - dtolnay:constattr, r=pnkfelix
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
};
```
2022-04-16 19:42:00 +02:00
..
lexer Rollup merge of #95859 - rainy-me:unterminated-nested-block-comment, r=petrochenkov 2022-04-16 07:12:44 +02:00
parser Rollup merge of #94985 - dtolnay:constattr, r=pnkfelix 2022-04-16 19:42:00 +02:00
lib.rs Rollup merge of #95301 - nnethercote:rm-NtTT, r=petrochenkov 2022-03-28 16:08:07 +02:00
validate_attr.rs rustc_feature: Convert BuiltinAttribute from tuple to a struct 2021-11-12 20:15:14 +08:00