We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cfg(miri)
1 parent 76822a2 commit 7f3d11eCopy full SHA for 7f3d11e
library/std/src/sys/windows/compat.rs
@@ -251,7 +251,7 @@ macro_rules! compat_fn_optional {
251
pub fn option() -> Option<F> {
252
let mut func = NonNull::new(PTR.load(Ordering::Relaxed));
253
if func.is_none() {
254
- Module::new($module).map(preload);
+ unsafe { Module::new($module).map(preload) };
255
func = NonNull::new(PTR.load(Ordering::Relaxed));
256
}
257
unsafe {
0 commit comments