De-export bool, tuple, unit, uniq. Part of #3583.

This commit is contained in:
Graydon Hoare 2012-09-28 15:42:13 -07:00
parent 43a9d90b48
commit fd8e7aab71
2 changed files with 2 additions and 6 deletions

View File

@ -175,13 +175,9 @@ mod ptr;
#[legacy_exports]
mod vec;
mod at_vec;
#[legacy_exports]
mod bool;
#[legacy_exports]
mod tuple;
#[legacy_exports]
mod unit;
#[legacy_exports]
mod uniq;
// Ubiquitous-utility-type modules

View File

@ -6,7 +6,7 @@
use cmp::{Eq, Ord};
trait TupleOps<T,U> {
pub trait TupleOps<T,U> {
pure fn first() -> T;
pure fn second() -> U;
pure fn swap() -> (U, T);
@ -34,7 +34,7 @@ impl<T: Copy, U: Copy> (T, U): TupleOps<T,U> {
}
trait ExtendedTupleOps<A,B> {
pub trait ExtendedTupleOps<A,B> {
fn zip(&self) -> ~[(A, B)];
fn map<C>(&self, f: &fn(a: &A, b: &B) -> C) -> ~[C];
}