Skip to content

Commit fb7c088

Browse files
committed
Test fixes and rebase conflicts
1 parent dbeef0e commit fb7c088

File tree

9 files changed

+18
-13
lines changed

9 files changed

+18
-13
lines changed

mk/tests.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ tidy:
285285
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
286286
$(Q)echo $(ALL_HS) \
287287
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
288-
$(Q)find $(S)src -type f -perm /a+x \
288+
$(Q)find $(S)src -type f -perm +a+x \
289289
-not -name '*.rs' -and -not -name '*.py' \
290290
-and -not -name '*.sh' \
291291
| grep '^$(S)src/jemalloc' -v \

src/liballoc/arc.rs

+8-7
Original file line numberDiff line numberDiff line change
@@ -33,36 +33,37 @@
3333
//!
3434
//! ```
3535
//! use std::sync::Arc;
36+
//! use std::thread::Thread;
3637
//!
3738
//! let five = Arc::new(5i);
3839
//!
3940
//! for i in range(0u, 10) {
4041
//! let five = five.clone();
4142
//!
42-
//! spawn(move || {
43+
//! Thread::spawn(move || {
4344
//! println!("{}", five);
44-
//! });
45+
//! }).detach();
4546
//! }
4647
//! ```
4748
//!
4849
//! Sharing mutable data safely between tasks with a `Mutex`:
4950
//!
5051
//! ```
51-
//! use std::sync::Arc;
52-
//! use std::sync::Mutex;
52+
//! use std::sync::{Arc, Mutex};
53+
//! use std::thread::Thread;
5354
//!
5455
//! let five = Arc::new(Mutex::new(5i));
5556
//!
5657
//! for _ in range(0u, 10) {
5758
//! let five = five.clone();
5859
//!
59-
//! spawn(move || {
60+
//! Thread::spawn(move || {
6061
//! let mut number = five.lock();
6162
//!
62-
//! number += 1;
63+
//! *number += 1;
6364
//!
6465
//! println!("{}", *number); // prints 6
65-
//! });
66+
//! }).detach();
6667
//! }
6768
//! ```
6869

src/libcollections/vec.rs

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ use core::cmp::max;
5353
use core::default::Default;
5454
use core::fmt;
5555
use core::hash::{mod, Hash};
56+
use core::iter::repeat;
5657
use core::kinds::marker::{ContravariantLifetime, InvariantType};
5758
use core::mem;
5859
use core::num::{Int, UnsignedInt};

src/librustc/middle/stability.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl<'v> Visitor<'v> for Annotator {
131131
}
132132

133133
fn visit_foreign_item(&mut self, i: &ast::ForeignItem) {
134-
self.annotate(i.id, &i.attrs, |_| {});
134+
self.annotate(i.id, true, &i.attrs, |_| {});
135135
}
136136
}
137137

src/librustc/util/ppaux.rs

+2
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@ pub fn parameterized<'tcx>(cx: &ctxt<'tcx>,
535535
base,
536536
if strs[0].starts_with("(") && strs[0].ends_with(",)") {
537537
strs[0][1 .. strs[0].len() - 2] // Remove '(' and ',)'
538+
} else if strs[0].starts_with("(") && strs[0].ends_with(")") {
539+
strs[0][1 .. strs[0].len() - 1] // Remove '(' and ')'
538540
} else {
539541
strs[0][]
540542
},

src/libstd/collections/hash/map.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,6 @@ mod test_map {
14731473

14741474
use super::HashMap;
14751475
use super::Entry::{Occupied, Vacant};
1476-
use cmp::Equiv;
14771476
use hash;
14781477
use iter::{range_inclusive, range_step_inclusive};
14791478
use cell::RefCell;

src/snapshots.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ S 2014-12-20 8443b09
33
linux-i386 3daf531aed03f5769402f2fef852377e2838db98
44
linux-x86_64 4f3c8b092dd4fe159d6f25a217cf62e0e899b365
55
macos-i386 2a3e647b9c400505bd49cfe56091e866c83574ca
6-
macos-x86_64 78f952a3e77a9921a23c957bb133131017b57324
6+
macos-x86_64 5e730efc34d79a33f464a87686c10eace0760a2e
77
winnt-i386 8ea056043de82096d5ce5abc98c8c74ebac7e77d
88
winnt-x86_64 9804100dafae9b64a76e0ea7e1be157719dae151
99

src/test/compile-fail/issue-13359.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ fn bar(_s: u32) { }
1414

1515
fn main() {
1616
foo(1*(1 as int));
17-
//~^ ERROR: mismatched types: expected `i16`, found `int` (expected `i16`, found `int`)
17+
//~^ ERROR: mismatched types: expected `i16`, found `int` (expected i16, found int)
1818

1919
bar(1*(1 as uint));
20-
//~^ ERROR: mismatched types: expected `u32`, found `uint` (expected `u32`, found `uint`)
20+
//~^ ERROR: mismatched types: expected `u32`, found `uint` (expected u32, found uint)
2121
}

src/test/run-pass/issue-20091.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-windows currently windows requires UTF-8 for spawning processes
12+
1113
use std::io::Command;
1214
use std::os;
1315

0 commit comments

Comments
 (0)