From 0737d553edb57744a12ba0deabafbeed21c6d6b2 Mon Sep 17 00:00:00 2001 From: Yacin Tmimi Date: Fri, 26 Apr 2024 11:02:37 -0400 Subject: [PATCH] Add changelog entry for match expr inner attribute fix with version=Two --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aa3a1e70bc8..a96fb29da760 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/