-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Turn on unused-extern-crates warning. #10706
Conversation
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @nox (or someone else) soon. |
Heads up! This PR modifies the following files:
|
We might want to wait? |
@bors-servo try Code looks fine, but let's run it through CI to see how many false positives we get. Reviewed 1 of 1 files at r1. Comments from Reviewable |
Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
💔 Test failed - mac-rel-wpt |
|
I have added guards to the false positives. What is left should be the actual thing. |
The last commit takes care of the unused crates. I think am all done here (unless you have some suggestions). |
|
I'll fold it into the false positives commit then. |
@Ms2ger Done. |
Please squash the commits together, a bisection ending up in the middle of your PR would have failing tests. -S-awaiting-review +S-needs-squash Reviewed 1 of 1 files at r1, 5 of 8 files at r2, 1 of 1 files at r3, 18 of 19 files at r4, 1 of 1 files at r5. Comments from Reviewable |
Rather than squashing, I'd suggest reordering the commits so that the "Turn on unused-extern-crates warning." comes after the two other commits. |
Reorder done. |
@bors-servo r+ |
📌 Commit 99e6ada has been approved by |
Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
I have folded the update of the lock files into the commit modifying the toml files (hope that is ok). |
@bors-servo r+ |
📌 Commit 2207830 has been approved by |
Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
💔 Test failed - android |
Can anyone help with the android stuff? I don't have the environment set up and I know close to nothing about android. I guess some of the extern crates should have been guarded by cfg(android). |
Yes, that would be the correct way to sort it out. Specifically, the use of the |
Added #[allow(unused_extern_crates)] to silence false positives * bitflags, lazy_static and matches because macro_use * alloc_jemalloc because builtin crate See rust-lang/rust#30849
The cleanup is based on info from using "-W unused-extern-crates".
Reworked to consider also android build. |
@bors-servo: r=nox |
📌 Commit 4bdc895 has been approved by |
Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
As discussed in #9256. It should solve second half of the issue.
This change is