Lock shards while emitting depth limit error.#148777
Conversation
|
rustbot has assigned @petrochenkov. Use |
|
This looks fine to me. |
|
Could you add comments explaining why |
|
I also don't like the amount of copypaste here. |
401568a to
37cf215
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
|
r=me after some parameter renaming #148777 (comment) |
|
Reminder, once the PR becomes ready for a review, use |
Co-authored-by: Zoxc <zoxc32@gmail.com>
37cf215 to
a4d0507
Compare
|
@rustbot ready |
|
I don’t think I have permissions to interact with bors. |
|
Thanks! |
Rollup of 4 pull requests Successful merges: - #148638 (Fix ICE for repr simd on non struct) - #148725 (Implement the alternative `try` block desugaring) - #148777 (Lock shards while emitting depth limit error.) - #148933 (Add note for option llvm.download-ci-llvm) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #148777 - ywxt:depth_limit_error, r=petrochenkov Lock shards while emitting depth limit error. Locking shards avoids collect_active_jobs isn't able to be completed during emitting depth limit error. fix #142159 Zulip: https://rust-lang.zulipchat.com/#narrow/channel/187679-t-compiler.2Fparallel-rustc/topic/panic.20while.20depth_limit_error/with/554616169 cc `@Zoxc`
|
Assuming this PR introduced a perf regression for multiple threads, I wonder if fixing #146616 would allow us to revert this PR to gain that perf back. Just a thought. |
Locking shards avoids collect_active_jobs isn't able to be completed during emitting depth limit error.
fix #142159
Zulip: https://rust-lang.zulipchat.com/#narrow/channel/187679-t-compiler.2Fparallel-rustc/topic/panic.20while.20depth_limit_error/with/554616169
cc @Zoxc