Skip to content

Commit 8965564

Browse files
committed
Fix unsupported std::sys::thread
Fixes building std for any platform with an unsupported thread abstraction. This includes {aarch64,armv7,x86_64}-unknown-trusty and riscv32im-risc0-zkvm-elf, which explicitly include the unsupported module, and platforms with no PAL. Bug fix for PR 145177 (std: move thread into sys).
1 parent 0be8e16 commit 8965564

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

library/std/src/sys/pal/trusty/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ mod common;
77
pub mod os;
88
#[path = "../unsupported/pipe.rs"]
99
pub mod pipe;
10-
#[path = "../unsupported/thread.rs"]
11-
pub mod thread;
1210
#[path = "../unsupported/time.rs"]
1311
pub mod time;
1412

library/std/src/sys/pal/unsupported/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
pub mod os;
44
pub mod pipe;
5-
pub mod thread;
65
pub mod time;
76

87
mod common;

library/std/src/sys/pal/zkvm/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ pub mod abi;
1414
pub mod os;
1515
#[path = "../unsupported/pipe.rs"]
1616
pub mod pipe;
17-
#[path = "../unsupported/thread.rs"]
18-
pub mod thread;
1917
#[path = "../unsupported/time.rs"]
2018
pub mod time;
2119

0 commit comments

Comments
 (0)