From 04a2887f8791bb080b4e76a55949a7c1954dbb97 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 18 Jan 2012 22:37:22 -0800 Subject: Remove '.' after nullary tags in patterns Does what it says on the tin. The next commit will remove support for this syntax. --- src/comp/syntax/parse/eval.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/syntax/parse/eval.rs') diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index 4e3f2711a2f..897cfe03e09 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -58,7 +58,7 @@ fn parse_companion_mod(cx: ctx, prefix: str, suffix: option::t) fn companion_file(prefix: str, suffix: option::t) -> str { ret alt suffix { option::some(s) { fs::connect(prefix, s) } - option::none. { prefix } + option::none { prefix } } + ".rs"; } @@ -93,7 +93,7 @@ fn cdir_path_opt(id: str, attrs: [ast::attribute]) -> str { some(d) { ret d; } - none. { ret id; } + none { ret id; } } } -- cgit 1.4.1-3-g733a5