-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ICE in Definitions::create_def #99340
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @lcnr (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5d7200d
to
6ac17f0
Compare
This comment has been minimized.
This comment has been minimized.
thanks 👍 @bors r+ rollup squash |
📌 Commit b85c5f0417585cf77d8613a7d6d2e691da328aa5 has been approved by It is now in the queue for this repository. |
Can't find exact PR, but recently r+ squash was tried and it didn't worked in rollup. |
b85c5f0
to
d9f28b7
Compare
I manually squashed the commits, could someone re-approve this? |
@bors r+ rollup |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#99340 (Fix ICE in Definitions::create_def) - rust-lang#99629 (Improve `cannot move out of` error message) - rust-lang#99864 (bootstrap: don't emit warn about duplicated deps with same/different features if some of sets actually empty) - rust-lang#99911 (Remove some uses of `guess_head_span`) - rust-lang#99976 (Make Rustdoc exit with correct error code when scraping examples from invalid files) - rust-lang#100003 (Improve size assertions.) - rust-lang#100012 (Avoid `Ty` to `String` conversions) - rust-lang#100020 (better error when python is not found in x - issue rust-lang#99648) Failed merges: - rust-lang#99994 (Replace `guess_head_span` with `opt_span`) r? `@ghost` `@rustbot` modify labels: rollup
Debug
implementation forLocalDefId
uses globalDefinitions
. Normally it’s ok, but we can’t do it while holding a mutable reference toDefinitions
, since it causes ICE or deadlock (depending on whetherparallel_compiler
is enabled).This PR effectively copies the
Debug
implementation into the problematic method. I don’t particularly love this solution (since it creates code duplication), but I don’t see any other options.This issue was discovered when running
rustdoc
withRUSTDOC_LOG=trace
on the following file:I’m not sure how to create a test for this behavior.