Skip to content

Commit 8615bd1

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 32479 b: refs/heads/dist-snap c: 2f32c0d h: refs/heads/master i: 32477: f906928 32475: 5fee78b 32471: 1db2963 32463: 2e74c2a 32447: f456427 v: v3
1 parent aa1c0fa commit 8615bd1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: d41af3e00229c2c32890360eb760219eeb14e724
10+
refs/heads/dist-snap: 2f32c0d5c34d0bd5c94b7905ebb2916ec94761e4
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libcore/task.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ export ThreadPerTask;
7878
export ManualThreads;
7979
export PlatformThread;
8080

81-
macro_rules! move_it {
81+
macro_rules! move_it (
8282
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
83-
}
83+
)
8484

8585
/* Data types */
8686

@@ -209,7 +209,7 @@ type TaskOpts = {
209209
linked: bool,
210210
supervised: bool,
211211
mut notify_chan: Option<Chan<Notification>>,
212-
sched: option<SchedOpts>,
212+
sched: Option<SchedOpts>,
213213
};
214214

215215
/**
@@ -254,7 +254,7 @@ priv impl TaskBuilder {
254254
}
255255
self.consumed = true;
256256
let notify_chan = if self.opts.notify_chan == None {
257-
none
257+
None
258258
} else {
259259
Some(option::swap_unwrap(&mut self.opts.notify_chan))
260260
};
@@ -450,12 +450,12 @@ impl TaskBuilder {
450450
* must be greater than zero.
451451
*/
452452
fn spawn(+f: fn~()) {
453-
let notify_chan = if self.opts.notify_chan == none {
453+
let notify_chan = if self.opts.notify_chan == None {
454454
None
455455
} else {
456456
let swapped_notify_chan =
457457
option::swap_unwrap(&mut self.opts.notify_chan);
458-
some(swapped_notify_chan)
458+
Some(swapped_notify_chan)
459459
};
460460
let x = self.consume();
461461
let opts = {
@@ -1309,7 +1309,7 @@ fn spawn_raw(+opts: TaskOpts, +f: fn~()) {
13091309
//let mut notifier = None;//notify_chan.map(|c| AutoNotify(c));
13101310
let notifier = match notify_chan {
13111311
Some(notify_chan_value) => {
1312-
let moved_ncv = move_it!{notify_chan_value};
1312+
let moved_ncv = move_it!(notify_chan_value);
13131313
Some(AutoNotify(moved_ncv))
13141314
}
13151315
_ => None

0 commit comments

Comments
 (0)