rollup merge of #19653: frewsxcv/rm-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.

Depends on https://github.com/rust-lang/rust/pull/19407 which is merged, but might need a new snapshot

[breaking-change]
This commit is contained in:
Alex Crichton
2014-12-09 09:25:14 -08:00
4 changed files with 6 additions and 3 deletions

View File

@@ -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;
@@ -216,6 +218,7 @@ pub mod dl {
use kinds::Copy;
use ptr;
use result::*;
use result::Result::{Err, Ok};
use string::String;
pub unsafe fn open_external<T: ToCStr>(filename: T) -> *mut u8 {