rust/tests/ui/coroutine
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
print [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
addassign-yield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async_gen_fn_iter.rs Add Future and IntoFuture to the 2024 prelude 2024-02-18 23:20:05 +01:00
async_gen_fn.e2024.stderr Bless tests 2024-01-13 12:46:58 -05:00
async_gen_fn.none.stderr Add tests 2023-12-08 17:23:26 +00:00
async_gen_fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-coroutine-issue-67158.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-coroutine-issue-67158.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
async-gen-deduce-yield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-gen-yield-ty-is-unit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
auto-trait-regions.rs Rename generator folder 2023-10-20 21:14:02 +00:00
auto-trait-regions.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
borrow-in-tail-expr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowing.rs Rename generator folder 2023-10-20 21:14:02 +00:00
borrowing.stderr dropck_outlives check generator witness needs_drop 2023-11-02 17:20:13 +01:00
check-resume-ty-lifetimes-2.rs Check yield terminator's resume type in borrowck 2024-01-04 01:47:56 +00:00
check-resume-ty-lifetimes-2.stderr Check yield terminator's resume type in borrowck 2024-01-04 01:47:56 +00:00
check-resume-ty-lifetimes.rs Check yield terminator's resume type in borrowck 2024-01-04 01:47:56 +00:00
check-resume-ty-lifetimes.stderr Check yield terminator's resume type in borrowck 2024-01-04 01:47:56 +00:00
clone-impl-async.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clone-impl-async.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
clone-impl-static.rs Rename generator folder 2023-10-20 21:14:02 +00:00
clone-impl-static.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
clone-impl.rs Rename generator folder 2023-10-20 21:14:02 +00:00
clone-impl.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
clone-rpit.next.stderr Remove special-casing around aliaskind in new solver 2024-01-11 16:54:11 +00:00
clone-rpit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
conditional-drop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
control-flow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coroutine-region-requirements.migrate.stderr Manual find replace updates 2023-11-24 21:04:51 +01:00
coroutine-region-requirements.rs Rename generator folder 2023-10-20 21:14:02 +00:00
coroutine-region-requirements.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
coroutine-resume-after-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coroutine-with-nll.rs Rename generator folder 2023-10-20 21:14:02 +00:00
coroutine-with-nll.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
coroutine-yielding-or-returning-itself.rs Rename generator folder 2023-10-20 21:14:02 +00:00
coroutine-yielding-or-returning-itself.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
derived-drop-parent-expr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
discriminant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-and-replace.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-control-flow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-env.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-track-addassign-yield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-tracking-parent-expression.rs Rename generator folder 2023-10-20 21:14:02 +00:00
drop-tracking-parent-expression.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
drop-tracking-yielding-in-match-guards.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-yield-twice.rs Rename generator folder 2023-10-20 21:14:02 +00:00
drop-yield-twice.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
dropck-resume.rs Rename generator folder 2023-10-20 21:14:02 +00:00
dropck-resume.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dropck.rs Rename generator folder 2023-10-20 21:14:02 +00:00
dropck.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
gen_block_is_coro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_block_is_coro.stderr Make gen blocks implement the Iterator trait 2023-10-27 13:05:48 +00:00
gen_block_is_iter.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_block_is_no_future.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_block_is_no_future.stderr Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
gen_block_iterate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_block_move.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_block_move.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_block_move.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
gen_block_panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_block_panic.stderr Only run panic tests on targets that can unwind 2023-10-30 16:32:53 +00:00
gen_block.e2024.stderr Bless tests 2024-01-13 12:46:58 -05:00
gen_block.none.stderr Bless tests 2024-01-13 12:46:58 -05:00
gen_block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_fn_iter.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_fn_lifetime_capture.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gen_fn.e2024.stderr Bless tests 2024-01-13 12:46:58 -05:00
gen_fn.none.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
gen_fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-44197.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-45729-unsafe-in-coroutine.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
issue-45729-unsafe-in-coroutine.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
issue-48048.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-48048.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-52304.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-52398.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-52398.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
issue-53548-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-53548.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-57017.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-57084.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-57084.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
issue-57478.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-58888.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-61442-stmt-expr-with-drop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62506-two_awaits.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64620-yield-array-element.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-64620-yield-array-element.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68112.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-68112.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-69017.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-69039.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87142.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88653.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-88653.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-91477.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-91477.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-93161.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-102645.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-102645.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-105084.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-105084.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-110929-coroutine-conflict-error-ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-113279.rs Rename generator folder 2023-10-20 21:14:02 +00:00
issue-113279.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
iterator-count.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
layout-error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
layout-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
live-upvar-across-yield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-bindings.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-bindings.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
metadata-sufficient-for-layout.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
metadata-sufficient-for-layout.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nested_coroutine.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
niche-in-coroutine.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
non-static-is-unpin.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
not-send-sync.rs Rename generator folder 2023-10-20 21:14:02 +00:00
not-send-sync.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
overlap-locals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-drops-resume.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-drops.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-safe.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
parent-expression.rs Rename generator folder 2023-10-20 21:14:02 +00:00
parent-expression.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
partial-drop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
partial-initialization-across-yield.rs Rename generator folder 2023-10-20 21:14:02 +00:00
partial-initialization-across-yield.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
pattern-borrow.rs Rename generator folder 2023-10-20 21:14:02 +00:00
pattern-borrow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
pin-box-coroutine.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
polymorphize-args.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
reborrow-mut-upvar.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
reborrow-mut-upvar.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
ref-escapes-but-not-over-yield.rs Rename generator folder 2023-10-20 21:14:02 +00:00
ref-escapes-but-not-over-yield.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
ref-upvar-not-send.rs Rename generator folder 2023-10-20 21:14:02 +00:00
ref-upvar-not-send.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
reinit-in-match-guard.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
resume-after-return.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
resume-arg-late-bound.rs Rename generator folder 2023-10-20 21:14:02 +00:00
resume-arg-late-bound.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
resume-arg-size.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
resume-live-across-yield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
retain-resume-ref.rs Rename generator folder 2023-10-20 21:14:02 +00:00
retain-resume-ref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return-types-diverge.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-types.stderr Make sure all kinds of generators only return unit 2023-12-18 01:45:42 +00:00
self_referential_gen_block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
self_referential_gen_block.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
size-moved-locals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sized-yield.rs Rename generator folder 2023-10-20 21:14:02 +00:00
sized-yield.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
smoke-resume-args.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
smoke.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
static-coroutine.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
static-mut-reference-across-yield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
static-not-unpin.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
static-not-unpin.next.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
static-not-unpin.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
static-reference-across-yield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
too-live-local-in-immovable-gen.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
too-live-local-in-immovable-gen.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
too-many-parameters.rs Rename generator folder 2023-10-20 21:14:02 +00:00
too-many-parameters.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
type-mismatch-error.rs Rename generator folder 2023-10-20 21:14:02 +00:00
type-mismatch-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
type-mismatch-signature-deduction.rs Rename generator folder 2023-10-20 21:14:02 +00:00
type-mismatch-signature-deduction.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
uninhabited-field.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unresolved-ct-var.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unresolved-ct-var.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
unsized-capture-across-yield.rs Rename generator folder 2023-10-20 21:14:02 +00:00
unsized-capture-across-yield.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsized-local-across-yield.rs Rename generator folder 2023-10-20 21:14:02 +00:00
unsized-local-across-yield.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unwind-abort-mix.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
witness-ignore-fake-reads.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
xcrate-reachable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
xcrate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yield-in-args-rev.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yield-in-args-rev.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
yield-in-args.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-in-args.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
yield-in-const.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-in-const.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
yield-in-function.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-in-function.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
yield-in-initializer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yield-in-initializer.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
yield-in-static.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-in-static.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
yield-outside-coroutine-issue-78653.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-outside-coroutine-issue-78653.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
yield-subtype.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yield-subtype.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
yield-while-iterating.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-while-iterating.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
yield-while-local-borrowed.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-while-local-borrowed.stderr Rename generator folder 2023-10-20 21:14:02 +00:00
yield-while-ref-reborrowed.rs Rename generator folder 2023-10-20 21:14:02 +00:00
yield-while-ref-reborrowed.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
yielding-in-match-guards.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00