Skip to content

Commit 834ad49

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 30419 b: refs/heads/incoming c: 6bdda1e h: refs/heads/master i: 30417: 1464e6f 30415: 222258d v: v3
1 parent c03044c commit 834ad49

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