Skip to content

Commit

Permalink
Unrolled build for rust-lang#127922
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127922 - spastorino:unsafe-extern-blocks-in-style-guide, r=compiler-errors

Add unsafe to extern blocks in style guide

This goes after this is merged:

- rust-lang#127921

r? ``@traviscross``

Tracking:

- rust-lang#123743
  • Loading branch information
rust-timer authored Aug 27, 2024
2 parents bf662eb + ebf46f7 commit be0f878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/style-guide/src/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ entries, format it across multiple lines as with a type alias.
## extern items

When writing extern items (such as `extern "C" fn`), always specify the ABI.
For example, write `extern "C" fn foo ...`, not `extern fn foo ...`, or
`extern "C" { ... }`.
For example, write `extern "C" fn foo ...` or `unsafe extern "C" { ...}`
and avoid `extern fn foo ...` and `unsafe extern { ... }`.

## Imports (`use` statements)

Expand Down

0 comments on commit be0f878

Please sign in to comment.