about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorKevin Cantu <me@kevincantu.org>2012-08-25 14:45:30 -0700
committerKevin Cantu <me@kevincantu.org>2012-08-25 15:28:57 -0700
commitb26084475c488af920da14052db6461512bbfe2b (patch)
tree15c7f3043109a7284d662e128c22bbd119c73b46 /src/libstd
parent8ef455190494d2fd9a6bb013efd2e59622af2bc4 (diff)
downloadrust-b26084475c488af920da14052db6461512bbfe2b.tar.gz
rust-b26084475c488af920da14052db6461512bbfe2b.zip
Remove deprecated modes from libstd/timer.rs
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/timer.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs
index d84d6632dbd..85547925c54 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<T: copy send>(iotask: iotask,
-                              msecs: uint, ch: comm::Chan<T>, val: T) {
+                              msecs: uint, ch: comm::Chan<T>, +val: T) {
         unsafe {
             let timer_done_po = core::comm::port::<()>();
             let timer_done_ch = core::comm::chan(timer_done_po);