about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYacin Tmimi <yacintmimi@gmail.com>2024-04-26 11:02:37 -0400
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2024-06-21 16:57:45 -0500
commit0737d553edb57744a12ba0deabafbeed21c6d6b2 (patch)
tree7e7f98118c8554d4d4d9f135d154ddacf43b0882
parent5cab54ff1e465d6821471cf4a2aed65a7979e802 (diff)
downloadrust-0737d553edb57744a12ba0deabafbeed21c6d6b2.tar.gz
rust-0737d553edb57744a12ba0deabafbeed21c6d6b2.zip
Add changelog entry for match expr inner attribute fix with version=Two
-rw-r--r--CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3aa3a1e70bc..a96fb29da76 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/