]> git.lizzy.rs Git - rust.git/commit
Revert "PR #30130 Implement `Clone` for more arrays"
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Sun, 6 Dec 2015 23:29:21 +0000 (00:29 +0100)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Sun, 6 Dec 2015 23:29:21 +0000 (00:29 +0100)
commit0a9c46319589a229da899fb550ee741d7ae3e5e7
treee17c066cbcec2fd208cdf1e3d8b91999ba712e17
parent64c21f9ee2c6a7e6a530d4bb889676c296e1fe68
Revert "PR #30130 Implement `Clone` for more arrays"

This reverts commit e22a64e8d8d4da46c74f878ce1c23ad1c88982e8.

This caused a regression such that types like `[[u8; 256]; 4]`
no longer implemented Clone. This previously worked due to Clone
for `[T; N]` (N in 0 to 32) being implemented for T: Copy.

Due to fixed size arrays not implementing Clone for sizes above 32,
the new implementation requiring T: Clone would not allow
`[[u8; 256]; 4]` to be Clone.
src/libcore/array.rs