about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYacin Tmimi <yacintmimi@gmail.com>2024-06-18 17:00:38 -0400
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2024-06-21 16:57:45 -0500
commite2feea47bc568748af4bf58ba3f7d317708cd93b (patch)
tree22ab5d73877b520ba5563c8df79bad8379b74b8f
parent9748af80c60a03deb79d430ebe6e6fea037ecb03 (diff)
downloadrust-e2feea47bc568748af4bf58ba3f7d317708cd93b.tar.gz
rust-e2feea47bc568748af4bf58ba3f7d317708cd93b.zip
Document fix for retaining inner attributes on const blocks
-rw-r--r--CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2ee07a02b7d..d94f32fa51a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -48,6 +48,16 @@
       builtin # type_ascribe(10, usize)
   }
   ```
+- rustfmt no longer removes inner attributes from inline const blocks [#6158](https://github.com/rust-lang/rustfmt/issues/6158)
+  ```rust
+  fn main() {
+      const {
+          #![allow(clippy::assertions_on_constants)]
+
+          assert!(1 < 2);
+      }
+  }
+  ```
 
 
 ### Changed