diff options
| author | Brian Anderson <andersrb@gmail.com> | 2012-08-25 18:56:07 -0700 |
|---|---|---|
| committer | Brian Anderson <andersrb@gmail.com> | 2012-08-25 18:56:07 -0700 |
| commit | 0de379fdf01a9ea42815a9949ec4f9522def3d88 (patch) | |
| tree | a17305d0af7b03faacd4b0354b9e5b5f376c7c48 /src/libstd/timer.rs | |
| parent | ed1ab9a598fa2644d6a61ff35d04b680cd21cd67 (diff) | |
| parent | 4f326dd6504b6848e7b9cc831940d5452d873f56 (diff) | |
Merge pull request #3282 from killerswan/modes5
Removing more deprecated modes
Diffstat (limited to 'src/libstd/timer.rs')
| -rw-r--r-- | src/libstd/timer.rs | 5 |
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); |
