diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-09-21 18:10:45 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-09-21 18:11:43 -0700 |
| commit | dffe188991325b4e803fdd0da7c1563ce0fa27f4 (patch) | |
| tree | e8f65929b804a38550dc9fdcf24021e6a7920304 /src/libstd/map.rs | |
| parent | 60443d48881bfbc7a305e807390e74b327f100b8 (diff) | |
| download | rust-dffe188991325b4e803fdd0da7c1563ce0fa27f4.tar.gz rust-dffe188991325b4e803fdd0da7c1563ce0fa27f4.zip | |
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
Diffstat (limited to 'src/libstd/map.rs')
| -rw-r--r-- | src/libstd/map.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs index 3fab62261fc..5373c1d336f 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -83,6 +83,7 @@ trait Map<K:Eq IterBytes Hash Copy, V: Copy> { } mod util { + #[legacy_exports]; type Rational = {num: int, den: int}; // : int::positive(*.den); pure fn rational_leq(x: Rational, y: Rational) -> bool { @@ -96,6 +97,7 @@ mod util { // FIXME (#2344): package this up and export it as a datatype usable for // external code that doesn't want to pay the cost of a box. mod chained { + #[legacy_exports]; export T, mk, HashMap; const initial_capacity: uint = 32u; // 2^5 @@ -518,6 +520,7 @@ impl<K: Eq IterBytes Hash Copy, V: Copy> @Mut<LinearMap<K, V>>: #[cfg(test)] mod tests { + #[legacy_exports]; #[test] fn test_simple() { |
