Skip to content
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

Handle rustc_middle cases of rustc::potential_query_instability lint #131160

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ismailarilik
Copy link
Contributor

This PR removes #![allow(rustc::potential_query_instability)] line from compiler/rustc_middle/src/lib.rs and converts FxHash{Map,Set} types into FxIndex{Map,Set} to suppress lint errors.

A somewhat tracking issue: #84447

r? @compiler-errors

@rustbot
Copy link
Collaborator

rustbot commented Oct 2, 2024

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @compiler-errors (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 2, 2024
@rustbot
Copy link
Collaborator

rustbot commented Oct 2, 2024

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@rust-log-analyzer

This comment has been minimized.

@ismailarilik ismailarilik marked this pull request as draft October 3, 2024 04:52
@ismailarilik ismailarilik force-pushed the handle-potential-query-instability-lint-for-rustc-middle branch from da9a8fd to 4c46978 Compare October 3, 2024 05:56
@rust-log-analyzer

This comment has been minimized.

@ismailarilik ismailarilik force-pushed the handle-potential-query-instability-lint-for-rustc-middle branch from 4c46978 to afeabb2 Compare October 3, 2024 07:46
@ismailarilik ismailarilik marked this pull request as ready for review October 3, 2024 09:02
@ismailarilik ismailarilik marked this pull request as draft October 4, 2024 08:24
@ismailarilik ismailarilik force-pushed the handle-potential-query-instability-lint-for-rustc-middle branch 2 times, most recently from e8cc67a to 0000613 Compare October 4, 2024 08:58
@ismailarilik ismailarilik marked this pull request as ready for review October 4, 2024 08:59
@bors
Copy link
Contributor

bors commented Oct 10, 2024

☔ The latest upstream changes (presumably #131263) made this pull request unmergeable. Please resolve the merge conflicts.

@ismailarilik ismailarilik force-pushed the handle-potential-query-instability-lint-for-rustc-middle branch from 0000613 to 01e27a3 Compare October 28, 2024 10:15
@bors
Copy link
Contributor

bors commented Nov 12, 2024

☔ The latest upstream changes (presumably #132282) made this pull request unmergeable. Please resolve the merge conflicts.

@compiler-errors
Copy link
Member

I'm gonna re-roll this so this PR gets more attention, sorry for my inactivity.

r? compiler

But also reassigning to author sicne I think this PR still needs updating.

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 23, 2025
@SparrowLii
Copy link
Member

@ismailarilik Can you rebase the PR today? I'm in holiday tomorrow so I"d like to have a review before that :)

@SparrowLii
Copy link
Member

r? compiler cause I'm going to the holidays in the next few days.

And I suggest to run a rustc perf when it's ready since this PR change the cache struct

@rustbot rustbot assigned estebank and unassigned SparrowLii Jan 26, 2025
@Dylan-DPC
Copy link
Member

@ismailarilik any updates on this? thanks

@rustbot rustbot added the has-merge-commits PR has merge commits, merge with caution. label Feb 26, 2025
@rustbot
Copy link
Collaborator

rustbot commented Feb 26, 2025

There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged.

You can start a rebase with the following commands:

$ # rebase
$ git pull --rebase https://github.com/rust-lang/rust.git master
$ git push --force-with-lease

The following commits are merge commits:

@ismailarilik
Copy link
Contributor Author

@ismailarilik any updates on this? thanks

Sorry, I missed the previous comment. I've just fixed conflicts. But since I have no access to the git tool in a machine nowadays, I had to do it using the web UI so there is a merge commit now. I can fix it later or feel free to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-merge-commits PR has merge commits, merge with caution. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants