Skip to content

Commit

Permalink
Add changelog entry for match expr inner attribute fix with version=Two
Browse files Browse the repository at this point in the history
  • Loading branch information
ytmimi committed Apr 26, 2024
1 parent dfbd453 commit 819a4fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
```rust
const _: () = builtin # offset_of(x, x);
```
- When using `version=Two` inner attributes in `match` expressions are correctly indented [#6147](https://github.com/rust-lang/rustfmt/issues/6147)
```rust
pub fn main() {
match x {
#![attr1]
#![attr2]
_ => (),
}
}
```

[log crate]: https://crates.io/crates/log
[unicode normalization form]: https://unicode.org/reports/tr15/
Expand Down

0 comments on commit 819a4fd

Please sign in to comment.