Skip to content

Commit 1caaafd

Browse files
committed
Implement Copy for std::alloc::Layout
Fixes #48458
1 parent 1a44439 commit 1caaafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/alloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn size_align<T>() -> (usize, usize) {
6363
/// requests have positive size. A caller to the `Alloc::alloc`
6464
/// method must either ensure that conditions like this are met, or
6565
/// use specific allocators with looser requirements.)
66-
#[derive(Clone, Debug, PartialEq, Eq)]
66+
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
6767
pub struct Layout {
6868
// size of the requested block of memory, measured in bytes.
6969
size: usize,

0 commit comments

Comments
 (0)