rust/src/test/pretty
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
..
attr-fn-inner.rs Test fixes from rollup 2014-04-04 15:57:45 -07:00
blank-lines.rs test: Fix test. rs=test 2013-03-19 21:55:23 -07:00
block-comment-multiple-asterisks.rs Fix a pretty printer crash on /***. 2014-02-27 12:16:18 +11:00
block-comment-trailing-whitespace2.rs
block-comment-trailing-whitespace.rs
block-comment-wchar.pp Fix pretty test 2014-07-21 22:53:36 -07:00
block-comment-wchar.rs Add a ton of ignore-lexer-test 2014-07-21 18:38:40 -07:00
block-disambig.rs Test fixes from the rollup 2014-10-02 15:43:37 -07:00
closure-reform-pretty.rs Implement generalized object and type parameter bounds (Fixes #16462) 2014-08-27 21:46:52 -04:00
disamb-stmt-expr.rs librustc: Fix merge fallout. 2013-11-26 11:04:39 -08:00
do1.rs librustc: Fix merge fallout. 2013-11-26 11:04:39 -08:00
doc-comments.rs Test fixes from rollup 2014-04-04 15:57:45 -07:00
empty-impl.pp Stop accepting 'impl ...;', require {} instead 2013-09-24 14:12:02 -07:00
empty-impl.rs Added tests to make tidy 2014-02-07 12:49:24 -06:00
empty-lines.rs
example1.rs
example2.pp
example2.rs
fn-types.rs librustc: Convert ~fn() to proc() everywhere. 2013-11-18 18:27:31 -08:00
for-comment.rs Fix warnings it tests 2013-08-17 08:42:35 -07:00
issue-929.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-4264.pp test: Convert statics to constants 2014-10-09 09:44:52 -07:00
issue-4264.rs test: Convert statics to constants 2014-10-09 09:44:52 -07:00
match-block-expr.rs Fix a bug pretty printing match { 5i } { _ => { } } 2014-07-29 15:51:03 -07:00
match-naked-expr-medium.rs Fix a bug pretty printing match { 5i } { _ => { } } 2014-07-29 15:51:03 -07:00
match-naked-expr.rs Fix a bug pretty printing match { 5i } { _ => { } } 2014-07-29 15:51:03 -07:00
path-type-bounds.rs Implement generalized object and type parameter bounds (Fixes #16462) 2014-08-27 21:46:52 -04:00
raw-str-nonexpr.rs Convert cfg syntax to new system 2014-09-27 22:59:26 -07:00
record-trailing-comma.rs Change xfail directives in compiletests to ignore, closes #11363 2014-02-11 18:23:20 +01:00
struct-pattern.rs Preserve struct field pattern shorthand in the prettyprinter. 2014-10-27 00:35:35 -07:00
struct-tuple.rs Added tests to make tidy 2014-02-07 12:49:24 -06:00
tag-blank-lines.rs Add enum variants to the type namespace 2014-09-19 15:11:00 +12:00
unary-op-disambig.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
vec-comments.pp librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
vec-comments.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00