Skip to content

Commit 1ac4950

Browse files
committed
---
yaml --- r: 158045 b: refs/heads/master c: 768caf1 h: refs/heads/master i: 158043: 25d8cea v: v3
1 parent df36972 commit 1ac4950

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1855
-2643
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b11b706545ec986b0416a14383170c60004644a5
2+
refs/heads/master: 768caf1083f916f47cfa2aaa2134083e572ef8b1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 1b2ad7831f1745bf4a4709a1fa1772afb47c933c
55
refs/heads/try: 98bd84a3300f974f400a3eeb56567ad3f77b13f0

trunk/src/doc/guide-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ The benchmarking runner offers two ways to avoid this. Either, the
287287
closure that the `iter` method receives can return an arbitrary value
288288
which forces the optimizer to consider the result used and ensures it
289289
cannot remove the computation entirely. This could be done for the
290-
example above by adjusting the `b.iter` call to
290+
example above by adjusting the `bh.iter` call to
291291

292292
~~~
293293
# struct X; impl X { fn iter<T>(&self, _: || -> T) {} } let b = X;

trunk/src/doc/intro.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,14 @@ non-deterministic aspect:
494494
$ cargo run
495495
Compiling hello_world v0.0.1 (file:///Users/you/src/hello_world)
496496
Running `target/hello_world`
497-
numbers[1] is 3
498-
numbers[0] is 2
499-
numbers[2] is 4
497+
numbers[1] is 2
498+
numbers[0] is 1
499+
numbers[2] is 3
500500
$ cargo run
501501
Running `target/hello_world`
502-
numbers[2] is 4
503-
numbers[1] is 3
504-
numbers[0] is 2
502+
numbers[2] is 3
503+
numbers[1] is 2
504+
numbers[0] is 1
505505
```
506506

507507
Each time, we get a slightly different output, because each thread works in a

trunk/src/doc/reference.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ An _integer literal_ has one of four forms:
400400
* A _decimal literal_ starts with a *decimal digit* and continues with any
401401
mixture of *decimal digits* and _underscores_.
402402
* A _hex literal_ starts with the character sequence `U+0030` `U+0078`
403-
(`0x`) and continues as any mixture of hex digits and underscores.
403+
(`0x`) and continues as any mixture hex digits and underscores.
404404
* An _octal literal_ starts with the character sequence `U+0030` `U+006F`
405-
(`0o`) and continues as any mixture of octal digits and underscores.
405+
(`0o`) and continues as any mixture octal digits and underscores.
406406
* A _binary literal_ starts with the character sequence `U+0030` `U+0062`
407-
(`0b`) and continues as any mixture of binary digits and underscores.
407+
(`0b`) and continues as any mixture binary digits and underscores.
408408

409409
An integer literal may be followed (immediately, without any spaces) by an
410410
_integer suffix_, which changes the type of the literal. There are two kinds of
@@ -944,10 +944,10 @@ An example of `use` declarations:
944944
```
945945
use std::iter::range_step;
946946
use std::option::{Some, None};
947-
use std::collections::hash_map::{mod, HashMap};
947+
use std::collections::hashmap::{mod, HashMap};
948948
949-
fn foo<T>(_: T){}
950-
fn bar(map1: HashMap<String, uint>, map2: hash_map::HashMap<String, uint>){}
949+
# fn foo<T>(_: T){}
950+
# fn bar(map: HashMap<String, uint>, set: hashmap::HashSet<String>){}
951951
952952
fn main() {
953953
// Equivalent to 'std::iter::range_step(0u, 10u, 2u);'
@@ -957,10 +957,10 @@ fn main() {
957957
// std::option::None]);'
958958
foo(vec![Some(1.0f64), None]);
959959
960-
// Both `hash_map` and `HashMap` are in scope.
961-
let map1 = HashMap::new();
962-
let map2 = hash_map::HashMap::new();
963-
bar(map1, map2);
960+
// Both `hash` and `HashMap` are in scope.
961+
let map = HashMap::new();
962+
let set = hashmap::HashSet::new();
963+
bar(map, set);
964964
}
965965
```
966966

@@ -2100,15 +2100,15 @@ plugins](guide-plugin.html#lint-plugins) can provide additional lint checks.
21002100
```{.ignore}
21012101
mod m1 {
21022102
// Missing documentation is ignored here
2103-
#[allow(missing_docs)]
2103+
#[allow(missing_doc)]
21042104
pub fn undocumented_one() -> int { 1 }
21052105
21062106
// Missing documentation signals a warning here
2107-
#[warn(missing_docs)]
2107+
#[warn(missing_doc)]
21082108
pub fn undocumented_too() -> int { 2 }
21092109
21102110
// Missing documentation signals an error here
2111-
#[deny(missing_docs)]
2111+
#[deny(missing_doc)]
21122112
pub fn undocumented_end() -> int { 3 }
21132113
}
21142114
```
@@ -2117,16 +2117,16 @@ This example shows how one can use `allow` and `warn` to toggle a particular
21172117
check on and off.
21182118

21192119
```{.ignore}
2120-
#[warn(missing_docs)]
2120+
#[warn(missing_doc)]
21212121
mod m2{
2122-
#[allow(missing_docs)]
2122+
#[allow(missing_doc)]
21232123
mod nested {
21242124
// Missing documentation is ignored here
21252125
pub fn undocumented_one() -> int { 1 }
21262126
21272127
// Missing documentation signals a warning here,
21282128
// despite the allow above.
2129-
#[warn(missing_docs)]
2129+
#[warn(missing_doc)]
21302130
pub fn undocumented_two() -> int { 2 }
21312131
}
21322132
@@ -2139,10 +2139,10 @@ This example shows how one can use `forbid` to disallow uses of `allow` for
21392139
that lint check.
21402140

21412141
```{.ignore}
2142-
#[forbid(missing_docs)]
2142+
#[forbid(missing_doc)]
21432143
mod m3 {
21442144
// Attempting to toggle warning signals an error here
2145-
#[allow(missing_docs)]
2145+
#[allow(missing_doc)]
21462146
/// Returns 2.
21472147
pub fn undocumented_too() -> int { 2 }
21482148
}
@@ -4096,7 +4096,7 @@ cause transitions between the states. The lifecycle states of a task are:
40964096

40974097
* running
40984098
* blocked
4099-
* panicked
4099+
* panicked
41004100
* dead
41014101

41024102
A task begins its lifecycle &mdash; once it has been spawned &mdash; in the

trunk/src/doc/rust.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ body {
6262
font-size: 18px;
6363
color: #333;
6464
line-height: 1.428571429;
65-
66-
-webkit-font-feature-settings: "kern", "liga";
67-
-moz-font-feature-settings: "kern", "liga";
68-
font-feature-settings: "kern", "liga";
6965
}
7066
@media (min-width: 768px) {
7167
body {

trunk/src/etc/unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly
3636
37-
#![allow(missing_docs, non_uppercase_statics, non_snake_case)]
37+
#![allow(missing_doc, non_uppercase_statics, non_snake_case)]
3838
'''
3939

4040
# Mapping taken from Table 12 from:

trunk/src/libcollections/bit.rs renamed to trunk/src/libcollections/bitv.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// FIXME(Gankro): Bitv and BitvSet are very tightly coupled. Ideally (for maintenance),
12-
// they should be in separate files/modules, with BitvSet only using Bitv's public API.
13-
1411
//! Collections implemented with bit vectors.
1512
//!
1613
//! # Example
@@ -1657,7 +1654,7 @@ mod tests {
16571654
use std::rand::Rng;
16581655
use test::Bencher;
16591656

1660-
use super::{Bitv, BitvSet, from_fn, from_bytes};
1657+
use bitv::{Bitv, BitvSet, from_fn, from_bytes};
16611658
use bitv;
16621659
use vec::Vec;
16631660

trunk/src/libcollections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use core::default::Default;
2323
use core::{iter, fmt, mem};
2424
use core::fmt::Show;
2525

26-
use ring_buf::RingBuf;
26+
use ringbuf::RingBuf;
2727

2828
/// A map based on a B-Tree.
2929
///

trunk/src/libcollections/btree/mod.rs

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
pub use self::map::BTreeMap;
12+
pub use self::map::Entries;
13+
pub use self::map::MutEntries;
14+
pub use self::map::MoveEntries;
15+
pub use self::map::Keys;
16+
pub use self::map::Values;
17+
pub use self::map::Entry;
18+
pub use self::map::Occupied;
19+
pub use self::map::Vacant;
20+
pub use self::map::OccupiedEntry;
21+
pub use self::map::VacantEntry;
22+
23+
pub use self::set::BTreeSet;
24+
pub use self::set::Items;
25+
pub use self::set::MoveItems;
26+
pub use self::set::DifferenceItems;
27+
pub use self::set::UnionItems;
28+
pub use self::set::SymDifferenceItems;
29+
pub use self::set::IntersectionItems;
30+
31+
1132
mod node;
12-
pub mod map;
13-
pub mod set;
33+
mod map;
34+
mod set;

trunk/src/libcollections/btree/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use core::prelude::*;
1515

16-
use btree_map::{BTreeMap, Keys, MoveEntries};
16+
use super::{BTreeMap, Keys, MoveEntries};
1717
use std::hash::Hash;
1818
use core::default::Default;
1919
use core::{iter, fmt};

trunk/src/libcollections/enum_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ mod test {
155155
use std::prelude::*;
156156
use std::mem;
157157

158-
use super::{EnumSet, CLike};
158+
use enum_set::{EnumSet, CLike};
159159

160160
#[deriving(PartialEq, Show)]
161161
#[repr(uint)]

trunk/src/libcollections/lib.rs

Lines changed: 14 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -37,72 +37,34 @@ extern crate alloc;
3737
#[cfg(test)] #[phase(plugin, link)] extern crate std;
3838
#[cfg(test)] #[phase(plugin, link)] extern crate log;
3939

40-
41-
pub use binary_heap::BinaryHeap;
42-
pub use bitv::Bitv;
43-
pub use bitv_set::BitvSet;
44-
pub use btree_map::BTreeMap;
45-
pub use btree_set::BTreeSet;
40+
pub use bitv::{Bitv, BitvSet};
41+
pub use btree::{BTreeMap, BTreeSet};
4642
pub use dlist::DList;
4743
pub use enum_set::EnumSet;
48-
pub use ring_buf::RingBuf;
44+
pub use priority_queue::PriorityQueue;
45+
pub use ringbuf::RingBuf;
46+
pub use smallintmap::SmallIntMap;
4947
pub use string::String;
50-
pub use tree_map::TreeMap;
51-
pub use tree_set::TreeSet;
52-
pub use trie_map::TrieMap;
53-
pub use trie_set::TrieSet;
48+
pub use treemap::{TreeMap, TreeSet};
49+
pub use trie::{TrieMap, TrieSet};
5450
pub use vec::Vec;
55-
pub use vec_map::VecMap;
5651

5752
mod macros;
5853

59-
pub mod binary_heap;
60-
mod bit;
61-
mod btree;
54+
pub mod bitv;
55+
pub mod btree;
6256
pub mod dlist;
6357
pub mod enum_set;
64-
pub mod ring_buf;
65-
mod tree;
66-
mod trie;
58+
pub mod priority_queue;
59+
pub mod ringbuf;
60+
pub mod smallintmap;
61+
pub mod treemap;
62+
pub mod trie;
6763
pub mod slice;
6864
pub mod str;
6965
pub mod string;
7066
pub mod vec;
7167
pub mod hash;
72-
pub mod vec_map;
73-
74-
pub mod bitv {
75-
pub use bit::{Bitv, Bits, from_fn, from_bytes};
76-
}
77-
78-
pub mod bitv_set {
79-
pub use bit::{BitvSet, BitPositions, TwoBitPositions};
80-
}
81-
82-
pub mod tree_map {
83-
pub use tree::map::*;
84-
}
85-
86-
pub mod tree_set {
87-
pub use tree::set::*;
88-
}
89-
90-
pub mod trie_map {
91-
pub use trie::map::*;
92-
}
93-
94-
pub mod trie_set {
95-
pub use trie::set::*;
96-
}
97-
98-
pub mod btree_map {
99-
pub use btree::map::*;
100-
}
101-
102-
pub mod btree_set {
103-
pub use btree::set::*;
104-
}
105-
10668

10769
#[cfg(test)] mod bench;
10870

0 commit comments

Comments
 (0)