mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
Cleanup cfg check handling in expression store lowering
This commit is contained in:
parent
7d9b839f9c
commit
d11dbf648f
17 changed files with 234 additions and 188 deletions
|
|
@ -90,15 +90,17 @@ pub fn parallel_prime_caches(
|
|||
};
|
||||
|
||||
for id in 0..num_worker_threads {
|
||||
stdx::thread::Builder::new(stdx::thread::ThreadIntent::Worker)
|
||||
.allow_leak(true)
|
||||
.name(format!("PrimeCaches#{id}"))
|
||||
.spawn({
|
||||
let worker = prime_caches_worker.clone();
|
||||
let db = db.clone();
|
||||
move || worker(db)
|
||||
})
|
||||
.expect("failed to spawn thread");
|
||||
stdx::thread::Builder::new(
|
||||
stdx::thread::ThreadIntent::Worker,
|
||||
format!("PrimeCaches#{id}"),
|
||||
)
|
||||
.allow_leak(true)
|
||||
.spawn({
|
||||
let worker = prime_caches_worker.clone();
|
||||
let db = db.clone();
|
||||
move || worker(db)
|
||||
})
|
||||
.expect("failed to spawn thread");
|
||||
}
|
||||
|
||||
(work_sender, progress_receiver)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue