rust/tests/ui/threads-sendsync
Alex Crichton 75fa9f6dec compiletest: Add a //@ needs-threads directive
This commit is extracted from #122036 and adds a new directive to the
`compiletest` test runner, `//@ needs-threads`. This is intended to
capture the need that a target must implement threading to execute a
specific test, typically one that uses `std::thread`. This is primarily
done for WebAssembly targets which currently do not have threads by
default. This enables transitioning a lot of `//@ ignore-wasm*`-style
ignores into a more self-documenting `//@ needs-threads` directive.
Additionally the `wasm32-wasi-preview1-threads` target, for example,
does actually have threads, but isn't tested in CI at this time. This
change enables running these tests for that target, but not other wasm
targets.
2024-03-06 12:35:07 -08:00
..
auxiliary
child-outlives-parent.rs
clone-with-exterior.rs
comm.rs
eprint-on-tls-drop.rs
issue-4446.rs
issue-4448.rs
issue-8827.rs
issue-9396.rs
issue-24313.rs
issue-29488.rs
issue-43733-2.rs
issue-43733.rs
issue-43733.stderr
mpsc_stress.rs
send_str_hashmap.rs
send_str_treemap.rs
send-is-not-static-par-for.rs
send-resource.rs
send-type-inference.rs
sendable-class.rs
sendfn-is-a-block.rs
sendfn-spawn-with-fn-arg.rs
spawn2.rs
spawn-fn.rs
spawn-types.rs
spawn.rs
spawning-with-debug.rs
std-sync-right-kind-impls.rs
sync-send-atomics.rs
sync-send-in-std.rs
sync-send-iterators-in-libcollections.rs
sync-send-iterators-in-libcore.rs
task-comm-0.rs
task-comm-1.rs
task-comm-3.rs
task-comm-4.rs
task-comm-5.rs
task-comm-6.rs
task-comm-7.rs
task-comm-9.rs
task-comm-10.rs
task-comm-11.rs
task-comm-12.rs
task-comm-13.rs
task-comm-14.rs
task-comm-15.rs
task-comm-16.rs
task-comm-17.rs
task-comm-chan-nil.rs
task-life-0.rs
task-spawn-barefn.rs
task-spawn-move-and-copy.rs
task-stderr.rs
tcp-stress.rs
test-tasks-invalid-value.rs
thread-local-extern-static.rs
thread-local-syntax.rs
threads.rs
tls-dtors-are-run-in-a-static-binary.rs
tls-init-on-init.rs
tls-try-with.rs
trivial-message.rs
unwind-resource.rs
yield1.rs
yield2.rs
yield.rs