Skip to content

Commit 7c0eb6b

Browse files
committed
---
yaml --- r: 114014 b: refs/heads/master c: f3de28a h: refs/heads/master v: v3
1 parent d1eab06 commit 7c0eb6b

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 034f2180616c301934c3971cac6832aa607a4f08
2+
refs/heads/master: f3de28a920b9a9f2b9418b305dfeb30995d2c6d4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/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)