diff options
| author | Eric Huss <eric@huss.org> | 2025-02-12 14:15:19 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-02-14 07:36:17 -0800 |
| commit | d5f0aa49e711db038d7bd30ceb76ba260de8b1fd (patch) | |
| tree | df06141a8c6ca5f24ae4c98e32280e3d640cdbdd | |
| parent | 0484d23465eb8b977e7549cd8ee7b12c7a62b54d (diff) | |
| download | rust-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.rs | 4 |
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() {} |
