diff options
| author | Eric Huss <eric@huss.org> | 2025-02-13 08:53:21 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-02-13 08:53:21 -0800 |
| commit | ef34064679afd2e307dc0b3aff2023b668e12ac7 (patch) | |
| tree | 90faa7a918660f3df0fbd81d055e1b2bcceed8d4 | |
| parent | 54cdc751df770517e70db0588573e32e6a7b9821 (diff) | |
| download | rust-ef34064679afd2e307dc0b3aff2023b668e12ac7.tar.gz rust-ef34064679afd2e307dc0b3aff2023b668e12ac7.zip | |
core: Apply unsafe_attr_outside_unsafe
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index 0d8c3ef906b..2c7f1d86341 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -345,7 +345,7 @@ impl<T> MaybeUninit<T> { /// /// use std::mem::MaybeUninit; /// - /// extern "C" { + /// unsafe extern "C" { /// fn read_into_buffer(ptr: *mut u8, max_len: usize) -> usize; /// } /// |
