docs(allocator): improve doc comments for Arena methods (#24922)

Docs-only change. Add links in doc comments.
This commit is contained in:
overlookmotel committed 2026-08-07 21:25:01 +00:00
1 parent b82a29542a
commit fe111eb112
1 file changed
+4 -2
+4 -2
View File
@@ -309,7 +309,8 @@ impl<const MIN_ALIGN: usize> Arena<MIN_ALIGN> {
Some(new_ptr)
}
/// Slow path for `alloc_layout`.
/// Slow path for [`Arena::alloc_layout`].
///
/// Called when there isn't enough room in our current chunk, so need to allocate a new chunk.
#[inline(never)]
#[cold]
@@ -317,7 +318,8 @@ impl<const MIN_ALIGN: usize> Arena<MIN_ALIGN> {
self.try_alloc_layout_slow_impl(layout).unwrap_or_else(|| oom())
}
/// Slow path for `try_alloc_layout`.
/// Slow path for [`Arena::try_alloc_layout`].
///
/// Called when there isn't enough room in our current chunk, so need to allocate a new chunk.
#[inline(never)]
#[cold]