-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rollup of 6 pull requests #101439
Rollup of 6 pull requests #101439
Conversation
This is based on `-Zprint-type-sizes` which does the same thing. It makes the output provenance clearer, and helps with post-processing. E.g. if you have `-Zhir-stats` output from numerous compiler invocations you can now easily extract the pre-expansion stats separately from the post-expansion stats.
For consistency, and because it makes HIR measurement simpler and more accurate.
For consistency, and because it makes HIR measurement simpler and more accurate.
For consistency, and because it makes HIR measurement simpler and more accurate.
This comment on the HIR `visit_path_segment` is supposed be on the AST `visit_path_segment`.
Because `hir_id` is the standard name for methods that return a `HirId` from a HIR node.
Adds and removes some `visit_*` methods accordingly, improving coverage, and avoiding some double counting. Brings it in line with the AST stats collector.
…avidtwco Improve HIR stats rust-lang#100398 improve the AST stats collection done by `-Zhir-stats`. This PR does the same for HIR stats collection. r? `@davidtwco`
…cloned, r=lcnr Suggest `{Option,Result}::{copied,clone}()` to satisfy type mismatch Fixes rust-lang#100699, but in the opposite direction (instead of suggesting to fix the signature, it fixes the body)
more clippy::perf fixes
…ty_no_warn_in_2021_crates, r=TaKO8Ki Don't fire `rust_2021_incompatible_closure_captures` in `edition = 2021` crates Fixes rust-lang#101284
Fix `hir::Local` doc to match with the variable name used: `init`
Don't suggest reborrow if usage is inside a closure I can't think of why we would ever be able to *successfully* suggest a mutable reborrow `&mut *` due to a move happening due to a closure, so just suppress it. Fixes rust-lang#101119
@bors r+ rollup=never p=5 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR: previous master: 5b4bd154de In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (6e4a9ab): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @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.
CyclesResultsThis 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.
Footnotes |
The regressions are mostly on But there are plenty of improvements here, including some huge ones on |
Whoops, I chopped off the first digit in the SHA: |
Queued 47093b0902bf68606f249d4fed363fe60ff8c34b with parent 5b4bd15, future comparison URL. |
Finished benchmarking commit (47093b0902bf68606f249d4fed363fe60ff8c34b): comparison URL. Overall result: ❌✅ regressions and improvements - 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never 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.
CyclesResultsThis 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.
Footnotes |
Ok, so #101409 is responsible for the |
Maybe one of changes in #101391 has touched hot code? |
@rust-timer build 0fbbf672012383c11ca93a3290bdcc8dbb1ebf71 |
Queued 0fbbf672012383c11ca93a3290bdcc8dbb1ebf71 with parent 5b4bd15, future comparison URL. |
Finished benchmarking commit (0fbbf672012383c11ca93a3290bdcc8dbb1ebf71): comparison URL. Overall result: ✅ improvements - 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 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.
CyclesResultsThis 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.
Footnotes |
I have since learned that we have some very noisy/bimodal benchmarks at the moment, particularly @rustbot label: +perf-regression-triaged |
Successful merges:
{Option,Result}::{copied,clone}()
to satisfy type mismatch #101367 (Suggest{Option,Result}::{copied,clone}()
to satisfy type mismatch)rust_2021_incompatible_closure_captures
inedition = 2021
crates #101409 (Don't firerust_2021_incompatible_closure_captures
inedition = 2021
crates)hir::Local
doc to match with the variable name used:init
#101420 (Fixhir::Local
doc to match with the variable name used:init
)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup