diff options
| author | Corey Farwell <coreyf@rwell.org> | 2014-12-08 12:58:01 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2014-12-08 21:40:16 -0500 |
| commit | 9af324a673443367c5b58a182804982c11f73981 (patch) | |
| tree | 5624ff4a1f69fb02867215f0d2ecce6a73324abf /src/libstd | |
| parent | 84a7615418749d663d54dd9223a15098b834e2a0 (diff) | |
| download | rust-9af324a673443367c5b58a182804982c11f73981.tar.gz rust-9af324a673443367c5b58a182804982c11f73981.zip | |
Remove Result and Option reexports
Brief note: This does *not* affect anything in the prelude Part of #19253 All this does is remove the reexporting of Result and Option from their respective modules. More core reexports might be removed, but these ones are the safest to remove since these enums (and their variants) are included in the prelude. [breaking-change]
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/dynamic_lib.rs | 3 | ||||
| -rw-r--r-- | src/libstd/sync/poison.rs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs index aa0c8b53c2e..c3398746fd7 100644 --- a/src/libstd/dynamic_lib.rs +++ b/src/libstd/dynamic_lib.rs @@ -21,9 +21,11 @@ use iter::IteratorExt; use mem; use ops::*; use option::*; +use option::Option::{None, Some}; use os; use path::{Path,GenericPath}; use result::*; +use result::Result::{Err, Ok}; use slice::{AsSlice,SlicePrelude}; use str; use string::String; @@ -212,6 +214,7 @@ pub mod dl { use libc; use ptr; use result::*; + use result::Result::{Err, Ok}; use string::String; pub unsafe fn open_external<T: ToCStr>(filename: T) -> *mut u8 { diff --git a/src/libstd/sync/poison.rs b/src/libstd/sync/poison.rs index eb46fd77147..ee151556620 100644 --- a/src/libstd/sync/poison.rs +++ b/src/libstd/sync/poison.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use option::None; +use option::Option::None; use rustrt::task::Task; use rustrt::local::Local; |
