Skip to content

Commit b098b55

Browse files
committed
---
yaml --- r: 173991 b: refs/heads/batch c: e46620a h: refs/heads/master i: 173989: de530c7 173987: 658b296 173983: e3af19c v: v3
1 parent 165f30f commit b098b55

File tree

93 files changed

+748
-1097
lines changed

Some content is hidden

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

93 files changed

+748
-1097
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: d52398ef8cd93c6089ceacb176ae0dbe213d301e
32+
refs/heads/batch: e46620af45ecf1f6388dc29f5a4b5f0954cf6dd8
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

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/slice.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ mod tests {
16311631
#[test]
16321632
fn test_slice_from() {
16331633
let vec: &[int] = &[1, 2, 3, 4];
1634-
assert_eq!(&vec[], vec);
1634+
assert_eq!(&vec[0..], vec);
16351635
let b: &[int] = &[3, 4];
16361636
assert_eq!(&vec[2..], b);
16371637
let b: &[int] = &[];
@@ -1641,11 +1641,11 @@ mod tests {
16411641
#[test]
16421642
fn test_slice_to() {
16431643
let vec: &[int] = &[1, 2, 3, 4];
1644-
assert_eq!(&vec[..4], vec);
1644+
assert_eq!(&vec[0..4], vec);
16451645
let b: &[int] = &[1, 2];
1646-
assert_eq!(&vec[..2], b);
1646+
assert_eq!(&vec[0..2], b);
16471647
let b: &[int] = &[];
1648-
assert_eq!(&vec[..0], b);
1648+
assert_eq!(&vec[0..0], b);
16491649
}
16501650

16511651

@@ -2538,15 +2538,15 @@ mod tests {
25382538
let (left, right) = values.split_at_mut(2);
25392539
{
25402540
let left: &[_] = left;
2541-
assert!(left[..left.len()] == [1, 2][]);
2541+
assert!(left[0..left.len()] == [1, 2][]);
25422542
}
25432543
for p in left.iter_mut() {
25442544
*p += 1;
25452545
}
25462546

25472547
{
25482548
let right: &[_] = right;
2549-
assert!(right[..right.len()] == [3, 4, 5][]);
2549+
assert!(right[0..right.len()] == [3, 4, 5][]);
25502550
}
25512551
for p in right.iter_mut() {
25522552
*p += 2;

branches/batch/src/libcollections/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ pub trait StrExt: Index<FullRange, Output = str> {
807807
/// out of bounds.
808808
///
809809
/// See also `slice`, `slice_from` and `slice_chars`.
810-
#[unstable = "use slice notation [..a] instead"]
810+
#[unstable = "use slice notation [0..a] instead"]
811811
fn slice_to(&self, end: uint) -> &str {
812812
core_str::StrExt::slice_to(&self[], end)
813813
}

branches/batch/src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl String {
168168

169169
if i > 0 {
170170
unsafe {
171-
res.as_mut_vec().push_all(&v[..i])
171+
res.as_mut_vec().push_all(&v[0..i])
172172
};
173173
}
174174

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)