Skip to content

Commit 8367de9

Browse files
committed
Reference specific MSRV in comment
This will make it easier to remove the now-unneeded `unsafe` when we update MSRV.
1 parent 1b092dc commit 8367de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
366366
pub const _SC_IOV_MAX: c_int = 60;
367367
pub const _SC_SYMLOOP_MAX: c_int = 173;
368368

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

0 commit comments

Comments
 (0)