]> git.lizzy.rs Git - rust.git/commitdiff
Change "pred" to "pure fn" within the compiler.
authorTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 24 Aug 2011 20:41:50 +0000 (13:41 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 26 Aug 2011 01:24:40 +0000 (18:24 -0700)
src/comp/syntax/ast_util.rs
src/comp/syntax/parse/token.rs

index 74c3d6dac49b2df4d2a0b546cd2f854b5f225d91..48bdfc47b68cb36eb802ae11e17c38afc55b13c0 100644 (file)
@@ -104,7 +104,7 @@ fn binop_to_str(op: binop) -> str {
     }
 }
 
-pred lazy_binop(b: binop) -> bool {
+pure fn lazy_binop(b: binop) -> bool {
     alt b { and. { true } or. { true } _ { false } }
 }
 
index cf20e0a328e6262cb1542ec3babd3d4cdd71069c..7e93444e09ba6f444cca7a7c3bd80d47ebfb20f3 100644 (file)
@@ -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 }