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

Rust: Remove the workaround in rust/unused-variable. #17757

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Oct 14, 2024

Remove the workaround in rust/unused-variable that restricts results to files called main.rs (because we were getting far too many results otherwise).

Once the necessary fixes are in, we can check a DCA run succeeds [sufficiently cleanly] with this change, merge it, and the query is finished!

@geoffw0 geoffw0 added the Rust Pull requests that update Rust code label Oct 14, 2024
@aibaars
Copy link
Contributor

aibaars commented Oct 30, 2024

This has a conflict now. It would be nice to run an experiment to see if we can remove the restriction.

@geoffw0
Copy link
Contributor Author

geoffw0 commented Nov 4, 2024

This has a conflict now.

Fixed (force push, it's a single line change but has moved from one file to another).

It would be nice to run an experiment to see if we can remove the restriction.

100% agree (especially since #17865 has been merged). I've just started a run...

@geoffw0
Copy link
Contributor Author

geoffw0 commented Nov 5, 2024

The DCA run shows 282,889 new results for rust/unused-variable. The run itself didn't fail, but this is obviously far too many to be considered reasonable.

@aibaars
Copy link
Contributor

aibaars commented Nov 5, 2024

The DCA run shows 282,889 new results for rust/unused-variable. The run itself didn't fail, but this is obviously far too many to be considered reasonable.

Yes, that is still quite high. However, since it doesn't cause a problem for the DCA tests, I think we could merge this PR. That way we have a baseline on which we can improve things.

@geoffw0
Copy link
Contributor Author

geoffw0 commented Nov 5, 2024

OK, I'll fix the CI failure then...

@geoffw0
Copy link
Contributor Author

geoffw0 commented Nov 5, 2024

It looks like one test was affected, and it's an improvement. Specifically, the workaround removed here (removing results from rust/unused-variable outside of main.rs) had an unintended interaction with the logic in rust/unused-value excluding results that are overlaps between the two queries. I'm glad to be rid of this.

@geoffw0 geoffw0 marked this pull request as ready for review November 5, 2024 10:32
@geoffw0 geoffw0 merged commit bb5ee52 into github:main Nov 5, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants