about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-02-12 14:15:19 -0800
committerEric Huss <eric@huss.org>2025-02-14 07:36:17 -0800
commitd5f0aa49e711db038d7bd30ceb76ba260de8b1fd (patch)
treedf06141a8c6ca5f24ae4c98e32280e3d640cdbdd
parent0484d23465eb8b977e7549cd8ee7b12c7a62b54d (diff)
downloadrust-d5f0aa49e711db038d7bd30ceb76ba260de8b1fd.tar.gz
rust-d5f0aa49e711db038d7bd30ceb76ba260de8b1fd.zip
Fix safety of windows uwp functions
These functions were changed to be safe in
https://github.com/rust-lang/rust/pull/127763, but this particular UWP
version was missed. Otherwise this causes unnecessary unsafe block
warnings/errors.
-rw-r--r--library/std/src/sys/pal/windows/stack_overflow_uwp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/windows/stack_overflow_uwp.rs b/library/std/src/sys/pal/windows/stack_overflow_uwp.rs
index 9e9b3efaf1b..6f1ea12fc1e 100644
--- a/library/std/src/sys/pal/windows/stack_overflow_uwp.rs
+++ b/library/std/src/sys/pal/windows/stack_overflow_uwp.rs
@@ -1,4 +1,4 @@
 #![cfg_attr(test, allow(dead_code))]
 
-pub unsafe fn reserve_stack() {}
-pub unsafe fn init() {}
+pub fn reserve_stack() {}
+pub fn init() {}