Skip to content

Commit 8648064

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 30422 b: refs/heads/incoming c: 2ed00ff h: refs/heads/master v: v3
1 parent 2391af3 commit 8648064

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
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: 02ddbadc10d19a5cfa2dd6f8de89068bf4dfb852
9+
refs/heads/incoming: 2ed00ff9286a26119168e08f25cb33f25d39ef33
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libcore/task.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,13 @@ fn task() -> TaskBuilder {
246246
mut consumed: false,
247247
})
248248
}
249-
250249
priv impl TaskBuilder {
251250
fn consume() -> TaskBuilder {
252251
if self.consumed {
253252
fail ~"Cannot copy a task_builder"; // Fake move mode on self
254253
}
255254
self.consumed = true;
256-
let notify_chan = if self.opts.notify_chan == None {
255+
let notify_chan = if self.opts.notify_chan.is_none() {
257256
None
258257
} else {
259258
Some(option::swap_unwrap(&mut self.opts.notify_chan))
@@ -278,7 +277,7 @@ impl TaskBuilder {
278277
* the other will not be killed.
279278
*/
280279
fn unlinked() -> TaskBuilder {
281-
let notify_chan = if self.opts.notify_chan == None {
280+
let notify_chan = if self.opts.notify_chan.is_none() {
282281
None
283282
} else {
284283
Some(option::swap_unwrap(&mut self.opts.notify_chan))
@@ -300,7 +299,7 @@ impl TaskBuilder {
300299
* the child.
301300
*/
302301
fn supervised() -> TaskBuilder {
303-
let notify_chan = if self.opts.notify_chan == None {
302+
let notify_chan = if self.opts.notify_chan.is_none() {
304303
None
305304
} else {
306305
Some(option::swap_unwrap(&mut self.opts.notify_chan))
@@ -321,7 +320,7 @@ impl TaskBuilder {
321320
* other will be killed.
322321
*/
323322
fn linked() -> TaskBuilder {
324-
let notify_chan = if self.opts.notify_chan == None {
323+
let notify_chan = if self.opts.notify_chan.is_none() {
325324
None
326325
} else {
327326
Some(option::swap_unwrap(&mut self.opts.notify_chan))
@@ -388,7 +387,7 @@ impl TaskBuilder {
388387
}
389388
/// Configure a custom scheduler mode for the task.
390389
fn sched_mode(mode: SchedMode) -> TaskBuilder {
391-
let notify_chan = if self.opts.notify_chan == None {
390+
let notify_chan = if self.opts.notify_chan.is_none() {
392391
None
393392
} else {
394393
Some(option::swap_unwrap(&mut self.opts.notify_chan))
@@ -419,7 +418,7 @@ impl TaskBuilder {
419418
*/
420419
fn add_wrapper(wrapper: fn@(+fn~()) -> fn~()) -> TaskBuilder {
421420
let prev_gen_body = self.gen_body;
422-
let notify_chan = if self.opts.notify_chan == None {
421+
let notify_chan = if self.opts.notify_chan.is_none() {
423422
None
424423
} else {
425424
Some(option::swap_unwrap(&mut self.opts.notify_chan))
@@ -450,7 +449,7 @@ impl TaskBuilder {
450449
* must be greater than zero.
451450
*/
452451
fn spawn(+f: fn~()) {
453-
let notify_chan = if self.opts.notify_chan == None {
452+
let notify_chan = if self.opts.notify_chan.is_none() {
454453
None
455454
} else {
456455
let swapped_notify_chan =
@@ -1267,7 +1266,7 @@ fn spawn_raw(+opts: TaskOpts, +f: fn~()) {
12671266
};
12681267
assert !new_task.is_null();
12691268
// Getting killed after here would leak the task.
1270-
let mut notify_chan = if opts.notify_chan == None {
1269+
let mut notify_chan = if opts.notify_chan.is_none() {
12711270
None
12721271
} else {
12731272
Some(option::swap_unwrap(&mut opts.notify_chan))

0 commit comments

Comments
 (0)