File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-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: ebd3203eaf12551ad7ab936db1615d59a4fedaae
5
+ refs/heads/try: 9173508aa461cf7789d3620947ff0ecd3a174a11
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 22
22
// overhead when initializing plain-old-data and means we don't need
23
23
// to waste time running the destructors of POD.
24
24
25
+ #[ forbid( deprecated_mode) ] ;
26
+ #[ forbid( deprecated_pattern) ] ;
27
+
25
28
export Arena , arena_with_size;
26
29
27
30
use list:: { List , Cons , Nil } ;
@@ -56,9 +59,9 @@ struct Arena {
56
59
priv mut chunks : @List < Chunk > ,
57
60
drop {
58
61
unsafe {
59
- destroy_chunk( self . head) ;
62
+ destroy_chunk( & self . head) ;
60
63
for list : : each ( self . chunks ) |chunk| {
61
- if !chunk. is_pod { destroy_chunk ( chunk) ; }
64
+ if !chunk. is_pod { destroy_chunk ( & chunk) ; }
62
65
}
63
66
}
64
67
}
@@ -87,7 +90,7 @@ fn round_up_to(base: uint, align: uint) -> uint {
87
90
88
91
// Walk down a chunk, running the destructors for any objects stored
89
92
// in it.
90
- unsafe fn destroy_chunk ( chunk : Chunk ) {
93
+ unsafe fn destroy_chunk ( chunk : & Chunk ) {
91
94
let mut idx = 0 ;
92
95
let buf = vec:: raw:: to_ptr ( chunk. data ) ;
93
96
let fill = chunk. fill ;
You can’t perform that action at this time.
0 commit comments