Skip to content

Commit 6812ee8

Browse files
authored
Remove misleading doc-comment (#1836)
No such guarantee exists for conversion between `Box<T>` and `Arc<T>` and the current [^1] implementation *always* creates a new allocation. I'm not aware of other container types for which the comment is correct. [^1]: https://doc.rust-lang.org/1.81.0/src/alloc/sync.rs.html#1950-1970
1 parent 1271aa0 commit 6812ee8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,9 +2947,6 @@ pub unsafe trait FromZeros: TryFromBytes {
29472947
/// pre-zeroed memory, using `new_box_zeroed` (or related functions) may
29482948
/// have performance benefits.
29492949
///
2950-
/// Note that `Box<Self>` can be converted to `Arc<Self>` and other
2951-
/// container types without reallocation.
2952-
///
29532950
/// # Errors
29542951
///
29552952
/// Returns an error on allocation failure. Allocation failure is guaranteed

0 commit comments

Comments
 (0)