-
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
add rustc lint, warning when iterating over hashmaps 2 #92584
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 1460dfd1204a3be4c74848d2e7e3019b30de4f6f with merge 446098f1f5b461056edc9b8846ce94ce7f829652... |
This comment has been minimized.
This comment has been minimized.
0bcb3c3
to
016df18
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 016df18fe6ec89d1201779c62f52e343cad3201d with merge ad47090cb5e41b11dcd8682dee0cacc33b2e9903... |
☀️ Try build successful - checks-actions |
Queued ad47090cb5e41b11dcd8682dee0cacc33b2e9903 with parent f1ce0e6, future comparison URL. |
Finished benchmarking commit (ad47090cb5e41b11dcd8682dee0cacc33b2e9903): comparison url. Summary: This change led to very large relevant regressions 😿 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 led 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 |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 81cf15730bec1716a4792fa472ae1dc6bd0d6a3f with merge f595a08cba4963a2575a9e38727108c748031450... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
Queued f595a08cba4963a2575a9e38727108c748031450 with parent f1ce0e6, future comparison URL. |
Finished benchmarking commit (f595a08cba4963a2575a9e38727108c748031450): comparison url. Summary: This change led to very large relevant regressions 😿 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 led 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 |
⌛ Trying commit 1b6090b274d15811c6a0e791e03c62a0c6bc8e6b with merge 5d17beb959299ea0fbd2279075b7f0746ad7f886... |
☀️ Try build successful - checks-actions |
Queued 5d17beb959299ea0fbd2279075b7f0746ad7f886 with parent 2f004d2, future comparison URL. |
Finished benchmarking commit (5d17beb959299ea0fbd2279075b7f0746ad7f886): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 led to changes in compiler perf. @bors rollup=never |
should now be ready for review/merged again |
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 addressing the blanket import.
// FIXME(rustdoc): This lint uses typecheck results, causing rustdoc to | ||
// error if there are resolution failures. | ||
// | ||
// As internal lints are currently always run if there are `unstable_options`, | ||
// they are added to the lint store of rustdoc. Internal lints are also | ||
// not used via the `lint_mod` query. Crate lints run outside of a query | ||
// so rustdoc currently doesn't disable them. | ||
// | ||
// Instead of relying on this, either change crate lints to a query disabled by | ||
// rustdoc, only run internal lints if the user is explicitly opting in | ||
// or figure out a different way to avoid running lints for rustdoc. | ||
if cx.tcx.sess.opts.actually_rustdoc { | ||
return; | ||
} |
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.
Do any other lints have to deal with this?
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.
not sure, rustdoc disables the late lint query and afaik pretty much runs no lints outside of the internal lints (which we run because we always add them to the lint store if -Zunstable-options
is set)
and no other internal lint uses the typeck
query which is what is causing rustdoc to error
1b6090b
to
4bbe970
Compare
@bors r=estebank rollup |
📌 Commit 4bbe970 has been approved by |
add rustc lint, warning when iterating over hashmaps 2 first introduced in rust-lang#89558 and reverted in rust-lang#90380 due to its perf impact r? `@estebank`
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#86374 (Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu`) - rust-lang#91828 (Implement `RawWaker` and `Waker` getters for underlying pointers) - rust-lang#92021 (Eliminate duplicate codes of is_single_fp_element) - rust-lang#92584 (add rustc lint, warning when iterating over hashmaps 2) - rust-lang#93267 (implement a lint for suspicious auto trait impls) - rust-lang#93290 (remove `TyS::same_type`) - rust-lang#93436 (Update compiler_builtins to fix duplicate symbols in `armv7-linux-androideabi` rlib) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
first introduced in #89558 and reverted in #90380 due to its perf impact
r? @estebank