Skip to content

Commit 634e837

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 28395 b: refs/heads/try c: 2f32c0d h: refs/heads/master i: 28393: 4c8fe67 28391: 5c60f70 v: v3
1 parent e3a7ee9 commit 634e837

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
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: d41af3e00229c2c32890360eb760219eeb14e724
5+
refs/heads/try: 2f32c0d5c34d0bd5c94b7905ebb2916ec94761e4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/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)