rust/src/test/run-fail
Aaron Turon a27fbac868 Revise std::thread API to join by default
This commit is part of a series that introduces a `std::thread` API to
replace `std::task`.

In the new API, `spawn` returns a `JoinGuard`, which by default will
join the spawned thread when dropped. It can also be used to join
explicitly at any time, returning the thread's result. Alternatively,
the spawned thread can be explicitly detached (so no join takes place).

As part of this change, Rust processes now terminate when the main
thread exits, even if other detached threads are still running, moving
Rust closer to standard threading models. This new behavior may break code
that was relying on the previously implicit join-all.

In addition to the above, the new thread API also offers some built-in
support for building blocking abstractions in user space; see the module
doc for details.

Closes #18000

[breaking-change]
2014-12-18 23:31:52 -08:00
..
args-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
assert-as-macro.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
assert-eq-macro-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
assert-macro-explicit.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
assert-macro-fmt.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
assert-macro-owned.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
assert-macro-static.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
binop-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
bounds-check-no-overflow.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
bug-811.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
bug-2470-bounds-check-overflow-2.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
bug-2470-bounds-check-overflow-3.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
bug-2470-bounds-check-overflow.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
die-macro-expr.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
die-macro-pure.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
die-macro.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
divide-by-zero.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
doublepanic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
dst-raw-slice.rs Reviewer changes 2014-09-02 19:47:39 +12:00
explicit-panic-msg.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
explicit-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
expr-fn-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
expr-if-panic-fn.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
expr-if-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
expr-match-panic-fn.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
expr-match-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
extern-panic.rs Mostly rote conversion of proc() to move|| (and occasionally Thunk::new) 2014-12-14 04:21:56 -05:00
fmt-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
for-each-loop-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
glob-use-std.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
hashmap-capacity-overflow.rs refactor libcollections as part of collection reform 2014-11-02 18:58:11 -05:00
if-check-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
if-cond-bot.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-948.rs rollup merge of #18398 : aturon/lint-conventions-2 2014-10-30 17:37:22 -07:00
issue-2061.rs test: Clean out the test suite a bit 2014-02-25 09:21:09 -08:00
issue-2444.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
issue-2761.rs librustc: Remove fail_unless! 2013-03-29 16:39:08 -07:00
issue-3029.rs rollup merge of #18398 : aturon/lint-conventions-2 2014-10-30 17:37:22 -07:00
issue-12920.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
issue-13202.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-18576.rs librustc: Call return_type only for functions. 2014-11-04 22:44:02 -05:00
main-panic.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
match-bot-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
match-disc-bot.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
match-wildcards.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
mod-zero.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
panic-arg.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-any-wrapped.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-any.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-explicit.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-fmt.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-owned.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-static.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-main.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-non-utf8.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-parens.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-task-name-none.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
panic-task-name-owned.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
result-get-panic.rs Utilize fewer reexports 2014-12-05 18:13:04 -05:00
rhs-type.rs rollup merge of #18398 : aturon/lint-conventions-2 2014-10-30 17:37:22 -07:00
rt-set-exit-status-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
rt-set-exit-status-panic2.rs Mostly rote conversion of proc() to move|| (and occasionally Thunk::new) 2014-12-14 04:21:56 -05:00
rt-set-exit-status.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
run-unexported-tests.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
str-overrun.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
task-spawn-barefn.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
test-panic.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
test-should-fail-bad-message.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
test-tasks-invalid-value.rs compiletest: Test --pretty expanded 2014-05-13 17:24:08 -07:00
tls-exit-status.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
too-much-recursion-unwinding.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
unimplemented-macro-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
unique-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
unreachable-fmt-msg.rs Add optional messages to the unreachable macro. 2014-11-10 19:35:25 -08:00
unreachable-macro-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
unreachable-static-msg.rs Add optional messages to the unreachable macro. 2014-11-10 19:35:25 -08:00
unreachable.rs Add optional messages to the unreachable macro. 2014-11-10 19:35:25 -08:00
unwind-interleaved.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
unwind-rec.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
unwind-rec2.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
unwind-unique.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
vec-overrun.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
while-body-panics.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
while-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00