File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
branches/dist-snap/src/libcore Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10
- refs/heads/dist-snap: 4ad9e5c0c29c0ef4ea62f31679de3f072abb454f
10
+ refs/heads/dist-snap: 98900d55e7f08a4b4cb665152a01b0bbf655baae
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ type pthread_key_t = c_ulong;
40
40
41
41
#[ cfg( target_os="linux" ) ]
42
42
#[ cfg( target_os="freebsd" ) ]
43
- #[ cfg( target_os="android" ) ]
44
43
#[ allow( non_camel_case_types) ] // foreign type
45
44
type pthread_key_t = c_uint ;
46
45
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ impl<T> Map<uint, T> for TrieMap<T> {
137
137
}
138
138
139
139
impl < T > TrieMap < T > {
140
+ /// Create an empty TrieMap
140
141
#[ inline( always) ]
141
142
static pure fn new( ) -> TrieMap <T > {
142
143
TrieMap { root: TrieNode :: new( ) , length: 0 }
@@ -191,6 +192,12 @@ impl Mutable for TrieSet {
191
192
}
192
193
193
194
impl TrieSet {
195
+ /// Create an empty TrieSet
196
+ #[ inline( always) ]
197
+ static pure fn new( ) -> TrieSet {
198
+ TrieSet { map: TrieMap :: new ( ) }
199
+ }
200
+
194
201
/// Return true if the set contains a value
195
202
#[ inline( always) ]
196
203
pure fn contains ( & self , value : & uint ) -> bool {
You can’t perform that action at this time.
0 commit comments