-
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
Enable potential_query_instability lint in rustc_hir_typeck. #113328
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 4a2a38bcb70c8623f3f71c3af1496a6dd794ca7b with merge 76199ee47fd0a53283a41c58c3eae48a6f3aa9c7... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
@@ -7,6 +7,7 @@ | |||
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/borrow_check.html | |||
|
|||
use crate::ty::TyCtxt; | |||
use hir::HirIdMap; |
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.
use hir::HirIdMap; | |
use rustc_hir::HirIdMap; |
@@ -1,12 +1,12 @@ | |||
use crate::middle::region::{Scope, ScopeData, ScopeTree}; | |||
use rustc_data_structures::fx::FxHashMap; | |||
use hir::ItemLocalMap; |
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.
use hir::ItemLocalMap; | |
use rustc_hir::ItemLocalMap; |
Finished benchmarking commit (76199ee47fd0a53283a41c58c3eae48a6f3aa9c7): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 654.344s -> 654.024s (-0.05%) |
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.
r=me after nits and @cjgillot review
r? @cjgillot |
Let's see if sorting during typeck writeback has a performance impact. |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit d4f2f3bffe364fd4751dc077e3044cbe769d6d69 with merge 02ae3e8e05f123322f34b0a60bd9c88f0e712d32... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (02ae3e8e05f123322f34b0a60bd9c88f0e712d32): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 657.995s -> 656.043s (-0.30%) |
☔ The latest upstream changes (presumably #113573) made this pull request unmergeable. Please resolve the merge conflicts. |
not sure whether @cjgillot still has any open reviews? if not, r=cjgillot,lcnr after rebase |
@@ -908,19 +909,13 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { | |||
/// Combines all the reasons for 2229 migrations | |||
fn compute_2229_migrations_reasons( |
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.
🤔 should we just remove this function 😓 we're now simply creating a struct
7587806
to
03169c5
Compare
@bors r=cjgillot,lcnr |
📌 Commit 03169c52372d7d9c0fde285bc5cd28fb134ef35d has been approved by It is now in the queue for this repository. |
Thanks for reviewing, @cjgillot & @lcnr!
I think that's better done separately and by someone with more context. |
☔ The latest upstream changes (presumably #113637) made this pull request unmergeable. Please resolve the merge conflicts. |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
Fix linting errors by using FxIndex(Map|Set) and Unord(Map|Set) as appropriate.
03169c5
to
457b787
Compare
@bors r=cjgillot,lcnr |
☀️ Test successful - checks-actions |
Finished benchmarking commit (df5c2cf): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 657.803s -> 658.312s (0.08%) |
Fix linting errors by using
FxIndex(Map|Set)
andUnord(Map|Set)
as appropriate. Part of MCP 533.I really like the
potential_query_instability
lint!r? @lcnr