Skip to content

Commit 0468114

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 21711 b: refs/heads/snap-stage3 c: 6bdda1e h: refs/heads/master i: 21709: 0b9b363 21707: 726bb26 21703: 3fc5eba 21695: 005b482 v: v3
1 parent b9706b8 commit 0468114

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9ee7b31414fce48403daa19904a7097b9a77baea
4+
refs/heads/snap-stage3: 6bdda1e0de6097c1647ac49da8b24e86dd5299b8
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ unsafe fn local_set<T: Owned>(
15571557
}
15581558
None => {
15591559
// Find an empty slot. If not, grow the vector.
1560-
match (*map).position(|x| x.is_None()) {
1560+
match (*map).position(|x| x.is_none()) {
15611561
Some(empty_index) => (*map).set_elt(empty_index, new_entry),
15621562
None => (*map).push(new_entry)
15631563
}
@@ -2280,7 +2280,7 @@ fn test_tls_multitask() unsafe {
22802280
fn my_key(+_x: @~str) { }
22812281
local_data_set(my_key, @~"parent data");
22822282
do task::spawn unsafe {
2283-
assert local_data_get(my_key).is_None(); // TLS shouldn't carry over.
2283+
assert local_data_get(my_key).is_none(); // TLS shouldn't carry over.
22842284
local_data_set(my_key, @~"child data");
22852285
assert *(local_data_get(my_key).get()) == ~"child data";
22862286
// should be cleaned up for us
@@ -2305,7 +2305,7 @@ fn test_tls_pop() unsafe {
23052305
local_data_set(my_key, @~"weasel");
23062306
assert *(local_data_pop(my_key).get()) == ~"weasel";
23072307
// Pop must remove the data from the map.
2308-
assert local_data_pop(my_key).is_None();
2308+
assert local_data_pop(my_key).is_none();
23092309
}
23102310

23112311
#[test]

0 commit comments

Comments
 (0)