From b26084475c488af920da14052db6461512bbfe2b Mon Sep 17 00:00:00 2001 From: Kevin Cantu Date: Sat, 25 Aug 2012 14:45:30 -0700 Subject: [PATCH] Remove deprecated modes from libstd/timer.rs --- src/libstd/timer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs index d84d6632dbdc..85547925c545 100644 --- a/src/libstd/timer.rs +++ b/src/libstd/timer.rs @@ -1,5 +1,8 @@ //! Utilities that leverage libuv's `uv_timer_*` API +#[forbid(deprecated_mode)]; +#[forbid(deprecated_pattern)]; + import uv = uv; import uv::iotask; import iotask::iotask; @@ -24,7 +27,7 @@ export delayed_send, sleep, recv_timeout; * * val - a value of type T to send over the provided `ch` */ fn delayed_send(iotask: iotask, - msecs: uint, ch: comm::Chan, val: T) { + msecs: uint, ch: comm::Chan, +val: T) { unsafe { let timer_done_po = core::comm::port::<()>(); let timer_done_ch = core::comm::chan(timer_done_po);