Skip to content

Commit c86a0ff

Browse files
committed
---
yaml --- r: 152316 b: refs/heads/try2 c: 61d7917 h: refs/heads/master v: v3
1 parent 21e6304 commit c86a0ff

33 files changed

+36
-37
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: f1542a6a7da088f99bfe2963d29e6ea4b451b432
8+
refs/heads/try2: 61d79175c018a193a7676fe804f1b89280e18937
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ DEPS_collections := core alloc
8484
DEPS_fourcc := syntax std
8585
DEPS_hexfloat := syntax std
8686
DEPS_num := std
87-
DEPS_test := std getopts serialize term time regex
87+
DEPS_test := std getopts serialize term time regex native:rust_test_helpers
8888
DEPS_time := std serialize sync
8989
DEPS_rand := core
9090
DEPS_url := std

branches/try2/mk/rt.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
# that's per-target so you're allowed to conditionally add files based on the
3636
# target.
3737
################################################################################
38-
NATIVE_LIBS := rustrt hoedown uv_support morestack miniz context_switch
38+
NATIVE_LIBS := rustrt hoedown uv_support morestack miniz context_switch \
39+
rust_test_helpers
3940

4041
# $(1) is the target triple
4142
define NATIVE_LIBRARIES
@@ -53,9 +54,9 @@ NATIVE_DEPS_uv_support_$(1) := rust_uv.c
5354
NATIVE_DEPS_miniz_$(1) = miniz.c
5455
NATIVE_DEPS_rustrt_$(1) := rust_builtin.c \
5556
rust_android_dummy.c \
56-
rust_test_helpers.c \
5757
rust_try.ll \
5858
arch/$$(HOST_$(1))/record_sp.S
59+
NATIVE_DEPS_rust_test_helpers_$(1) := rust_test_helpers.c
5960
NATIVE_DEPS_morestack_$(1) := arch/$$(HOST_$(1))/morestack.S
6061
NATIVE_DEPS_context_switch_$(1) := \
6162
arch/$$(HOST_$(1))/_context.S

