File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ native "rust" mod rustrt {
32
32
33
33
type rust_task = {
34
34
mutable notify_enabled : u8 ,
35
- mutable notify_chan : _chan[ task_notification ]
35
+ mutable notify_chan : _chan < task_notification >
36
36
} ;
37
37
38
38
type task = int ;
@@ -83,13 +83,13 @@ fn spawn(thunk : fn() -> ()) -> task {
83
83
spawn_inner ( thunk, none)
84
84
}
85
85
86
- fn spawn_notify ( thunk : fn ( ) -> ( ) , notify : _chan[ task_notification ] )
86
+ fn spawn_notify ( thunk : fn ( ) -> ( ) , notify : _chan < task_notification > )
87
87
-> task {
88
88
spawn_inner ( thunk, some ( notify) )
89
89
}
90
90
91
91
// FIXME: make this a fn~ once those are supported.
92
- fn spawn_inner ( thunk : fn ( ) -> ( ) , notify : option[ _chan[ task_notification ] ] )
92
+ fn spawn_inner ( thunk : fn ( ) -> ( ) , notify : option < _chan < task_notification > > )
93
93
-> task_id {
94
94
let id = rustrt:: new_task ( ) ;
95
95
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ fn test_lib_spawn2() {
43
43
fn test_join_chan ( ) {
44
44
fn winner ( ) { }
45
45
46
- let p = comm:: mk_port[ task:: task_notification] ( ) ;
46
+ let p = comm:: mk_port :: < task:: task_notification > ( ) ;
47
47
task:: spawn_notify ( bind winner ( ) , p. mk_chan ( ) ) ;
48
48
let s = p. recv ( ) ;
49
49
log_err "received task status message" ;
@@ -58,7 +58,7 @@ fn test_join_chan() {
58
58
fn test_join_chan_fail ( ) {
59
59
fn failer ( ) { task:: unsupervise ( ) ; fail }
60
60
61
- let p = comm:: mk_port[ task:: task_notification] ( ) ;
61
+ let p = comm:: mk_port :: < task:: task_notification > ( ) ;
62
62
task:: spawn_notify ( bind failer ( ) , p. mk_chan ( ) ) ;
63
63
let s = p. recv ( ) ;
64
64
log_err "received task status message" ;
You can’t perform that action at this time.
0 commit comments