Skip to content

Commit 2c3ced3

Browse files
committed
---
yaml --- r: 110434 b: refs/heads/try c: 487fa95 h: refs/heads/master v: v3
1 parent 7e280b8 commit 2c3ced3

File tree

4 files changed

+24
-14
lines changed

4 files changed

+24
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: e415c25bcd81dc1f9a5a3d25d9b48ed2d545336b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
5-
refs/heads/try: 57e0908af395af1c10e28600b785b5366a43660c
5+
refs/heads/try: 487fa9568b69753fecb74a8460109239f4bf3631
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libstd/rt/global_heap.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ pub unsafe fn realloc_raw(ptr: *mut u8, size: uint) -> *mut u8 {
6464
}
6565
}
6666

67-
// The compiler never calls `exchange_free` on ~ZeroSizeType, so zero-size
68-
// allocations can point to this `static`. It would be incorrect to use a null
69-
// pointer, due to enums assuming types like unique pointers are never null.
70-
static EMPTY: () = ();
71-
7267
/// The allocator for unique pointers without contained managed pointers.
7368
#[cfg(not(test))]
7469
#[lang="exchange_malloc"]
7570
#[inline]
7671
pub unsafe fn exchange_malloc(size: uint) -> *mut u8 {
72+
// The compiler never calls `exchange_free` on ~ZeroSizeType, so zero-size
73+
// allocations can point to this `static`. It would be incorrect to use a null
74+
// pointer, due to enums assuming types like unique pointers are never null.
75+
static EMPTY: () = ();
76+
7777
if size == 0 {
7878
&EMPTY as *() as *mut u8
7979
} else {

branches/try/src/libsyntax/abi.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ fn indices_are_correct() {
193193

194194
#[test]
195195
fn pick_uniplatform() {
196-
assert_eq!(Stdcall.for_arch(OsLinux, X86), Some(Stdcall));
197-
assert_eq!(Stdcall.for_arch(OsLinux, Arm), None);
198-
assert_eq!(System.for_arch(OsLinux, X86), Some(C));
199-
assert_eq!(System.for_arch(OsWin32, X86), Some(Stdcall));
200-
assert_eq!(System.for_arch(OsWin32, X86_64), Some(C));
201-
assert_eq!(System.for_arch(OsWin32, Arm), Some(C));
202-
assert_eq!(Stdcall.for_arch(OsWin32, X86), Some(Stdcall));
203-
assert_eq!(Stdcall.for_arch(OsWin32, X86_64), Some(Stdcall));
196+
assert_eq!(Stdcall.for_target(OsLinux, X86), Some(Stdcall));
197+
assert_eq!(Stdcall.for_target(OsLinux, Arm), None);
198+
assert_eq!(System.for_target(OsLinux, X86), Some(C));
199+
assert_eq!(System.for_target(OsWin32, X86), Some(Stdcall));
200+
assert_eq!(System.for_target(OsWin32, X86_64), Some(C));
201+
assert_eq!(System.for_target(OsWin32, Arm), Some(C));
202+
assert_eq!(Stdcall.for_target(OsWin32, X86), Some(Stdcall));
203+
assert_eq!(Stdcall.for_target(OsWin32, X86_64), Some(Stdcall));
204204
}

branches/try/src/test/bench/rt-spawn-rate.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![no_start]
12+
13+
extern crate green;
14+
extern crate rustuv;
15+
1116
use std::task::spawn;
1217
use std::os;
1318
use std::uint;
1419

1520
// Very simple spawn rate test. Spawn N tasks that do nothing and
1621
// return.
1722

23+
#[start]
24+
fn start(argc: int, argv: **u8) -> int {
25+
green::start(argc, argv, rustuv::event_loop, main)
26+
}
27+
1828
fn main() {
1929

2030
let args = os::args();

0 commit comments

Comments
 (0)