Skip to content

Commit b2b8915

Browse files
committed
---
yaml --- r: 23226 b: refs/heads/master c: 958df4b h: refs/heads/master v: v3
1 parent ab17c03 commit b2b8915

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 4377802202d59eb5aeb36bb6b656d376bbdf67dc
2+
refs/heads/master: 958df4b0031654c6e9b03997e956a21ede289660
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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);

trunk/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
*

trunk/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;

trunk/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;

trunk/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.

trunk/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)