Skip to content

Commit 8aa4cb4

Browse files
committed
---
yaml --- r: 167469 b: refs/heads/snap-stage3 c: 582cba1 h: refs/heads/master i: 167467: de62640 v: v3
1 parent 569c4af commit 8aa4cb4

File tree

12 files changed

+22
-18
lines changed

12 files changed

+22
-18
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: 023dfb0c898d851dee6ace2f8339b73b5287136b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 67d13883f868e6b27aa00a6c69f7c748d16e1c94
4+
refs/heads/snap-stage3: 582cba183f18eea5c40b6c035d63ad449a9e8604
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/liballoc/arc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ mod tests {
600600
use std::option::Option::{Some, None};
601601
use std::str::Str;
602602
use std::sync::atomic;
603+
use std::sync::atomic::Ordering::{Acquire, SeqCst};
603604
use std::task;
604605
use std::kinds::Send;
605606
use std::vec::Vec;

branches/snap-stage3/src/libcollections/btree/node.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ impl<K, V> Node<K, V> {
304304
let (vals_offset, _) = calculate_offsets_generic::<K, V>(capacity, true);
305305

306306
Node {
307-
keys: Unique(buffer as *mut K).
307+
keys: Unique(buffer as *mut K),
308308
vals: Unique(unsafe { buffer.offset(vals_offset as int) as *mut V }),
309-
edges: Unique(ptr::null_mut::<u8>()),
309+
edges: Unique(ptr::null_mut()),
310310
_len: 0,
311311
_capacity: capacity,
312312
}
@@ -574,7 +574,7 @@ impl <K, V> Node<K, V> {
574574

575575
/// If the node has any children
576576
pub fn is_leaf(&self) -> bool {
577-
self.edges.is_null()
577+
self.edges.0.is_null()
578578
}
579579

580580
/// if the node has too few elements
@@ -1058,7 +1058,7 @@ impl<K, V> Node<K, V> {
10581058
vals: RawItems::from_slice(self.vals()),
10591059
edges: RawItems::from_slice(self.edges()),
10601060

1061-
ptr: self.keys as *mut u8,
1061+
ptr: self.keys.0 as *mut u8,
10621062
capacity: self.capacity(),
10631063
is_leaf: self.is_leaf()
10641064
},

branches/snap-stage3/src/libcollections/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,11 +1102,11 @@ impl<T: Clone> ToOwned<Vec<T>> for [T] {
11021102
// Iterators
11031103
////////////////////////////////////////////////////////////////////////////////
11041104

1105-
#[deriving(Copy)]
1105+
#[deriving(Copy, Clone)]
11061106
enum Direction { Pos, Neg }
11071107

11081108
/// An `Index` and `Direction` together.
1109-
#[deriving(Copy)]
1109+
#[deriving(Copy, Clone)]
11101110
struct SizeDirection {
11111111
size: uint,
11121112
dir: Direction,

branches/snap-stage3/src/libcoretest/atomic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use core::atomic::*;
12+
use core::atomic::Ordering::SeqCst;
1213

1314
#[test]
1415
fn bool_() {

branches/snap-stage3/src/librustc_back/sha2.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,12 @@ static H256: [u32, ..8] = [
530530
mod tests {
531531
extern crate rand;
532532

533-
use super::{Digest, Sha256, FixedBuffer};
534-
use self::rand::isaac::IsaacRng;
535533
use self::rand::Rng;
534+
use self::rand::isaac::IsaacRng;
536535
use serialize::hex::FromHex;
536+
use std::iter::repeat;
537537
use std::num::Int;
538+
use super::{Digest, Sha256, FixedBuffer};
538539

539540
// A normal addition - no overflow occurs
540541
#[test]

branches/snap-stage3/src/libstd/collections/hash/map.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,9 +1320,9 @@ pub struct Iter<'a, K: 'a, V: 'a> {
13201320
}
13211321

13221322
// FIXME(#19839) Remove in favor of `#[deriving(Clone)]`
1323-
impl<'a, K, V> Clone for Entries<'a, K, V> {
1324-
fn clone(&self) -> Entries<'a, K, V> {
1325-
Entries {
1323+
impl<'a, K, V> Clone for Iter<'a, K, V> {
1324+
fn clone(&self) -> Iter<'a, K, V> {
1325+
Iter {
13261326
inner: self.inner.clone()
13271327
}
13281328
}

branches/snap-stage3/src/libstd/collections/hash/table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -788,9 +788,9 @@ pub struct Iter<'a, K: 'a, V: 'a> {
788788
}
789789

790790
// FIXME(#19839) Remove in favor of `#[deriving(Clone)]`
791-
impl<'a, K, V> Clone for Entries<'a, K, V> {
792-
fn clone(&self) -> Entries<'a, K, V> {
793-
Entries {
791+
impl<'a, K, V> Clone for Iter<'a, K, V> {
792+
fn clone(&self) -> Iter<'a, K, V> {
793+
Iter {
794794
iter: self.iter.clone(),
795795
elems_left: self.elems_left
796796
}

branches/snap-stage3/src/libstd/os.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ fn real_args() -> Vec<String> {
716716
#[cfg(windows)]
717717
fn real_args() -> Vec<String> {
718718
use slice;
719+
use iter::range;
719720

720721
let mut nArgs: c_int = 0;
721722
let lpArgCount: *mut c_int = &mut nArgs;

branches/snap-stage3/src/libstd/sys/windows/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn fill_utf16_buf_and_decode(f: |*mut u16, DWORD| -> DWORD) -> Option<String
129129
let mut res = None;
130130
let mut done = false;
131131
while !done {
132-
let mut buf: Vec<u16> = repeat(0u16).take(n).collect();
132+
let mut buf: Vec<u16> = repeat(0u16).take(n as uint).collect();
133133
let k = f(buf.as_mut_ptr(), n);
134134
if k == (0 as DWORD) {
135135
done = true;

branches/snap-stage3/src/test/compile-fail/trait-object-safety.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ impl Tr for St {
2222

2323
fn main() {
2424
let _: &Tr = &St; //~ ERROR cannot convert to a trait object because trait `Tr` is not
25-
//~^ NOTE cannot call a static method (`foo`) through a trait object
2625
}

branches/snap-stage3/src/test/run-pass/issue-12684.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
// except according to those terms.
1010

1111
use std::time::Duration;
12+
use std::thread::Thread;
1213

1314
fn main() {
14-
std::task::spawn(move|| customtask());
15+
Thread::spawn(move|| customtask()).join().ok().unwrap();
1516
}
1617

1718
fn customtask() {

0 commit comments

Comments
 (0)