We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CacheAligned
Sharded
Clone
1 parent 0ccb600 commit 44bfb65Copy full SHA for 44bfb65
compiler/rustc_data_structures/src/sharded.rs
@@ -5,7 +5,7 @@ use std::collections::hash_map::RawEntryMut;
5
use std::hash::{Hash, Hasher};
6
use std::mem;
7
8
-#[derive(Clone, Default)]
+#[derive(Default)]
9
#[cfg_attr(parallel_compiler, repr(align(64)))]
10
struct CacheAligned<T>(T);
11
@@ -21,7 +21,6 @@ const SHARD_BITS: usize = 0;
21
pub const SHARDS: usize = 1 << SHARD_BITS;
22
23
/// An array of cache-line aligned inner locked structures with convenience methods.
24
-#[derive(Clone)]
25
pub struct Sharded<T> {
26
shards: [CacheAligned<Lock<T>>; SHARDS],
27
}
0 commit comments