about summary refs log tree commit diff
path: root/library/std/src/sys/pal/windows/stack_overflow.rs
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2024-07-15 02:28:44 -0700
committerGitHub <noreply@github.com>2024-07-15 02:28:44 -0700
commit476d399782a27df846e1ace578a2e89f70a13d42 (patch)
tree5ab255ba43993e0edd986613785361050d4bcfc3 /library/std/src/sys/pal/windows/stack_overflow.rs
parent99c5302d9ffdfa563ba33477d3cb425cafe45e05 (diff)
parent7e16d5fb6111fc974c5b9a2aff951f2eb07b3deb (diff)
downloadrust-476d399782a27df846e1ace578a2e89f70a13d42.tar.gz
rust-476d399782a27df846e1ace578a2e89f70a13d42.zip
Rollup merge of #127750 - ChrisDenton:safe-unsafe-unsafe, r=workingjubilee
Make os/windows and pal/windows default to `#![deny(unsafe_op_in_unsafe_fn)]`

This is to prevent regressions in modules that currently pass. I did also fix up a few trivial places where the module contained only one or two simple wrappers. In more complex cases we should try to ensure the `unsafe` blocks are appropriately scoped and have any appropriate safety comments.

This does not fix the windows bits of #127747 but it should help prevent regressions until that is done and also make it more obvious specifically which modules need attention.
Diffstat (limited to 'library/std/src/sys/pal/windows/stack_overflow.rs')
-rw-r--r--library/std/src/sys/pal/windows/stack_overflow.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/windows/stack_overflow.rs b/library/std/src/sys/pal/windows/stack_overflow.rs
index 59feb0c601a..ea89429cb83 100644
--- a/library/std/src/sys/pal/windows/stack_overflow.rs
+++ b/library/std/src/sys/pal/windows/stack_overflow.rs
@@ -1,4 +1,5 @@
 #![cfg_attr(test, allow(dead_code))]
+#![allow(unsafe_op_in_unsafe_fn)]
 
 use crate::sys::c;
 use crate::thread;