We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a44439 commit 1caaafdCopy full SHA for 1caaafd
src/libcore/alloc.rs
@@ -63,7 +63,7 @@ fn size_align<T>() -> (usize, usize) {
63
/// requests have positive size. A caller to the `Alloc::alloc`
64
/// method must either ensure that conditions like this are met, or
65
/// use specific allocators with looser requirements.)
66
-#[derive(Clone, Debug, PartialEq, Eq)]
+#[derive(Copy, Clone, Debug, PartialEq, Eq)]
67
pub struct Layout {
68
// size of the requested block of memory, measured in bytes.
69
size: usize,
0 commit comments