about summary refs log tree commit diff
path: root/src/libstd/sys/wasm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-21 10:46:11 +0000
committerbors <bors@rust-lang.org>2018-12-21 10:46:11 +0000
commit01c6ea2f37326674bf6ca64de55bf5fd90e45015 (patch)
tree6493f8fd87eaf77e2979ab068c5dcb2847f7420e /src/libstd/sys/wasm
parent6d34ec18c7d7e574553f6347ecf08e1e1c45c13d (diff)
parent6b96827ae971cec1f1bf83245d8356481e76b644 (diff)
downloadrust-01c6ea2f37326674bf6ca64de55bf5fd90e45015.tar.gz
rust-01c6ea2f37326674bf6ca64de55bf5fd90e45015.zip
Auto merge of #56813 - oli-obk:main_🧶, r=pnkfelix
Always run rustc in a thread

cc @ishitatsuyuki @eddyb

r? @pnkfelix

[Previously](https://github.com/rust-lang/rust/pull/48575) we moved to only producing threads when absolutely necessary. Even before we opted to only create threads in some cases, which [is unsound](https://github.com/rust-lang/rust/pull/48575#issuecomment-380635967) due to the way we use thread local storage.
Diffstat (limited to 'src/libstd/sys/wasm')
-rw-r--r--src/libstd/sys/wasm/thread.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libstd/sys/wasm/thread.rs b/src/libstd/sys/wasm/thread.rs
index 3d74ffdc14a..f9abb0b825a 100644
--- a/src/libstd/sys/wasm/thread.rs
+++ b/src/libstd/sys/wasm/thread.rs
@@ -68,7 +68,6 @@ pub mod guard {
     pub type Guard = !;
     pub unsafe fn current() -> Option<Guard> { None }
     pub unsafe fn init() -> Option<Guard> { None }
-    pub unsafe fn deinit() {}
 }
 
 cfg_if! {