Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 89edc35

Browse files
committed
bless Windows
1 parent 66d3ee1 commit 89edc35

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
error: unsupported operation: can't create threads on Windows
2+
--> RUSTLIB/std/src/sys/PLATFORM/thread.rs:LL:CC
3+
|
4+
LL | let ret = c::CreateThread(
5+
| ___________________^
6+
LL | | ptr::null_mut(),
7+
LL | | stack,
8+
LL | | thread_start,
9+
... |
10+
LL | | ptr::null_mut(),
11+
LL | | );
12+
| |_________^ can't create threads on Windows
13+
|
14+
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
15+
16+
= note: inside `std::sys::PLATFORM::thread::Thread::new` at RUSTLIB/std/src/sys/PLATFORM/thread.rs:LL:CC
17+
= note: inside `std::thread::Builder::spawn_unchecked_::<[closure@$DIR/thread-spawn.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
18+
= note: inside `std::thread::Builder::spawn_unchecked::<[closure@$DIR/thread-spawn.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
19+
= note: inside `std::thread::Builder::spawn::<[closure@$DIR/thread-spawn.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
20+
= note: inside `std::thread::spawn::<[closure@$DIR/thread-spawn.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
21+
note: inside `main` at $DIR/thread-spawn.rs:LL:CC
22+
--> $DIR/thread-spawn.rs:LL:CC
23+
|
24+
LL | thread::spawn(|| {});
25+
| ^^^^^^^^^^^^^^^^^^^^
26+
27+
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
28+
29+
error: aborting due to previous error
30+

0 commit comments

Comments
 (0)