File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
branches/auto/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 @@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 4ad9e5c0c29c0ef4ea62f31679de3f072abb454f
17
+ refs/heads/auto: 98900d55e7f08a4b4cb665152a01b0bbf655baae
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
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