summary refs log tree commit diff
path: root/src/libsyntax/parse/comments.rs
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@mozilla.com>2013-02-11 19:26:38 -0800
committerBrian Anderson <banderson@mozilla.com>2013-02-13 17:01:32 -0800
commit4445b38df27777b043cad9ecc2452daad3469949 (patch)
treef5258cb43faeb5f36f816e4a2d04442c987423b4 /src/libsyntax/parse/comments.rs
parentc51ecc3223ed64b7948f40097c5083da0c201811 (diff)
downloadrust-4445b38df27777b043cad9ecc2452daad3469949.tar.gz
rust-4445b38df27777b043cad9ecc2452daad3469949.zip
Remove die!, raplace invocations with fail! Issue #4524 pt 3
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
-rw-r--r--src/libsyntax/parse/comments.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index a8db06fe085..1e17cf3543d 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -117,7 +117,7 @@ pub fn strip_doc_comment_decoration(comment: ~str) -> ~str {
         return str::connect(lines, ~"\n");
     }
 
-    die!(~"not a doc-comment: " + comment);
+    fail!(~"not a doc-comment: " + comment);
 }
 
 fn read_to_eol(rdr: @mut StringReader) -> ~str {
@@ -297,7 +297,7 @@ fn consume_comment(rdr: @mut StringReader,
         read_block_comment(rdr, code_to_the_left, comments);
     } else if rdr.curr == '#' && nextch(rdr) == '!' {
         read_shebang_comment(rdr, code_to_the_left, comments);
-    } else { die!(); }
+    } else { fail!(); }
     debug!("<<< consume comment");
 }