We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6620882 commit 5843858Copy full SHA for 5843858
compiler/rustc_data_structures/src/sharded.rs
@@ -46,7 +46,7 @@ impl<T> Sharded<T> {
46
fn mask(&self) -> usize {
47
#[cfg(parallel_compiler)]
48
{
49
- self.mask
+ if SHARDS == 1 { 0 } else { self.mask }
50
}
51
#[cfg(not(parallel_compiler))]
52
0 commit comments