Skip to content

Commit 28ebe33

Browse files
committed
---
yaml --- r: 119197 b: refs/heads/dist-snap c: 487fa95 h: refs/heads/master i: 119195: d0a5459 v: v3
1 parent 71b3185 commit 28ebe33

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
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 57e0908af395af1c10e28600b785b5366a43660c
9+
refs/heads/dist-snap: 487fa9568b69753fecb74a8460109239f4bf3631
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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/dist-snap/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/dist-snap/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)