diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-18 22:37:22 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-18 23:17:34 -0800 |
| commit | 04a2887f8791bb080b4e76a55949a7c1954dbb97 (patch) | |
| tree | f072b2cc1e0b41270041a3a10a4fc313d3fa1a89 /src/comp/front | |
| parent | ca7cfbe3d0251766217e5d4e559903e655e7549b (diff) | |
| download | rust-04a2887f8791bb080b4e76a55949a7c1954dbb97.tar.gz rust-04a2887f8791bb080b4e76a55949a7c1954dbb97.zip | |
Remove '.' after nullary tags in patterns
Does what it says on the tin. The next commit will remove support for this syntax.
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/attr.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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<str, ast::native_abi> { 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 } } } |
