-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
WIP: Lint unused features #152164
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
base: main
Are you sure you want to change the base?
WIP: Lint unused features #152164
Conversation
This comment has been minimized.
This comment has been minimized.
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.
this is neat! in the future, it would be easier to review if you split the rename into a separate commit from the change in behavior.
could you add some tests for this please?
cb9b84c to
cd83e12
Compare
|
Initial implementation completed. I plan to add more tests and check whether features in rustc are reported as unused correctly or not. |
This comment has been minimized.
This comment has been minimized.
cd83e12 to
2945856
Compare
This comment has been minimized.
This comment has been minimized.
2945856 to
36c0a20
Compare
This comment has been minimized.
This comment has been minimized.
36c0a20 to
2ddaf82
Compare
This comment has been minimized.
This comment has been minimized.
2ddaf82 to
fb08c95
Compare
This comment has been minimized.
This comment has been minimized.
fb08c95 to
38aefe4
Compare
This comment has been minimized.
This comment has been minimized.
38aefe4 to
0cda8d4
Compare
This comment has been minimized.
This comment has been minimized.
0cda8d4 to
2d2577f
Compare
This comment has been minimized.
This comment has been minimized.
2d2577f to
b67632e
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a940d65 to
435090a
Compare
84b5565 to
c189c97
Compare
This comment has been minimized.
This comment has been minimized.
| self.enabled_lang_features().hash_stable(hcx, hasher); | ||
| self.enabled_lib_features().hash_stable(hcx, hasher); | ||
| } | ||
| } |
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.
Is this still necessary with the no_hash?
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.
This has been removed in the third commit. Let me squash these two commits.
4ba23c6 to
acb3115
Compare
This comment has been minimized.
This comment has been minimized.
acb3115 to
1875ae8
Compare
This comment has been minimized.
This comment has been minimized.
1875ae8 to
382a5fe
Compare
This comment has been minimized.
This comment has been minimized.
|
Some incremental tests failed because query features will be always dirty. And some of these have expired with current implementation. For now, I just update them to fit the new result directly. Expired ones should be removed if current implementation is accepted finally. |
This comment has been minimized.
This comment has been minimized.
5551df6 to
b807143
Compare
b807143 to
9b6aa0d
Compare
This comment has been minimized.
This comment has been minimized.
9b6aa0d to
2d0bb85
Compare
This comment has been minimized.
This comment has been minimized.
2d0bb85 to
8fc6deb
Compare
Fixes #44232
Fixes #151752