diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-14 16:54:13 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-15 14:14:20 -0700 |
| commit | 74c69e1053188d92b86bc8b28cbf1af87d31ea2d (patch) | |
| tree | 8c07fc440e572eb59787705a9dd11fcd789430e0 /src/libsyntax/attr.rs | |
| parent | 8be0f665bcda9f5e4077d0be6ebc6aa382e72319 (diff) | |
| download | rust-74c69e1053188d92b86bc8b28cbf1af87d31ea2d.tar.gz rust-74c69e1053188d92b86bc8b28cbf1af87d31ea2d.zip | |
Convert more core types to camel case
Diffstat (limited to 'src/libsyntax/attr.rs')
| -rw-r--r-- | src/libsyntax/attr.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 65c2e00faca..7c04d6e4570 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -2,7 +2,7 @@ import std::map; import std::map::hashmap; -import either::either; +import either::Either; import diagnostic::span_handler; import ast_util::{spanned, dummy_spanned}; import parse::comments::{doc_comment_style, strip_doc_comment_decoration}; @@ -330,22 +330,22 @@ fn find_linkage_metas(attrs: ~[ast::attribute]) -> ~[@ast::meta_item] { } } -fn foreign_abi(attrs: ~[ast::attribute]) -> either<~str, ast::foreign_abi> { +fn foreign_abi(attrs: ~[ast::attribute]) -> Either<~str, ast::foreign_abi> { return match attr::first_attr_value_str_by_name(attrs, ~"abi") { option::none => { - either::right(ast::foreign_abi_cdecl) + either::Right(ast::foreign_abi_cdecl) } option::some(@~"rust-intrinsic") => { - either::right(ast::foreign_abi_rust_intrinsic) + either::Right(ast::foreign_abi_rust_intrinsic) } option::some(@~"cdecl") => { - either::right(ast::foreign_abi_cdecl) + either::Right(ast::foreign_abi_cdecl) } option::some(@~"stdcall") => { - either::right(ast::foreign_abi_stdcall) + either::Right(ast::foreign_abi_stdcall) } option::some(t) => { - either::left(~"unsupported abi: " + *t) + either::Left(~"unsupported abi: " + *t) } }; } |
