Skip to content

Commit 81ce7bf

Browse files
committed
---
yaml --- r: 60640 b: refs/heads/auto c: ee52865 h: refs/heads/master v: v3
1 parent 7fcc9a4 commit 81ce7bf

30 files changed

+67
-44
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 1be40be613177d4849f42da284a3af74e1d58da2
17+
refs/heads/auto: ee52865c8848657e737e3c2071728b062ec9c8de
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libextra/arc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ pub impl<'self, T:Const + Owned> RWReadMode<'self, T> {
511511

512512
#[cfg(test)]
513513
mod tests {
514+
use core::prelude::*;
514515

515516
use arc::*;
516517
use arc;

branches/auto/src/libextra/dlist.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ impl<T> BaseIter<T> for @mut DList<T> {
534534

535535
#[cfg(test)]
536536
mod tests {
537+
use core::prelude::*;
538+
537539
use super::*;
538540

539541
#[test]

branches/auto/src/libextra/fileinput.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ pub fn input_vec_state(files: ~[Option<Path>],
405405
406406
#[cfg(test)]
407407
mod test {
408+
use core::prelude::*;
409+
408410
use core::io::WriterUtil;
409411
use super::{FileInput, pathify, input_vec, input_vec_state};
410412

branches/auto/src/libextra/flatpipes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,8 @@ mod test {
866866
// Tests that the different backends behave the same when the
867867
// binary streaming protocol is broken
868868
mod broken_protocol {
869+
use core::prelude::*;
870+
869871
use flatpipes::{BytePort, FlatPort};
870872
use flatpipes::flatteners::PodUnflattener;
871873
use flatpipes::pod;

branches/auto/src/libextra/json.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ impl to_str::ToStr for Error {
13271327

13281328
#[cfg(test)]
13291329
mod tests {
1330+
use core::prelude::*;
1331+
13301332
use super::*;
13311333

13321334
use core::hashmap::HashMap;

branches/auto/src/libextra/net_tcp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,8 @@ struct TcpBufferedSocketData {
14401440

14411441
#[cfg(test)]
14421442
mod test {
1443+
use core::prelude::*;
1444+
14431445
use net::ip;
14441446
use net::tcp::{GenericListenErr, TcpConnectErrData, TcpListenErrData};
14451447
use net::tcp::{connect, accept, read, listen, TcpSocket, socket_buf};

branches/auto/src/libextra/num/bigint.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,8 @@ pub impl BigInt {
11451145
11461146
#[cfg(test)]
11471147
mod biguint_tests {
1148+
use core::prelude::*;
1149+
11481150
use super::*;
11491151
use core::num::{IntConvertible, Zero, One, FromStrRadix};
11501152
use core::cmp::{Less, Equal, Greater};
@@ -1611,6 +1613,8 @@ mod biguint_tests {
16111613
16121614
#[cfg(test)]
16131615
mod bigint_tests {
1616+
use core::prelude::*;
1617+
16141618
use super::*;
16151619
use core::cmp::{Less, Equal, Greater};
16161620
use core::num::{IntConvertible, Zero, One, FromStrRadix};

branches/auto/src/libextra/num/rational.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ impl<T: FromStrRadix + Clone + Integer + Ord>
284284

285285
#[cfg(test)]
286286
mod test {
287+
use core::prelude::*;
288+
287289
use super::*;
288290
use core::num::{Zero,One,FromStrRadix,IntConvertible};
289291
use core::from_str::FromStr;

branches/auto/src/libextra/priority_queue.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ pub impl <T:Ord> PriorityQueue<T> {
185185
mod tests {
186186
use sort::merge_sort;
187187
use core::cmp::le;
188-
use priority_queue::PriorityQueue::{from_vec, new};
188+
use priority_queue::PriorityQueue;
189189

190190
#[test]
191191
fn test_top_and_pop() {
192192
let data = ~[2, 4, 6, 2, 1, 8, 10, 3, 5, 7, 0, 9, 1];
193193
let mut sorted = merge_sort(data, le);
194-
let mut heap = from_vec(data);
194+
let mut heap = PriorityQueue::from_vec(data);
195195
while !heap.is_empty() {
196196
assert_eq!(heap.top(), sorted.last());
197197
assert_eq!(heap.pop(), sorted.pop());
@@ -200,7 +200,7 @@ mod tests {
200200

201201
#[test]
202202
fn test_push() {
203-
let mut heap = from_vec(~[2, 4, 9]);
203+
let mut heap = PriorityQueue::from_vec(~[2, 4, 9]);
204204
assert_eq!(heap.len(), 3);
205205
assert!(*heap.top() == 9);
206206
heap.push(11);
@@ -222,7 +222,7 @@ mod tests {
222222

223223
#[test]
224224
fn test_push_unique() {
225-
let mut heap = from_vec(~[~2, ~4, ~9]);
225+
let mut heap = PriorityQueue::from_vec(~[~2, ~4, ~9]);
226226
assert_eq!(heap.len(), 3);
227227
assert!(*heap.top() == ~9);
228228
heap.push(~11);
@@ -244,7 +244,7 @@ mod tests {
244244

245245
#[test]
246246
fn test_push_pop() {
247-
let mut heap = from_vec(~[5, 5, 2, 1, 3]);
247+
let mut heap = PriorityQueue::from_vec(~[5, 5, 2, 1, 3]);
248248
assert_eq!(heap.len(), 5);
249249
assert_eq!(heap.push_pop(6), 6);
250250
assert_eq!(heap.len(), 5);
@@ -258,7 +258,7 @@ mod tests {
258258

259259
#[test]
260260
fn test_replace() {
261-
let mut heap = from_vec(~[5, 5, 2, 1, 3]);
261+
let mut heap = PriorityQueue::from_vec(~[5, 5, 2, 1, 3]);
262262
assert_eq!(heap.len(), 5);
263263
assert_eq!(heap.replace(6), 5);
264264
assert_eq!(heap.len(), 5);
@@ -271,7 +271,7 @@ mod tests {
271271
}
272272

273273
fn check_to_vec(data: ~[int]) {
274-
let heap = from_vec(copy data);
274+
let heap = PriorityQueue::from_vec(copy data);
275275
assert_eq!(merge_sort((copy heap).to_vec(), le), merge_sort(data, le));
276276
assert_eq!(heap.to_sorted_vec(), merge_sort(data, le));
277277
}
@@ -296,27 +296,27 @@ mod tests {
296296
#[test]
297297
#[should_fail]
298298
#[ignore(cfg(windows))]
299-
fn test_empty_pop() { let mut heap = new::<int>(); heap.pop(); }
299+
fn test_empty_pop() { let mut heap = PriorityQueue::new::<int>(); heap.pop(); }
300300

301301
#[test]
302302
fn test_empty_maybe_pop() {
303-
let mut heap = new::<int>();
303+
let mut heap = PriorityQueue::new::<int>();
304304
assert!(heap.maybe_pop().is_none());
305305
}
306306

307307
#[test]
308308
#[should_fail]
309309
#[ignore(cfg(windows))]
310-
fn test_empty_top() { let empty = new::<int>(); empty.top(); }
310+
fn test_empty_top() { let empty = PriorityQueue::new::<int>(); empty.top(); }
311311

312312
#[test]
313313
fn test_empty_maybe_top() {
314-
let empty = new::<int>();
314+
let empty = PriorityQueue::new::<int>();
315315
assert!(empty.maybe_top().is_none());
316316
}
317317

318318
#[test]
319319
#[should_fail]
320320
#[ignore(cfg(windows))]
321-
fn test_empty_replace() { let mut heap = new(); heap.replace(5); }
321+
fn test_empty_replace() { let mut heap = PriorityQueue::new(); heap.replace(5); }
322322
}

branches/auto/src/libextra/smallintmap.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ pub impl SmallIntSet {
267267

268268
#[cfg(test)]
269269
mod tests {
270+
use core::prelude::*;
271+
270272
use super::SmallIntMap;
271273

272274
#[test]

branches/auto/src/libextra/sort.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ fn shift_vec<T:Copy>(dest: &mut [T],
746746

747747
#[cfg(test)]
748748
mod test_qsort3 {
749+
use core::prelude::*;
750+
749751
use sort::*;
750752

751753
use core::vec;
@@ -788,6 +790,8 @@ mod test_qsort3 {
788790

789791
#[cfg(test)]
790792
mod test_qsort {
793+
use core::prelude::*;
794+
791795
use sort::*;
792796

793797
use core::int;
@@ -852,6 +856,7 @@ mod test_qsort {
852856

853857
#[cfg(test)]
854858
mod tests {
859+
use core::prelude::*;
855860

856861
use sort::*;
857862

@@ -920,6 +925,8 @@ mod tests {
920925

921926
#[cfg(test)]
922927
mod test_tim_sort {
928+
use core::prelude::*;
929+
923930
use sort::tim_sort;
924931
use core::rand::RngUtil;
925932

@@ -1011,6 +1018,8 @@ mod test_tim_sort {
10111018

10121019
#[cfg(test)]
10131020
mod big_tests {
1021+
use core::prelude::*;
1022+
10141023
use sort::*;
10151024
use core::rand::RngUtil;
10161025

branches/auto/src/libextra/std.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ extern mod core(name = "std", vers = "0.7-pre");
3636
use core::{str, unstable};
3737
use core::str::{StrSlice, OwnedStr};
3838

39+
pub use core::os;
40+
3941
pub mod uv_ll;
4042

4143
// General io and system-services modules

branches/auto/src/libextra/sync.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ pub impl<'self> RWlockReadMode<'self> {
711711

712712
#[cfg(test)]
713713
mod tests {
714+
use core::prelude::*;
714715

715716
use sync::*;
716717

branches/auto/src/libextra/tempfile.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ pub fn mkdtemp(tmpdir: &Path, suffix: &str) -> Option<Path> {
2727

2828
#[cfg(test)]
2929
mod tests {
30+
use core::prelude::*;
31+
3032
use tempfile::mkdtemp;
3133
use tempfile;
3234
use core::os;

branches/auto/src/libextra/timer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ extern fn delayed_send_close_cb(handle: *uv::ll::uv_timer_t) {
175175

176176
#[cfg(test)]
177177
mod test {
178+
use core::prelude::*;
179+
178180
use timer::*;
179181
use uv;
180182
use core::cell::Cell;

branches/auto/src/libextra/treemap.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,8 @@ fn remove<K: TotalOrd, V>(node: &mut Option<~TreeNode<K, V>>,
699699

700700
#[cfg(test)]
701701
mod test_treemap {
702+
use core::prelude::*;
703+
702704
use core::iterator::*;
703705
use super::*;
704706
use core::rand::RngUtil;
@@ -1017,6 +1019,7 @@ mod test_treemap {
10171019

10181020
#[cfg(test)]
10191021
mod test_set {
1022+
use core::prelude::*;
10201023
use core::iterator::*;
10211024
use super::*;
10221025

branches/auto/src/libextra/uv_ll.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,7 @@ pub unsafe fn addrinfo_as_sockaddr_in6(input: *addrinfo) -> *sockaddr_in6 {
12241224

12251225
#[cfg(test)]
12261226
mod test {
1227+
use core::prelude::*;
12271228
use core::comm::{SharedChan, stream, GenericChan, GenericPort};
12281229
use super::*;
12291230

branches/auto/src/test/auxiliary/extern-crosscrate-source.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515

1616
pub mod rustrt {
1717
pub extern {
18-
pub fn rust_dbg_call(cb: extern "C" fn(data: libc::uintptr_t)
19-
-> libc::uintptr_t,
20-
data: libc::uintptr_t)
18+
pub fn rust_dbg_call(cb: *u8, data: libc::uintptr_t)
2119
-> libc::uintptr_t;
2220
}
2321
}

branches/auto/src/test/run-pass/const-cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
extern fn foo() {}
1212

13-
static x: extern "C" fn() = foo;
13+
static x: *u8 = foo;
1414
static y: *libc::c_void = x as *libc::c_void;
1515
static a: &'static int = &10;
1616
static b: *int = a as *int;

branches/auto/src/test/run-pass/const-cross-crate-extern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
extern mod cci_const;
1515
use cci_const::bar;
16-
static foo: extern "C" fn() = bar;
16+
static foo: *u8 = bar;
1717

1818
pub fn main() {
1919
assert_eq!(foo, cci_const::bar);

branches/auto/src/test/run-pass/const-extern-function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
extern fn foopy() {}
1212

13-
static f: extern "C" fn() = foopy;
13+
static f: *u8 = foopy;
1414
static s: S = S { f: foopy };
1515

1616
struct S {

branches/auto/src/test/run-pass/extern-call-deep.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
mod rustrt {
1212
pub extern {
13-
pub fn rust_dbg_call(cb: extern "C" fn(data: libc::uintptr_t)
14-
-> libc::uintptr_t,
15-
data: libc::uintptr_t)
13+
pub fn rust_dbg_call(cb: *u8, data: libc::uintptr_t)
1614
-> libc::uintptr_t;
1715
}
1816
}

branches/auto/src/test/run-pass/extern-call-deep2.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
mod rustrt {
1212
pub extern {
13-
pub fn rust_dbg_call(cb: extern "C" fn(data: libc::uintptr_t)
14-
-> libc::uintptr_t,
15-
data: libc::uintptr_t)
13+
pub fn rust_dbg_call(cb: *u8, data: libc::uintptr_t)
1614
-> libc::uintptr_t;
1715
}
1816
}

branches/auto/src/test/run-pass/extern-call-scrub.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515
mod rustrt {
1616
pub extern {
17-
pub fn rust_dbg_call(cb: extern "C" fn(data: libc::uintptr_t)
18-
-> libc::uintptr_t,
19-
data: libc::uintptr_t)
17+
pub fn rust_dbg_call(cb: *u8, data: libc::uintptr_t)
2018
-> libc::uintptr_t;
2119
}
2220
}

branches/auto/src/test/run-pass/extern-call.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
mod rustrt {
1212
pub extern {
13-
pub fn rust_dbg_call(cb: extern "C" fn(data: libc::uintptr_t)
14-
-> libc::uintptr_t,
15-
data: libc::uintptr_t)
13+
pub fn rust_dbg_call(cb: *u8, data: libc::uintptr_t)
1614
-> libc::uintptr_t;
1715
}
1816
}

branches/auto/src/test/run-pass/extern-stress.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
mod rustrt {
1515
pub extern {
16-
pub fn rust_dbg_call(cb: extern "C" fn(data: libc::uintptr_t)
17-
-> libc::uintptr_t,
18-
data: libc::uintptr_t)
16+
pub fn rust_dbg_call(cb: *u8, data: libc::uintptr_t)
1917
-> libc::uintptr_t;
2018
}
2119
}

0 commit comments

Comments
 (0)