File tree Expand file tree Collapse file tree 7 files changed +23
-4
lines changed Expand file tree Collapse file tree 7 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 4377802202d59eb5aeb36bb6b656d376bbdf67dc
2
+ refs/heads/master: 958df4b0031654c6e9b03997e956a21ede289660
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change
1
+ // NB: transitionary, de-mode-ing.
2
+ #[ forbid( deprecated_mode) ] ;
3
+ #[ forbid( deprecated_pattern) ] ;
1
4
/*!
2
5
* Communication between tasks
3
6
*
@@ -162,7 +165,7 @@ fn chan<T: send>(p: port<T>) -> chan<T> {
162
165
* Sends data over a channel. The sent data is moved into the channel,
163
166
* whereupon the caller loses access to it.
164
167
*/
165
- fn send < T : send > ( ch : chan < T > , - data : T ) {
168
+ fn send < T : send > ( ch : chan < T > , + data : T ) {
166
169
let chan_t( p) = ch;
167
170
let data_ptr = ptr:: addr_of ( data) as * ( ) ;
168
171
let res = rustrt:: rust_port_id_send ( p, data_ptr) ;
Original file line number Diff line number Diff line change
1
+ // NB: transitionary, de-mode-ing.
2
+ #[ forbid( deprecated_mode) ] ;
3
+ #[ forbid( deprecated_pattern) ] ;
1
4
/*!
2
5
* Bindings for libc.
3
6
*
Original file line number Diff line number Diff line change
1
+ // NB: transitionary, de-mode-ing.
2
+ #[ forbid( deprecated_mode) ] ;
3
+ #[ forbid( deprecated_pattern) ] ;
4
+
1
5
#[ doc( hidden) ] ;
2
6
3
7
export chan_from_global_ptr, weaken_task;
Original file line number Diff line number Diff line change
1
+ // NB: transitionary, de-mode-ing.
2
+ #[ forbid( deprecated_mode) ] ;
3
+ #[ forbid( deprecated_pattern) ] ;
1
4
//! Runtime calls emitted by the compiler.
2
5
3
6
import libc:: c_char;
Original file line number Diff line number Diff line change
1
+ // NB: transitionary, de-mode-ing.
2
+ #[ forbid( deprecated_mode) ] ;
3
+ #[ forbid( deprecated_pattern) ] ;
1
4
/**
2
5
* Concurrency-enabled mechanisms for sharing mutable and/or immutable state
3
6
* between tasks.
Original file line number Diff line number Diff line change
1
+ // NB: transitionary, de-mode-ing.
2
+ #[ forbid( deprecated_mode) ] ;
3
+ #[ forbid( deprecated_pattern) ] ;
1
4
/**
2
5
* The concurrency primitives you know and love.
3
6
*
@@ -836,7 +839,7 @@ mod tests {
836
839
}
837
840
}
838
841
#[ cfg( test) ]
839
- fn test_rwlock_exclusion( x: ~rwlock, mode1: rwlock_mode,
842
+ fn test_rwlock_exclusion( + x: ~rwlock, mode1: rwlock_mode,
840
843
mode2: rwlock_mode) {
841
844
// Test mutual exclusion between readers and writers. Just like the
842
845
// mutex mutual exclusion test, a ways above.
@@ -881,7 +884,7 @@ mod tests {
881
884
test_rwlock_exclusion( ~rwlock( ) , downgrade, downgrade) ;
882
885
}
883
886
#[ cfg( test) ]
884
- fn test_rwlock_handshake( x: ~rwlock, mode1: rwlock_mode,
887
+ fn test_rwlock_handshake( + x: ~rwlock, mode1: rwlock_mode,
885
888
mode2: rwlock_mode, make_mode2_go_first: bool ) {
886
889
// Much like sem_multi_resource.
887
890
let x2 = ~x. clone( ) ;
You can’t perform that action at this time.
0 commit comments