Skip to content

Commit cffae0d

Browse files
committed
---
yaml --- r: 29826 b: refs/heads/incoming c: 958df4b h: refs/heads/master v: v3
1 parent dddc2db commit cffae0d

File tree

7 files changed

+23
-4
lines changed

7 files changed

+23
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 4377802202d59eb5aeb36bb6b656d376bbdf67dc
9+
refs/heads/incoming: 958df4b0031654c6e9b03997e956a21ede289660
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libcore/comm.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// NB: transitionary, de-mode-ing.
2+
#[forbid(deprecated_mode)];
3+
#[forbid(deprecated_pattern)];
14
/*!
25
* Communication between tasks
36
*
@@ -162,7 +165,7 @@ fn chan<T: send>(p: port<T>) -> chan<T> {
162165
* Sends data over a channel. The sent data is moved into the channel,
163166
* whereupon the caller loses access to it.
164167
*/
165-
fn send<T: send>(ch: chan<T>, -data: T) {
168+
fn send<T: send>(ch: chan<T>, +data: T) {
166169
let chan_t(p) = ch;
167170
let data_ptr = ptr::addr_of(data) as *();
168171
let res = rustrt::rust_port_id_send(p, data_ptr);

branches/incoming/src/libcore/libc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// NB: transitionary, de-mode-ing.
2+
#[forbid(deprecated_mode)];
3+
#[forbid(deprecated_pattern)];
14
/*!
25
* Bindings for libc.
36
*

branches/incoming/src/libcore/priv.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// NB: transitionary, de-mode-ing.
2+
#[forbid(deprecated_mode)];
3+
#[forbid(deprecated_pattern)];
4+
15
#[doc(hidden)];
26

37
export chan_from_global_ptr, weaken_task;

branches/incoming/src/libcore/rt.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// NB: transitionary, de-mode-ing.
2+
#[forbid(deprecated_mode)];
3+
#[forbid(deprecated_pattern)];
14
//! Runtime calls emitted by the compiler.
25
36
import libc::c_char;

branches/incoming/src/libstd/arc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// NB: transitionary, de-mode-ing.
2+
#[forbid(deprecated_mode)];
3+
#[forbid(deprecated_pattern)];
14
/**
25
* Concurrency-enabled mechanisms for sharing mutable and/or immutable state
36
* between tasks.

branches/incoming/src/libstd/sync.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// NB: transitionary, de-mode-ing.
2+
#[forbid(deprecated_mode)];
3+
#[forbid(deprecated_pattern)];
14
/**
25
* The concurrency primitives you know and love.
36
*
@@ -836,7 +839,7 @@ mod tests {
836839
}
837840
}
838841
#[cfg(test)]
839-
fn test_rwlock_exclusion(x: ~rwlock, mode1: rwlock_mode,
842+
fn test_rwlock_exclusion(+x: ~rwlock, mode1: rwlock_mode,
840843
mode2: rwlock_mode) {
841844
// Test mutual exclusion between readers and writers. Just like the
842845
// mutex mutual exclusion test, a ways above.
@@ -881,7 +884,7 @@ mod tests {
881884
test_rwlock_exclusion(~rwlock(), downgrade, downgrade);
882885
}
883886
#[cfg(test)]
884-
fn test_rwlock_handshake(x: ~rwlock, mode1: rwlock_mode,
887+
fn test_rwlock_handshake(+x: ~rwlock, mode1: rwlock_mode,
885888
mode2: rwlock_mode, make_mode2_go_first: bool) {
886889
// Much like sem_multi_resource.
887890
let x2 = ~x.clone();

0 commit comments

Comments
 (0)