diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-28 14:49:22 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-28 14:49:49 -0700 |
| commit | 31bbcf026727cf69e2c4b756a6d2ddc584274056 (patch) | |
| tree | 7b44f5e6c5d54297ded0363b631e82d245b8de6d | |
| parent | cfbc7cbdc7cd09490c7c723758329b5ba78e5f9f (diff) | |
Import Result, Ok, and Err by default. Closes #3287
| -rw-r--r-- | src/libcore/core.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/core.rs b/src/libcore/core.rs index afa5216ab51..a897e9cab7c 100644 --- a/src/libcore/core.rs +++ b/src/libcore/core.rs @@ -8,6 +8,8 @@ import Option = option::Option; #[cfg(stage0)] import option = option::Option; +import result::{Result, Ok, Err}; + import Path = path2::Path; import GenericPath = path2::GenericPath; import WindowsPath = path2::WindowsPath; @@ -24,6 +26,7 @@ import to_str::ToStr; export Path, WindowsPath, PosixPath, GenericPath; export Option, Some, None, unreachable; +export Result, Ok, Error; export extensions; // The following exports are the extension impls for numeric types export Num, Times, TimesIx; |
