diff options
| author | Eric Huss <eric@huss.org> | 2025-02-12 14:10:11 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-02-13 13:10:27 -0800 |
| commit | c1791a1b48d08ccd2346394498ecf5a993324740 (patch) | |
| tree | 54b7203a4b154bb3aa3db436226c2f9da56d30ce | |
| parent | 9e60b0e55428c5f719e6c9f725006434b6f9656d (diff) | |
| download | rust-c1791a1b48d08ccd2346394498ecf5a993324740.tar.gz rust-c1791a1b48d08ccd2346394498ecf5a993324740.zip | |
std: Apply missing_unsafe_on_extern
| -rw-r--r-- | library/std/src/keyword_docs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index 0c5783d657e..bdd330611de 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -1428,7 +1428,7 @@ mod self_upper_keyword {} /// /// ```rust,no_run /// # #![allow(dead_code)] -/// extern "C" { +/// unsafe extern "C" { /// static mut ERROR_MESSAGE: *mut std::os::raw::c_char; /// } /// ``` @@ -1925,7 +1925,7 @@ mod type_keyword {} /// /// unsafe fn unsafe_fn() {} /// -/// extern "C" { +/// unsafe extern "C" { /// fn unsafe_extern_fn(); /// static BAR: *mut u32; /// } |
