We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d07e88 commit 56d830aCopy full SHA for 56d830a
libm/src/math/support/feature_detect.rs
@@ -64,8 +64,8 @@ macro_rules! select_once {
64
65
let raw: *mut () = FUNC.load(Ordering::Relaxed);
66
67
- // SAFETY: will only ever be `initializer`, or a reference that was stored with
68
- // the 'static lifetime.
+ // SAFETY: will only ever be `initializer` or another function pointer that has the
+ // 'static lifetime.
69
let fn_ptr: Func = unsafe { mem::transmute::<*mut (), Func>(raw) };
70
71
$call(fn_ptr)
0 commit comments