File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
- refs/heads/try: 9ee7b31414fce48403daa19904a7097b9a77baea
5
+ refs/heads/try: 6bdda1e0de6097c1647ac49da8b24e86dd5299b8
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
Original file line number Diff line number Diff line change @@ -1557,7 +1557,7 @@ unsafe fn local_set<T: Owned>(
1557
1557
}
1558
1558
None => {
1559
1559
// 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 ( ) ) {
1561
1561
Some ( empty_index) => ( * map) . set_elt( empty_index, new_entry) ,
1562
1562
None => ( * map) . push( new_entry)
1563
1563
}
@@ -2280,7 +2280,7 @@ fn test_tls_multitask() unsafe {
2280
2280
fn my_key(+_x: @~str) { }
2281
2281
local_data_set(my_key, @~" parent data") ;
2282
2282
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.
2284
2284
local_data_set( my_key, @~"child data") ;
2285
2285
assert * ( local_data_get( my_key) . get( ) ) == ~"child data";
2286
2286
// should be cleaned up for us
@@ -2305,7 +2305,7 @@ fn test_tls_pop() unsafe {
2305
2305
local_data_set( my_key, @~"weasel") ;
2306
2306
assert * ( local_data_pop( my_key) . get( ) ) == ~"weasel";
2307
2307
// 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 ( ) ;
2309
2309
}
2310
2310
2311
2311
#[ test]
You can’t perform that action at this time.
0 commit comments