summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@mozilla.com>2013-01-31 17:51:01 -0800
committerBrian Anderson <banderson@mozilla.com>2013-01-31 20:12:49 -0800
commitaee79294699153ac7da9d2e5d076192c6eee3238 (patch)
tree18e14a0fcfddad87b2a2955e7821bb4c63acbbfa /src/libsyntax/parse/token.rs
parent2db3175c76b51e5124cfa135de7ceeea8ceee0d6 (diff)
downloadrust-aee79294699153ac7da9d2e5d076192c6eee3238.tar.gz
rust-aee79294699153ac7da9d2e5d076192c6eee3238.zip
Replace most invocations of fail keyword with die! macro
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 2093b5caebd..bcf4281132d 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -209,7 +209,7 @@ pub fn to_str(in: @ident_interner, t: Token) -> ~str {
                       nt_block(*) => ~"block",
                       nt_stmt(*) => ~"statement",
                       nt_pat(*) => ~"pattern",
-                      nt_expr(*) => fail ~"should have been handled above",
+                      nt_expr(*) => die!(~"should have been handled above"),
                       nt_ty(*) => ~"type",
                       nt_ident(*) => ~"identifier",
                       nt_path(*) => ~"path",
@@ -262,7 +262,7 @@ pub fn flip_delimiter(t: token::Token) -> token::Token {
       token::RPAREN => token::LPAREN,
       token::RBRACE => token::LBRACE,
       token::RBRACKET => token::LBRACKET,
-      _ => fail
+      _ => die!()
     }
 }