Skip to content

Commit c9596d6

Browse files
ehussgitbot
authored and
gitbot
committed
std: Apply missing_unsafe_on_extern
1 parent 3132ff7 commit c9596d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/keyword_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ mod self_upper_keyword {}
14281428
///
14291429
/// ```rust,no_run
14301430
/// # #![allow(dead_code)]
1431-
/// extern "C" {
1431+
/// unsafe extern "C" {
14321432
/// static mut ERROR_MESSAGE: *mut std::os::raw::c_char;
14331433
/// }
14341434
/// ```
@@ -1925,7 +1925,7 @@ mod type_keyword {}
19251925
///
19261926
/// unsafe fn unsafe_fn() {}
19271927
///
1928-
/// extern "C" {
1928+
/// unsafe extern "C" {
19291929
/// fn unsafe_extern_fn();
19301930
/// static BAR: *mut u32;
19311931
/// }

0 commit comments

Comments
 (0)