mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
make progress callback dyn
This commit is contained in:
parent
2b0d8a86a2
commit
5f0c1aa2de
@ -47,10 +47,11 @@ pub struct ParallelPrimeCachesProgress {
|
||||
pub crates_done: usize,
|
||||
}
|
||||
|
||||
pub(crate) fn parallel_prime_caches<F>(db: &RootDatabase, num_worker_threads: u8, cb: &F)
|
||||
where
|
||||
F: Fn(ParallelPrimeCachesProgress) + Sync + std::panic::UnwindSafe,
|
||||
{
|
||||
pub(crate) fn parallel_prime_caches(
|
||||
db: &RootDatabase,
|
||||
num_worker_threads: u8,
|
||||
cb: &(dyn Fn(ParallelPrimeCachesProgress) + Sync),
|
||||
) {
|
||||
let _p = profile::span("prime_caches");
|
||||
|
||||
let graph = db.crate_graph();
|
||||
|
Loading…
Reference in New Issue
Block a user