about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-31 13:09:55 +0200
committerGitHub <noreply@github.com>2022-03-31 13:09:55 +0200
commit0b71ca84b0e622b370d5e98d307d95052b6245d9 (patch)
tree9dcd44a6aa968f15b1f172ffccfb9f79cd3a58de
parent57206d79d9043bf656ed10018143c5e863306f49 (diff)
parentc89f11e1dbdbeb15057a3850e1a2348445caa4c2 (diff)
downloadrust-0b71ca84b0e622b370d5e98d307d95052b6245d9.tar.gz
rust-0b71ca84b0e622b370d5e98d307d95052b6245d9.zip
Rollup merge of #95505 - sunfishcode:sunfishcode/fix-openbsd, r=dtolnay
Fix library/std compilation on openbsd.

Fix a minor typo from #95241 which prevented compilation on x86_64-unknown-openbsd.
-rw-r--r--library/std/src/sys/unix/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/thread.rs b/library/std/src/sys/unix/thread.rs
index be70d00cb1a..bb4e4ee9aa7 100644
--- a/library/std/src/sys/unix/thread.rs
+++ b/library/std/src/sys/unix/thread.rs
@@ -522,7 +522,7 @@ pub mod guard {
             // new thread
             stack_ptr.addr() - current_stack.ss_size
         };
-        Some(stack_ptr.with_addr(stack_addr))
+        Some(stack_ptr.with_addr(stackaddr))
     }
 
     #[cfg(any(