Skip to content

Commit 96ed2fe

Browse files
committed
---
yaml --- r: 24046 b: refs/heads/master c: 677792c h: refs/heads/master v: v3
1 parent f32547e commit 96ed2fe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
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: c3f15c098294ab7849882fddc8fe066c4536698d
2+
refs/heads/master: 677792c6b1cd0747491e73a497127393c435a118
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libstd/uv_iotask.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* `interact` function you can execute code in a uv callback.
66
*/
77

8+
#[forbid(deprecated_mode)];
9+
#[forbid(deprecated_pattern)];
10+
811
export IoTask;
912
export spawn_iotask;
1013
export interact;
@@ -25,7 +28,7 @@ enum IoTask {
2528
})
2629
}
2730

28-
fn spawn_iotask(-task: task::TaskBuilder) -> IoTask {
31+
fn spawn_iotask(+task: task::TaskBuilder) -> IoTask {
2932

3033
do listen |iotask_ch| {
3134

@@ -63,7 +66,7 @@ fn spawn_iotask(-task: task::TaskBuilder) -> IoTask {
6366
* via ports/chans.
6467
*/
6568
unsafe fn interact(iotask: IoTask,
66-
-cb: fn~(*c_void)) {
69+
+cb: fn~(*c_void)) {
6770
send_msg(iotask, Interaction(move cb));
6871
}
6972

@@ -128,7 +131,7 @@ type IoTaskLoopData = {
128131
};
129132

130133
fn send_msg(iotask: IoTask,
131-
-msg: IoTaskMsg) unsafe {
134+
+msg: IoTaskMsg) unsafe {
132135
iotask.op_chan.send(move msg);
133136
ll::async_send(iotask.async_handle);
134137
}

0 commit comments

Comments
 (0)