about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-08-24 13:41:50 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-08-25 18:24:40 -0700
commit1cb85015c397cefa9de7653a98b7572ef511e0ef (patch)
treebff30d54b51e0ce23656f20ecf0e6f085b86cd94 /src/comp/syntax/parse
parent2e89edab1d3efad55e85af242055a065c6e096ca (diff)
downloadrust-1cb85015c397cefa9de7653a98b7572ef511e0ef.tar.gz
rust-1cb85015c397cefa9de7653a98b7572ef511e0ef.zip
Change "pred" to "pure fn" within the compiler.
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/token.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs
index cf20e0a328e..7e93444e09b 100644
--- a/src/comp/syntax/parse/token.rs
+++ b/src/comp/syntax/parse/token.rs
@@ -180,7 +180,7 @@ fn to_str(r: lexer::reader, t: token) -> str {
 }
 
 
-pred can_begin_expr(t: token) -> bool {
+pure fn can_begin_expr(t: token) -> bool {
     alt t {
       LPAREN. { true }
       LBRACE. { true }