Commit a0843d7
authored
Auto merge of #36657 - nnethercote:rm-TypedArena-with_capacity, r=eddyb
[breaking-change] Remove TypedArena::with_capacity
This is a follow-up to #36592.
The function is unused by rustc. Also, it doesn't really follow the
usual meaning of a `with_capacity` function because the first chunk
allocation is now delayed until the first `alloc` call.
This change reduces the size of `TypedArena` by one `usize`.
@eddyb: we discussed this on IRC. Would you like to review it?1 file changed
+3
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
| |||
122 | 119 | | |
123 | 120 | | |
124 | 121 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 122 | | |
135 | | - | |
136 | 123 | | |
137 | 124 | | |
138 | 125 | | |
| |||
183 | 170 | | |
184 | 171 | | |
185 | 172 | | |
186 | | - | |
| 173 | + | |
| 174 | + | |
187 | 175 | | |
188 | 176 | | |
189 | 177 | | |
190 | 178 | | |
191 | 179 | | |
192 | 180 | | |
193 | 181 | | |
| 182 | + | |
194 | 183 | | |
195 | 184 | | |
196 | 185 | | |
| |||
0 commit comments