-
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
Detect unused struct impls pub trait #121752
Conversation
r? @wesleywiser rustbot has assigned @wesleywiser. Use r? to explicitly pick a reviewer |
r? @shepmaster |
f728c71
to
8a70616
Compare
This comment has been minimized.
This comment has been minimized.
tests/ui/derives/clone-debug-dead-code-in-the-same-struct.stderr
Outdated
Show resolved
Hide resolved
I'll give this a look-through, but I'm definitely not qualified to give it a final sign-off 🙂. r? rust-lang/compiler |
8a70616
to
1bdb757
Compare
This comment has been minimized.
This comment has been minimized.
Remove unused diagnostic struct Detected by rust-lang#121752
Remove unused diagnostic struct Detected by rust-lang#121752
Some changes occurred in compiler/rustc_codegen_gcc |
22e6adf
to
330ad49
Compare
This comment has been minimized.
This comment has been minimized.
330ad49
to
ceae2a0
Compare
This comment has been minimized.
This comment has been minimized.
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
Rollup merge of rust-lang#121779 - mu001999:clean, r=Nilstrieb Remove unused diagnostic struct Detected by rust-lang#121752
New pending PR:
|
remove unused struct Snap in lsif Detected by #121752, see rust-lang/rust#121752 (comment)
☔ The latest upstream changes (presumably #122042) made this pull request unmergeable. Please resolve the merge conflicts. |
59c69b8
to
c73a7f0
Compare
@pnkfelix @shepmaster No pending PRs, could you reapprove? Thanks ;) |
@bors r=pnkfelix |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c69fda7): comparison URL. Overall result: ❌ regressions - 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.
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: 648.469s -> 647.708s (-0.12%) |
Visiting for weekly rustc-perf triage. @mu001999 it looks like the performance regression flagged here is legitimate, even though it is also minor. I.e., the performance stats indicate that the newly added worklist code is the source of a bit of extra time we are spending here. Do you have any ideas on ways we might attempt to avoid the extra cost? If not, that is okay; we just need to keep our eyes on how these things add up, and make sure we don't end up slowing down the compiler too much for lints that may not be paying for themselves. |
@pnkfelix maybe we can make unsolved impl items as a map from adt def id to impl item ids, and update next-to-solve impl terms if finding a used adt when visiting trait items. Then we don't need traversal all unsolved impl items every time until there are no unsolved items. But I don't know if this will reduce the extra time. |
Yeah that sounds like a potential idea. Its not something you need to take on yourself, I just want to try to get the ideas written down while the code is still fresh in our heads. |
Fixes #47851