Skip to content

Commit e2feea4

Browse files
ytmimicalebcartwright
authored andcommittedJun 21, 2024
Document fix for retaining inner attributes on const blocks

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@
4848
builtin # type_ascribe(10, usize)
4949
}
5050
```
51+
- rustfmt no longer removes inner attributes from inline const blocks [#6158](https://github.com/rust-lang/rustfmt/issues/6158)
52+
```rust
53+
fn main() {
54+
const {
55+
#![allow(clippy::assertions_on_constants)]
56+
57+
assert!(1 < 2);
58+
}
59+
}
60+
```
5161

5262

5363
### Changed

0 commit comments

Comments
 (0)
Please sign in to comment.