diff options
| author | Nick Desaulniers <ndesaulniers@mozilla.com> | 2013-02-11 19:26:38 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-02-13 17:01:32 -0800 |
| commit | 4445b38df27777b043cad9ecc2452daad3469949 (patch) | |
| tree | f5258cb43faeb5f36f816e4a2d04442c987423b4 /src/libsyntax/parse/token.rs | |
| parent | c51ecc3223ed64b7948f40097c5083da0c201811 (diff) | |
| download | rust-4445b38df27777b043cad9ecc2452daad3469949.tar.gz rust-4445b38df27777b043cad9ecc2452daad3469949.zip | |
Remove die!, raplace invocations with fail! Issue #4524 pt 3
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index b8d756d893a..dbcb3d756c8 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -210,7 +210,7 @@ pub fn to_str(in: @ident_interner, t: Token) -> ~str { nt_block(*) => ~"block", nt_stmt(*) => ~"statement", nt_pat(*) => ~"pattern", - nt_expr(*) => die!(~"should have been handled above"), + nt_expr(*) => fail!(~"should have been handled above"), nt_ty(*) => ~"type", nt_ident(*) => ~"identifier", nt_path(*) => ~"path", @@ -263,7 +263,7 @@ pub fn flip_delimiter(t: token::Token) -> token::Token { token::RPAREN => token::LPAREN, token::RBRACE => token::LBRACE, token::RBRACKET => token::LBRACKET, - _ => die!() + _ => fail!() } } |