branches/try2/src/libstd/rt/unwind.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,7 @@ fn begin_unwind_inner(msg: Box<Any:Send>,
387387
// just abort. In the future we may consider resuming
388388
// unwinding or otherwise exiting the task cleanly.
389389
if task.unwinder.unwinding {
390-
rterrln!("task failed during unwinding (double-failure - \
391-
total drag!)")
392-
rterrln!("rust must abort now. so sorry.");
390+
rterrln!("task failed during unwinding. aborting.");
393391

394392
// Don't print the backtrace twice (it would have already been
395393
// printed if logging was enabled).

branches/try2/src/test/auxiliary/anon-extern-mod-cross-crate-1.rs

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

1313
extern crate libc;
1414

15-
#[link(name="rustrt")]
15+
#[link(name="rust_test_helpers")]
1616
extern {
1717
pub fn rust_get_test_int() -> libc::intptr_t;
1818
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern crate libc;
1616
pub mod rustrt {
1717
extern crate libc;
1818

19-
#[link(name = "rustrt")]
19+
#[link(name = "rust_test_helpers")]
2020
extern {
2121
pub fn rust_dbg_call(cb: extern "C" fn(libc::uintptr_t) -> libc::uintptr_t,
2222
data: libc::uintptr_t)

branches/try2/src/test/auxiliary/foreign_lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
pub mod rustrt {
1414
extern crate libc;
1515

16-
#[link(name = "rustrt")]
16+
#[link(name = "rust_test_helpers")]
1717
extern {
1818
fn rust_get_test_int() -> libc::intptr_t;
1919
}

branches/try2/src/test/run-pass/anon-extern-mod.rs

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

1111
extern crate libc;
1212

13-
#[link(name = "rustrt")]
13+
#[link(name = "rust_test_helpers")]
1414
extern {
1515
fn rust_get_test_int() -> libc::intptr_t;
1616
}

branches/try2/src/test/run-pass/c-stack-as-value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
mod rustrt {
1212
extern crate libc;
1313

14-
#[link(name = "rustrt")]
14+
#[link(name = "rust_test_helpers")]
1515
extern {
1616
pub fn rust_get_test_int() -> libc::intptr_t;
1717
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern crate libc;
1313
mod rustrt {
1414
extern crate libc;
1515

16-
#[link(name = "rustrt")]
16+
#[link(name = "rust_test_helpers")]
1717
extern {
1818
pub fn rust_dbg_call(cb: extern "C" fn(libc::uintptr_t) -> libc::uintptr_t,
1919
data: libc::uintptr_t)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::task;
1414
mod rustrt {
1515
extern crate libc;
1616

17-
#[link(name = "rustrt")]
17+
#[link(name = "rust_test_helpers")]
1818
extern {
1919
pub fn rust_dbg_call(cb: extern "C" fn(libc::uintptr_t) -> libc::uintptr_t,
2020
data: libc::uintptr_t)

branches/try2/src/test/run-pass/extern-call-indirect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern crate libc;
1313
mod rustrt {
1414
extern crate libc;
1515

16-
#[link(name = "rustrt")]
16+
#[link(name = "rust_test_helpers")]
1717
extern {
1818
pub fn rust_dbg_call(cb: extern "C" fn(libc::uintptr_t) -> libc::uintptr_t,
1919
data: libc::uintptr_t)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::task;
1818
mod rustrt {
1919
extern crate libc;
2020

21-
#[link(name = "rustrt")]
21+
#[link(name = "rust_test_helpers")]
2222
extern {
2323
pub fn rust_dbg_call(cb: extern "C" fn(libc::uintptr_t) -> libc::uintptr_t,
2424
data: libc::uintptr_t)

branches/try2/src/test/run-pass/extern-pass-TwoU16s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct TwoU16s {
1616
one: u16, two: u16
1717
}
1818

19-
#[link(name = "rustrt")]
19+
#[link(name = "rust_test_helpers")]
2020
extern {
2121
pub fn rust_dbg_extern_identity_TwoU16s(v: TwoU16s) -> TwoU16s;
2222
}

branches/try2/src/test/run-pass/extern-pass-TwoU32s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct TwoU32s {
1616
one: u32, two: u32
1717
}
1818

19-
#[link(name = "rustrt")]
19+
#[link(name = "rust_test_helpers")]
2020
extern {
2121
pub fn rust_dbg_extern_identity_TwoU32s(v: TwoU32s) -> TwoU32s;
2222
}

branches/try2/src/test/run-pass/extern-pass-TwoU64s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct TwoU64s {
1616
one: u64, two: u64
1717
}
1818

19-
#[link(name = "rustrt")]
19+
#[link(name = "rust_test_helpers")]
2020
extern {
2121
pub fn rust_dbg_extern_identity_TwoU64s(v: TwoU64s) -> TwoU64s;
2222
}

branches/try2/src/test/run-pass/extern-pass-TwoU8s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct TwoU8s {
1616
one: u8, two: u8
1717
}
1818

19-
#[link(name = "rustrt")]
19+
#[link(name = "rust_test_helpers")]
2020
extern {
2121
pub fn rust_dbg_extern_identity_TwoU8s(v: TwoU8s) -> TwoU8s;
2222
}

branches/try2/src/test/run-pass/extern-pass-char.rs

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

1111
// Test a function that takes/returns a u8.
1212

13-
#[link(name = "rustrt")]
13+
#[link(name = "rust_test_helpers")]
1414
extern {
1515
pub fn rust_dbg_extern_identity_u8(v: u8) -> u8;
1616
}

branches/try2/src/test/run-pass/extern-pass-double.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[link(name = "rustrt")]
11+
#[link(name = "rust_test_helpers")]
1212
extern {
1313
pub fn rust_dbg_extern_identity_double(v: f64) -> f64;
1414
}

branches/try2/src/test/run-pass/extern-pass-empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct ManyInts {
2626

2727
struct Empty;
2828

29-
#[link(name = "rustrt")]
29+
#[link(name = "rust_test_helpers")]
3030
extern {
3131
fn rust_dbg_extern_empty_struct(v1: ManyInts, e: Empty, v2: ManyInts);
3232
}

branches/try2/src/test/run-pass/extern-pass-u32.rs

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

1111
// Test a function that takes/returns a u32.
1212

13-
#[link(name = "rustrt")]
13+
#[link(name = "rust_test_helpers")]
1414
extern {
1515
pub fn rust_dbg_extern_identity_u32(v: u32) -> u32;
1616
}

branches/try2/src/test/run-pass/extern-pass-u64.rs

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

1111
// Test a call to a function that takes/returns a u64.
1212

13-
#[link(name = "rustrt")]
13+
#[link(name = "rust_test_helpers")]
1414
extern {
1515
pub fn rust_dbg_extern_identity_u64(v: u64) -> u64;
1616
}

branches/try2/src/test/run-pass/extern-return-TwoU16s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct TwoU16s {
1212
one: u16, two: u16
1313
}
1414

15-
#[link(name = "rustrt")]
15+
#[link(name = "rust_test_helpers")]
1616
extern {
1717
pub fn rust_dbg_extern_return_TwoU16s() -> TwoU16s;
1818
}

branches/try2/src/test/run-pass/extern-return-TwoU32s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct TwoU32s {
1212
one: u32, two: u32
1313
}
1414

15-
#[link(name = "rustrt")]
15+
#[link(name = "rust_test_helpers")]
1616
extern {
1717
pub fn rust_dbg_extern_return_TwoU32s() -> TwoU32s;
1818
}

branches/try2/src/test/run-pass/extern-return-TwoU64s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct TwoU64s {
1212
one: u64, two: u64
1313
}
1414

15-
#[link(name = "rustrt")]
15+
#[link(name = "rust_test_helpers")]
1616
extern {
1717
pub fn rust_dbg_extern_return_TwoU64s() -> TwoU64s;
1818
}

branches/try2/src/test/run-pass/extern-return-TwoU8s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct TwoU8s {
1212
one: u8, two: u8
1313
}
1414

15-
#[link(name = "rustrt")]
15+
#[link(name = "rust_test_helpers")]
1616
extern {
1717
pub fn rust_dbg_extern_return_TwoU8s() -> TwoU8s;
1818
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::task;
1717
mod rustrt {
1818
extern crate libc;
1919

20-
#[link(name = "rustrt")]
20+
#[link(name = "rust_test_helpers")]
2121
extern {
2222
pub fn rust_dbg_call(cb: extern "C" fn(libc::uintptr_t) -> libc::uintptr_t,
2323
data: libc::uintptr_t)

branches/try2/src/test/run-pass/extern-yield.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::task;
1414
mod rustrt {
1515
extern crate libc;
1616

17-
#[link(name = "rustrt")]
17+
#[link(name = "rust_test_helpers")]
1818
extern {
1919
pub fn rust_dbg_call(cb: extern "C" fn (libc::uintptr_t) -> libc::uintptr_t,
2020
data: libc::uintptr_t)

branches/try2/src/test/run-pass/foreign-call-no-runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern crate libc;
1313
use std::mem;
1414
use std::rt::thread::Thread;
1515

16-
#[link(name = "rustrt")]
16+
#[link(name = "rust_test_helpers")]
1717
extern {
1818
fn rust_dbg_call(cb: extern "C" fn(libc::uintptr_t),
1919
data: libc::uintptr_t) -> libc::uintptr_t;

branches/try2/src/test/run-pass/foreign-dupe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
mod rustrt1 {
1414
extern crate libc;
1515

16-
#[link(name = "rustrt")]
16+
#[link(name = "rust_test_helpers")]
1717
extern {
1818
pub fn rust_get_test_int() -> libc::intptr_t;
1919
}
@@ -22,7 +22,7 @@ mod rustrt1 {
2222
mod rustrt2 {
2323
extern crate libc;
2424

25-
#[link(name = "rustrt")]
25+
#[link(name = "rust_test_helpers")]
2626
extern {
2727
pub fn rust_get_test_int() -> libc::intptr_t;
2828
}

branches/try2/src/test/run-pass/foreign-no-abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
mod rustrt {
1414
extern crate libc;
1515

16-
#[link(name = "rustrt")]
16+
#[link(name = "rust_test_helpers")]
1717
extern {
1818
pub fn rust_get_test_int() -> libc::intptr_t;
1919
}

branches/try2/src/test/run-pass/static-mut-foreign.rs

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

1515
extern crate libc;
1616

17-
#[link(name = "rustrt")]
17+
#[link(name = "rust_test_helpers")]
1818
extern {
1919
static mut rust_dbg_static_mut: libc::c_int;
2020
pub fn rust_dbg_static_mut_check_four();

branches/try2/src/test/run-pass/struct-return.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct Floats { a: f64, b: u8, c: f64 }
1414
mod rustrt {
1515
use super::{Floats, Quad};
1616

17-
#[link(name = "rustrt")]
17+
#[link(name = "rust_test_helpers")]
1818
extern {
1919
pub fn rust_dbg_abi_1(q: Quad) -> Quad;
2020
pub fn rust_dbg_abi_2(f: Floats) -> Floats;

0 commit comments

Comments
 (0)