Skip to content

Commit 2e952e9

Browse files
committed
document rustfmt support for #![feature(unsafe_extern_blocks)]
1 parent 4cd088f commit 2e952e9

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
@@ -58,6 +58,16 @@
5858
}
5959
}
6060
```
61+
- rustfmt no longer removes `safe` and `unsafe` keywords from static items in extern blocks.
62+
This helps support [`#![feature(unsafe_extern_blocks)]`](https://github.com/rust-lang/rust/issues/123743) [#6204](https://github.com/rust-lang/rustfmt/pull/6204)
63+
```rust
64+
#![feature(unsafe_extern_blocks)]
65+
66+
unsafe extern "C" {
67+
safe static TEST1: i32;
68+
unsafe static TEST2: i32;
69+
}
70+
```
6171

6272

6373
### Changed

0 commit comments

Comments
 (0)