Skip to content

Commit fc406e5

Browse files
committed
---
yaml --- r: 48755 b: refs/heads/snap-stage3 c: 471d2b1 h: refs/heads/master i: 48753: baef2ba 48751: b074b1d v: v3
1 parent a51bd02 commit fc406e5

File tree

4 files changed

+5
-33
lines changed

4 files changed

+5
-33
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: d856215b925441a4889cb23cab5758c36e4a4746
4+
refs/heads/snap-stage3: 471d2b17657bdaea357faeaa3e857f8a758bfbe3
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libcore/rt/thread_local_storage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type pthread_key_t = c_ulong;
4040

4141
#[cfg(target_os="linux")]
4242
#[cfg(target_os="freebsd")]
43+
#[cfg(target_os="android")]
4344
#[allow(non_camel_case_types)] // foreign type
4445
type pthread_key_t = c_uint;
4546

branches/snap-stage3/src/libcore/trie.rs

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ impl<T> Map<uint, T> for TrieMap<T> {
137137
}
138138

139139
impl<T> TrieMap<T> {
140-
/// Create an empty TrieMap
141140
#[inline(always)]
142141
static pure fn new() -> TrieMap<T> {
143142
TrieMap{root: TrieNode::new(), length: 0}
@@ -192,12 +191,6 @@ impl Mutable for TrieSet {
192191
}
193192

194193
impl TrieSet {
195-
/// Create an empty TrieSet
196-
#[inline(always)]
197-
static pure fn new() -> TrieSet {
198-
TrieSet{map: TrieMap::new()}
199-
}
200-
201194
/// Return true if the set contains a value
202195
#[inline(always)]
203196
pure fn contains(&self, value: &uint) -> bool {
@@ -272,8 +265,8 @@ impl<T> TrieNode<T> {
272265
// if this was done via a trait, the key could be generic
273266
#[inline(always)]
274267
pure fn chunk(n: uint, idx: uint) -> uint {
275-
let sh = uint::bits - (SHIFT * (idx + 1));
276-
(n >> sh) & MASK
268+
let real_idx = uint::bytes - 1 - idx;
269+
(n >> (SHIFT * real_idx)) & MASK
277270
}
278271

279272
fn insert<T>(count: &mut uint, child: &mut Child<T>, key: uint, value: T,
@@ -469,26 +462,4 @@ mod tests {
469462
n -= 1;
470463
}
471464
}
472-
473-
#[test]
474-
fn test_sane_chunk() {
475-
let x = 1;
476-
let y = 1 << (uint::bits - 1);
477-
478-
let mut trie = TrieSet::new();
479-
480-
fail_unless!(trie.insert(x));
481-
fail_unless!(trie.insert(y));
482-
483-
fail_unless!(trie.len() == 2);
484-
485-
let expected = [x, y];
486-
487-
let mut i = 0;
488-
489-
for trie.each |x| {
490-
fail_unless!(expected[i] == *x);
491-
i += 1;
492-
}
493-
}
494465
}

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,6 @@ pub fn expr_kind(tcx: ctxt,
31023102
ast::expr_block(*) |
31033103
ast::expr_copy(*) |
31043104
ast::expr_repeat(*) |
3105-
ast::expr_inline_asm(*) |
31063105
ast::expr_lit(@codemap::spanned {node: lit_str(_), _}) |
31073106
ast::expr_vstore(_, ast::expr_vstore_slice) |
31083107
ast::expr_vstore(_, ast::expr_vstore_mut_slice) |
@@ -3145,6 +3144,7 @@ pub fn expr_kind(tcx: ctxt,
31453144
ast::expr_loop(*) |
31463145
ast::expr_assign(*) |
31473146
ast::expr_swap(*) |
3147+
ast::expr_inline_asm(*) |
31483148
ast::expr_assign_op(*) => {
31493149
RvalueStmtExpr
31503150
}

0 commit comments

Comments
 (0)