Skip to content

Commit f60a405

Browse files
committed
---
yaml --- r: 172918 b: refs/heads/batch c: 22a059d h: refs/heads/master v: v3
1 parent a60eacf commit f60a405

36 files changed

+364
-594
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: f1241f14dc8f5e708e258a46950e8c7635efe6c7
32+
refs/heads/batch: 22a059ddd1a5f3db52f07e8124c52073d305cc5e
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/etc/emacs/rust-mode.el

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
(modify-syntax-entry ?\" "\"" table)
3232
(modify-syntax-entry ?\\ "\\" table)
3333

34-
;; mark _ as a word constituent so that identifiers
35-
;; such as xyz_type don't cause type to be highlighted
36-
;; as a keyword
37-
(modify-syntax-entry ?_ "w" table)
38-
3934
;; Comments
4035
(modify-syntax-entry ?/ ". 124b" table)
4136
(modify-syntax-entry ?* ". 23" table)

branches/batch/src/liballoc/arc.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ unsafe impl<T: Sync + Send> Send for Weak<T> { }
137137
unsafe impl<T: Sync + Send> Sync for Weak<T> { }
138138

139139
struct ArcInner<T> {
140-
strong: atomic::AtomicUsize,
141-
weak: atomic::AtomicUsize,
140+
strong: atomic::AtomicUint,
141+
weak: atomic::AtomicUint,
142142
data: T,
143143
}
144144

@@ -161,8 +161,8 @@ impl<T> Arc<T> {
161161
// Start the weak pointer count as 1 which is the weak pointer that's
162162
// held by all the strong pointers (kinda), see std/rc.rs for more info
163163
let x = box ArcInner {
164-
strong: atomic::AtomicUsize::new(1),
165-
weak: atomic::AtomicUsize::new(1),
164+
strong: atomic::AtomicUint::new(1),
165+
weak: atomic::AtomicUint::new(1),
166166
data: data,
167167
};
168168
Arc { _ptr: unsafe { NonZero::new(mem::transmute(x)) } }
@@ -619,7 +619,7 @@ mod tests {
619619
use super::{Arc, Weak, weak_count, strong_count};
620620
use std::sync::Mutex;
621621

622-
struct Canary(*mut atomic::AtomicUsize);
622+
struct Canary(*mut atomic::AtomicUint);
623623

624624
impl Drop for Canary
625625
{
@@ -743,16 +743,16 @@ mod tests {
743743

744744
#[test]
745745
fn drop_arc() {
746-
let mut canary = atomic::AtomicUsize::new(0);
747-
let x = Arc::new(Canary(&mut canary as *mut atomic::AtomicUsize));
746+
let mut canary = atomic::AtomicUint::new(0);
747+
let x = Arc::new(Canary(&mut canary as *mut atomic::AtomicUint));
748748
drop(x);
749749
assert!(canary.load(Acquire) == 1);
750750
}
751751

752752
#[test]
753753
fn drop_arc_weak() {
754-
let mut canary = atomic::AtomicUsize::new(0);
755-
let arc = Arc::new(Canary(&mut canary as *mut atomic::AtomicUsize));
754+
let mut canary = atomic::AtomicUint::new(0);
755+
let arc = Arc::new(Canary(&mut canary as *mut atomic::AtomicUint));
756756
let arc_weak = arc.downgrade();
757757
assert!(canary.load(Acquire) == 0);
758758
drop(arc);

branches/batch/src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ mod tests {
21992199

22002200
#[test]
22012201
fn test_map_in_place_zero_drop_count() {
2202-
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
2202+
use std::sync::atomic::{AtomicUint, Ordering, ATOMIC_UINT_INIT};
22032203

22042204
#[derive(Clone, PartialEq, Show)]
22052205
struct Nothing;
@@ -2213,7 +2213,7 @@ mod tests {
22132213
}
22142214
}
22152215
const NUM_ELEMENTS: uint = 2;
2216-
static DROP_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT;
2216+
static DROP_COUNTER: AtomicUint = ATOMIC_UINT_INIT;
22172217

22182218
let v = repeat(Nothing).take(NUM_ELEMENTS).collect::<Vec<_>>();
22192219

0 commit comments

Comments
 (0)