Skip to content

Commit dd04ee5

Browse files
committed
---
yaml --- r: 115690 b: refs/heads/try c: f3de28a h: refs/heads/master v: v3
1 parent dd3f6d3 commit dd04ee5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
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: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5-
refs/heads/try: 034f2180616c301934c3971cac6832aa607a4f08
5+
refs/heads/try: f3de28a920b9a9f2b9418b305dfeb30995d2c6d4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,26 +179,26 @@ unsafe fn closure_exchange_malloc(drop_glue: fn(*mut u8), size: uint, align: uin
179179
#[doc(hidden)]
180180
#[deprecated]
181181
#[cfg(stage0, not(test))]
182-
pub extern "C" fn rust_malloc(size: uint) -> *mut u8 {
183-
unsafe { exchange_malloc(size) }
182+
pub unsafe extern "C" fn rust_malloc(size: uint) -> *mut u8 {
183+
exchange_malloc(size)
184184
}
185185

186186
// hack for libcore
187187
#[no_mangle]
188188
#[doc(hidden)]
189189
#[deprecated]
190190
#[cfg(not(stage0), not(test))]
191-
pub extern "C" fn rust_malloc(size: uint, align: uint) -> *mut u8 {
192-
unsafe { exchange_malloc(size, align) }
191+
pub unsafe extern "C" fn rust_malloc(size: uint, align: uint) -> *mut u8 {
192+
exchange_malloc(size, align)
193193
}
194194

195195
// hack for libcore
196196
#[no_mangle]
197197
#[doc(hidden)]
198198
#[deprecated]
199199
#[cfg(not(test))]
200-
pub extern "C" fn rust_free(ptr: *mut u8, size: uint, align: uint) {
201-
unsafe { exchange_free(ptr, size, align) }
200+
pub unsafe extern "C" fn rust_free(ptr: *mut u8, size: uint, align: uint) {
201+
exchange_free(ptr, size, align)
202202
}
203203

204204
#[cfg(test)]

0 commit comments

Comments
 (0)