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 1
1
---
2
- refs/heads/master: ebd3203eaf12551ad7ab936db1615d59a4fedaae
2
+ refs/heads/master: 9173508aa461cf7789d3620947ff0ecd3a174a11
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
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