-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Restore the local filter on mono item sorting #94505
Conversation
In `CodegenUnit::items_in_deterministic_order`, there's a comment that only local HirIds should be taken into account, but rust-lang#90408 removed the `as_local` call that sets others to None. Restoring that check fixes the s390x hangs seen in [RHBZ 2058803]. [RHBZ 2058803]: https://bugzilla.redhat.com/show_bug.cgi?id=2058803
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
r? rust-lang/compiler |
cc @cjgillot and @pierwill as the reviewer and author of #90408. I'm honestly not sure how this could end up hanging LLVM, but it may have something to do with the comment, "The others don't matter for the codegen tests and can even make item order unstable." But it's quite possible that LLVM has its own bug that this just happened to trigger somehow. I also don't really know why we only saw problems on s390x, but I did see that |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me but I'd like a second opinion.
r? rust-lang/compiler |
This looks good to me. @bors r=michaelwoerister,davidtwco Relying on the DefIndex as a proxy for definition order is pretty fishy to begin with. |
📌 Commit 6a838e4 has been approved by |
…haelwoerister,davidtwco Restore the local filter on mono item sorting In `CodegenUnit::items_in_deterministic_order`, there's a comment that only local HirIds should be taken into account, but rust-lang#90408 removed the `as_local` call that sets others to None. Restoring that check fixes the s390x hangs seen in [RHBZ 2058803]. [RHBZ 2058803]: https://bugzilla.redhat.com/show_bug.cgi?id=2058803
Rollup of 9 pull requests Successful merges: - rust-lang#92061 (update char signess for openbsd) - rust-lang#93072 (Compatible variants suggestion with desugaring) - rust-lang#93354 (Add documentation about `BorrowedFd::to_owned`.) - rust-lang#93663 (Rename `BorrowedFd::borrow_raw_fd` to `BorrowedFd::borrow_raw`.) - rust-lang#94375 (Adt copy suggestions) - rust-lang#94433 (Improve allowness of the unexpected_cfgs lint) - rust-lang#94499 (Documentation was missed when demoting Windows XP to no_std only) - rust-lang#94505 (Restore the local filter on mono item sorting) - rust-lang#94529 (Unused doc comments blocks) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
In
CodegenUnit::items_in_deterministic_order
, there's a comment thatonly local HirIds should be taken into account, but #90408 removed the
as_local
call that sets others to None. Restoring that check fixes thes390x hangs seen in RHBZ 2058803.