Skip to content

Commit 31bbcf0

Browse files
committed
Import Result, Ok, and Err by default. Closes #3287
1 parent cfbc7cb commit 31bbcf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/core.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import Option = option::Option;
88
#[cfg(stage0)]
99
import option = option::Option;
1010

11+
import result::{Result, Ok, Err};
12+
1113
import Path = path2::Path;
1214
import GenericPath = path2::GenericPath;
1315
import WindowsPath = path2::WindowsPath;
@@ -24,6 +26,7 @@ import to_str::ToStr;
2426

2527
export Path, WindowsPath, PosixPath, GenericPath;
2628
export Option, Some, None, unreachable;
29+
export Result, Ok, Error;
2730
export extensions;
2831
// The following exports are the extension impls for numeric types
2932
export Num, Times, TimesIx;

0 commit comments

Comments
 (0)