mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Don't access self.mask with a single shard
This commit is contained in:
parent
6620882089
commit
5843858c01
@ -46,7 +46,7 @@ impl<T> Sharded<T> {
|
||||
fn mask(&self) -> usize {
|
||||
#[cfg(parallel_compiler)]
|
||||
{
|
||||
self.mask
|
||||
if SHARDS == 1 { 0 } else { self.mask }
|
||||
}
|
||||
#[cfg(not(parallel_compiler))]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user