Fix parallel compiler.

This commit is contained in:
Camille GILLOT 2021-03-06 15:58:32 +01:00
parent cfe786e5e0
commit 8208872fa2

View File

@ -12,7 +12,9 @@
use std::convert::TryInto;
#[cfg(parallel_compiler)]
use {rustc_data_structures::sync::WorkerLocal, std::sync::mpsc, std::thread};
use {
rustc_data_structures::sync::WorkerLocal, rustc_index::vec::Idx, std::sync::mpsc, std::thread,
};
// The maximum value of `SerializedDepNodeIndex` leaves the upper two bits
// unused so that we can store multiple index types in `CompressedHybridIndex`,