File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ pub unsafe trait Allocator {
173
173
/// * `old_layout` must [*fit*] that block of memory (The `new_layout` argument need not fit it.).
174
174
/// * `new_layout.size()` must be greater than or equal to `old_layout.size()`.
175
175
///
176
+ /// Note that `new_layout.align()` need not be the same as `old_layout.align()`.
177
+ ///
176
178
/// [*currently allocated*]: #currently-allocated-memory
177
179
/// [*fit*]: #memory-fitting
178
180
///
@@ -234,6 +236,8 @@ pub unsafe trait Allocator {
234
236
/// * `old_layout` must [*fit*] that block of memory (The `new_layout` argument need not fit it.).
235
237
/// * `new_layout.size()` must be greater than or equal to `old_layout.size()`.
236
238
///
239
+ /// Note that `new_layout.align()` need not be the same as `old_layout.align()`.
240
+ ///
237
241
/// [*currently allocated*]: #currently-allocated-memory
238
242
/// [*fit*]: #memory-fitting
239
243
///
@@ -296,6 +300,8 @@ pub unsafe trait Allocator {
296
300
/// * `old_layout` must [*fit*] that block of memory (The `new_layout` argument need not fit it.).
297
301
/// * `new_layout.size()` must be smaller than or equal to `old_layout.size()`.
298
302
///
303
+ /// Note that `new_layout.align()` need not be the same as `old_layout.align()`.
304
+ ///
299
305
/// [*currently allocated*]: #currently-allocated-memory
300
306
/// [*fit*]: #memory-fitting
301
307
///
You can’t perform that action at this time.
0 commit comments