about summary refs log tree commit diff
path: root/library/alloc/src/vec/mod.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-02-13 09:04:02 -0800
committerEric Huss <eric@huss.org>2025-02-13 13:10:27 -0800
commit07ebbddeff9c53a6aa631a58799ffaaa872806c1 (patch)
treeb1186b6ea722042348fc51aa43f5e3683c2dd946 /library/alloc/src/vec/mod.rs
parent55ef73c00d278f10d8a62aa1c722ff0d6138e4e5 (diff)
downloadrust-07ebbddeff9c53a6aa631a58799ffaaa872806c1.tar.gz
rust-07ebbddeff9c53a6aa631a58799ffaaa872806c1.zip
alloc: Apply missing_unsafe_on_extern
Diffstat (limited to 'library/alloc/src/vec/mod.rs')
-rw-r--r--library/alloc/src/vec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index 55cd0569538..7d02a15ed7a 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -1837,7 +1837,7 @@ impl<T, A: Allocator> Vec<T, A> {
     /// # // don't use this as a starting point for a real library.
     /// # pub struct StreamWrapper { strm: *mut std::ffi::c_void }
     /// # const Z_OK: i32 = 0;
-    /// # extern "C" {
+    /// # unsafe extern "C" {
     /// #     fn deflateGetDictionary(
     /// #         strm: *mut std::ffi::c_void,
     /// #         dictionary: *mut u8,