Skip to content

Commit

Permalink
Utilize fewer reexports
Browse files Browse the repository at this point in the history
In regards to:

rust-lang/rust#19253 (comment)

This commit:

* Changes the #deriving code so that it generates code that utilizes fewer
  reexports (in particur Option::* and Result::*), which is necessary to
  remove those reexports in the future
* Changes other areas of the codebase so that fewer reexports are utilized
  • Loading branch information
frewsxcv committed Dec 5, 2014
1 parent 624950b commit d2909b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ use kinds::Sized;
use mem::{mod, replace};
use num::{Int, UnsignedInt};
use ops::{Deref, Index, IndexMut};
use option::{Some, None, Option};
use result::{Result, Ok, Err};
use option::Option;
use option::Option::{Some, None};
use result::Result;
use result::Result::{Ok, Err};

use super::table;
use super::table::{
Expand Down
4 changes: 2 additions & 2 deletions set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ use fmt;
use hash::{Hash, Hasher, RandomSipHasher};
use iter::{Iterator, IteratorExt, FromIterator, FilterMap, Chain, Repeat, Zip, Extend, repeat};
use iter;
use option::{Some, None};
use result::{Ok, Err};
use option::Option::{Some, None};
use result::Result::{Ok, Err};

use super::map::{HashMap, Entries, MoveEntries, INITIAL_CAPACITY};

Expand Down
3 changes: 2 additions & 1 deletion table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ use mem::{min_align_of, size_of};
use mem;
use num::{Int, UnsignedInt};
use ops::{Deref, DerefMut, Drop};
use option::{Some, None, Option};
use option::Option;
use option::Option::{Some, None};
use ptr::{RawPtr, copy_nonoverlapping_memory, zero_memory};
use ptr;
use rt::heap::{allocate, deallocate};
Expand Down

0 comments on commit d2909b7

Please sign in to comment.