Skip to content

Commit c8248b1

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 28397 b: refs/heads/try c: 6bdda1e h: refs/heads/master i: 28395: 634e837 v: v3
1 parent 2fe45ac commit c8248b1

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
@@ -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: 9ee7b31414fce48403daa19904a7097b9a77baea
5+
refs/heads/try: 6bdda1e0de6097c1647ac49da8b24e86dd5299b8
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: 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)