Skip to content

Commit 6452c10

Browse files
joshtriplettmyl7
authored andcommitted
Reference specific MSRV in comment
This will make it easier to remove the now-unneeded `unsafe` when we update MSRV.
1 parent 4e83dec commit 6452c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
362362
pub const _SC_IOV_MAX: c_int = 60;
363363
pub const _SC_SYMLOOP_MAX: c_int = 173;
364364

365-
#[allow(unused_unsafe)] // `addr_of!(EXTERN_STATIC)` is now considered safe
365+
#[allow(unused_unsafe)] // `addr_of!(EXTERN_STATIC)` is now safe; remove `unsafe` when MSRV >= 1.82
366366
pub static CLOCK_MONOTONIC: clockid_t = unsafe { clockid_t(ptr_addr_of!(_CLOCK_MONOTONIC)) };
367367
#[allow(unused_unsafe)]
368368
pub static CLOCK_PROCESS_CPUTIME_ID: clockid_t =

0 commit comments

Comments
 (0)