diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-02 15:34:49 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-02 16:12:49 -0700 |
| commit | 21be1379d561b6679a8a2ea47dce88f948c5acca (patch) | |
| tree | 25b911b9e5071d1512a3e5ff5d66b91716645c75 /src/rustc/metadata/decoder.rs | |
| parent | 987bc2362926d0672a01e8d5964940743df48cb6 (diff) | |
| download | rust-21be1379d561b6679a8a2ea47dce88f948c5acca.tar.gz rust-21be1379d561b6679a8a2ea47dce88f948c5acca.zip | |
Rename some core::option functions
from_maybe => get_with_default maybe => with_option may => with_option_do I know these names are kind of ridiculous, but it's the best I could think of. Feel free to bikeshed. Closes #2081
Diffstat (limited to 'src/rustc/metadata/decoder.rs')
| -rw-r--r-- | src/rustc/metadata/decoder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/metadata/decoder.rs b/src/rustc/metadata/decoder.rs index bb6c4d5dc3d..2a2438b52a7 100644 --- a/src/rustc/metadata/decoder.rs +++ b/src/rustc/metadata/decoder.rs @@ -120,7 +120,7 @@ fn class_member_id(d: ebml::doc, cdata: cmd) -> ast::def_id { fn field_mutability(d: ebml::doc) -> ast::class_mutability { // Use maybe_get_doc in case it's a method - option::maybe(ebml::maybe_get_doc(d, tag_class_mut), + option::with_option(ebml::maybe_get_doc(d, tag_class_mut), ast::class_immutable, {|d| alt ebml::doc_as_u8(d) as char { |
