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/front/attr.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/comp/front') diff --git a/src/comp/front/attr.rs b/src/comp/front/attr.rs index 642f6eb439e..75ee1e822a4 100644 --- a/src/comp/front/attr.rs +++ b/src/comp/front/attr.rs @@ -202,7 +202,7 @@ fn require_unique_names(sess: session, metas: [@ast::meta_item]) { fn native_abi(attrs: [ast::attribute]) -> either::t { ret alt attr::get_meta_item_value_str_by_name(attrs, "abi") { - option::none. { + option::none { either::right(ast::native_abi_cdecl) } option::some("rust-intrinsic") { @@ -236,10 +236,10 @@ fn meta_item_value_from_list( some(item) { alt attr::get_meta_item_value_str(item) { some(value) { some(value) } - none. { none } + none { none } } } - none. { none } + none { none } } } @@ -251,7 +251,7 @@ fn meta_item_list_from_list( some(item) { attr::get_meta_item_list(item) } - none. { none } + none { none } } } @@ -263,7 +263,7 @@ fn name_value_str_pair( let name = attr::get_meta_item_name(item); some((name, value)) } - none. { none } + none { none } } } -- cgit 1.4.1-3-g733a5