From 7e5995197fa41002fd0ea78bf08208247e20ad51 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 11 Mar 2013 15:42:00 -0700 Subject: [PATCH] core: Convert obsolete fn syntax --- src/libcore/ptr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index e622b0c4ca32..ace70d7f061d 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -190,7 +190,7 @@ pub pure fn ref_eq(thing: &a/T, other: &b/T) -> bool { SAFETY NOTE: Pointer-arithmetic. Dragons be here. */ -pub unsafe fn array_each_with_len(arr: **T, len: uint, cb: fn(*T)) { +pub unsafe fn array_each_with_len(arr: **T, len: uint, cb: &fn(*T)) { log(debug, "array_each_with_len: before iterate"); if (arr as uint == 0) { fail!(~"ptr::array_each_with_len failure: arr input is null pointer"); @@ -213,7 +213,7 @@ pub unsafe fn array_each_with_len(arr: **T, len: uint, cb: fn(*T)) { pointer array. Barely less-dodgey Pointer Arithmetic. Dragons be here. */ -pub unsafe fn array_each(arr: **T, cb: fn(*T)) { +pub unsafe fn array_each(arr: **T, cb: &fn(*T)) { if (arr as uint == 0) { fail!(~"ptr::array_each_with_len failure: arr input is null pointer"); }