Document fix for retaining inner attributes on const blocks
This commit is contained in:
parent
9748af80c6
commit
e2feea47bc
1 changed files with 10 additions and 0 deletions
10
CHANGELOG.md
10
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue