From 8367de9eaaefc74f5adf1d30925d8bbae82c6c69 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 31 Jul 2024 09:54:59 -0700 Subject: [PATCH] Reference specific MSRV in comment This will make it easier to remove the now-unneeded `unsafe` when we update MSRV. --- src/wasi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasi.rs b/src/wasi.rs index 16b81b50b2f1a..8b32405b9fbfe 100644 --- a/src/wasi.rs +++ b/src/wasi.rs @@ -366,7 +366,7 @@ pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE; pub const _SC_IOV_MAX: c_int = 60; pub const _SC_SYMLOOP_MAX: c_int = 173; -#[allow(unused_unsafe)] // `addr_of!(EXTERN_STATIC)` is now considered safe +#[allow(unused_unsafe)] // `addr_of!(EXTERN_STATIC)` is now safe; remove `unsafe` when MSRV >= 1.82 pub static CLOCK_MONOTONIC: clockid_t = unsafe { clockid_t(ptr_addr_of!(_CLOCK_MONOTONIC)) }; #[allow(unused_unsafe)] pub static CLOCK_PROCESS_CPUTIME_ID: clockid_t =