rust/src/test/run-fail
Steve Klabnik 7828c3dd28 Rename fail! to panic!
https://github.com/rust-lang/rfcs/pull/221

The current terminology of "task failure" often causes problems when
writing or speaking about code. You often want to talk about the
possibility of an operation that returns a Result "failing", but cannot
because of the ambiguity with task failure. Instead, you have to speak
of "the failing case" or "when the operation does not succeed" or other
circumlocutions.

Likewise, we use a "Failure" header in rustdoc to describe when
operations may fail the task, but it would often be helpful to separate
out a section describing the "Err-producing" case.

We have been steadily moving away from task failure and toward Result as
an error-handling mechanism, so we should optimize our terminology
accordingly: Result-producing functions should be easy to describe.

To update your code, rename any call to `fail!` to `panic!` instead.
Assuming you have not created your own macro named `panic!`, this
will work on UNIX based systems:

    grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g'

You can of course also do this by hand.

[breaking-change]
2014-10-29 11:43:07 -04:00
..
args-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
assert-as-macro.rs
assert-eq-macro-fail.rs
assert-macro-explicit.rs
assert-macro-fmt.rs
assert-macro-owned.rs
assert-macro-static.rs
binop-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
bounds-check-no-overflow.rs
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
by-value-self-objects-fail.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
doublefail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
dst-raw-slice.rs
explicit-fail-msg.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
explicit-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
expr-fn-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
expr-if-fail-fn.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
expr-if-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
expr-match-fail-fn.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
expr-match-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
extern-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-arg.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-macro-any-wrapped.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-macro-any.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-macro-explicit.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-macro-fmt.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-macro-owned.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-macro-static.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-main.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-non-utf8.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-parens.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-task-name-none.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-task-name-owned.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-task-name-send-str.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail-task-name-static.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fail.rs
fmt-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
for-each-loop-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
glob-use-std.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
hashmap-capacity-overflow.rs
if-check-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
if-cond-bot.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-948.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-2061.rs
issue-2444.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-2761.rs
issue-3029.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-12920.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-13202.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
main-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
match-bot-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04: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
native-failure.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
result-get-fail.rs Remove libdebug and update tests. 2014-10-16 11:15:34 -04:00
rhs-type.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
rt-set-exit-status-fail2.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
rt-set-exit-status-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04: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-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
test-tasks-invalid-value.rs
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-fail.rs
unique-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
unreachable-macro-fail.rs
unwind-interleaved.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-rec.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-fails.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
while-fail.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00