From 21be1379d561b6679a8a2ea47dce88f948c5acca Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 2 Apr 2012 15:34:49 -0700 Subject: 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 --- src/librustsyntax/parse/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustsyntax/parse') diff --git a/src/librustsyntax/parse/eval.rs b/src/librustsyntax/parse/eval.rs index 42187ad9c7c..a9e0ce9845e 100644 --- a/src/librustsyntax/parse/eval.rs +++ b/src/librustsyntax/parse/eval.rs @@ -23,7 +23,7 @@ fn eval_crate_directives_to_mod(cx: ctx, cdirs: [@ast::crate_directive], -> (ast::_mod, [ast::attribute]) { #debug("eval crate prefix: %s", prefix); #debug("eval crate suffix: %s", - option::from_maybe(suffix, "none")); + option::get_or_default(suffix, "none")); let (cview_items, citems, cattrs) = parse_companion_mod(cx, prefix, suffix); let mut view_items: [@ast::view_item] = []; -- cgit 1.4.1-3-g733a5