Skip to content

Commit

Permalink
document rustfmt support for #![feature(unsafe_extern_blocks)]
Browse files Browse the repository at this point in the history
  • Loading branch information
ytmimi authored and calebcartwright committed Jun 21, 2024
1 parent 6daf3c1 commit 6c3c430
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
}
}
```
- rustfmt no longer removes `safe` and `unsafe` keywords from static items in extern blocks.
This helps support [`#![feature(unsafe_extern_blocks)]`](https://github.com/rust-lang/rust/issues/123743) [#6204](https://github.com/rust-lang/rustfmt/pull/6204)
```rust
#![feature(unsafe_extern_blocks)]

unsafe extern "C" {
safe static TEST1: i32;
unsafe static TEST2: i32;
}
```


### Changed
Expand Down

0 comments on commit 6c3c430

Please sign in to comment.