-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Pass --cap-lints=allow instead of -Awarnings #1830
Conversation
This commit adds support to Cargo to pass `--cap-lints allow` to all upstream dependencies instead of `-A warings`. This should serve the same purpose of suppressing warnings in upstream dependencies as well as preventing widespread breakage whenever a change to a lint is introduced in the compiler.
r? @wycats (rust_highfive has picked a reviewer for you, use r? to override) |
r? @brson |
if cx.config.rustc_info().cap_lints { | ||
rustc.arg("--cap-lints").arg("allow"); | ||
} else { | ||
rustc.arg("-Awarnings"); |
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.
It's slightly amusing that the --allow warnings
flag is being passed when !allow_warnings
.
ping r? @brson |
@bors r+ |
📌 Commit ff96fa1 has been approved by |
This commit adds support to Cargo to pass `--cap-lints allow` to all upstream dependencies instead of `-A warings`. This should serve the same purpose of suppressing warnings in upstream dependencies as well as preventing widespread breakage whenever a change to a lint is introduced in the compiler.
☀️ Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-gnu-32, cargo-win-gnu-64, cargo-win-msvc-32, cargo-win-msvc-64 |
Upgrade cargo to 0.4.0-nightly (425fd85 2015-08-05) Pick up rust-lang/cargo#1830 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7049) <!-- Reviewable:end -->
Upgrade cargo to 0.4.0-nightly (425fd85 2015-08-05) Pick up rust-lang/cargo#1830 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7049) <!-- Reviewable:end -->
Upgrade cargo to 0.4.0-nightly (425fd85 2015-08-05) Pick up rust-lang/cargo#1830 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7049) <!-- Reviewable:end -->
Upgrade cargo to 0.5.0-nightly (657e363 2015-08-19) Pick up rust-lang/cargo#1830 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7049) <!-- Reviewable:end -->
…19) (from servo:cargoup); r=SimonSapin Pick up rust-lang/cargo#1830 Source-Repo: https://github.com/servo/servo Source-Revision: 5bab439ab6c58a5b78a6c2f69d6e93ad80da560f
…19) (from servo:cargoup); r=SimonSapin Pick up rust-lang/cargo#1830 Source-Repo: https://github.com/servo/servo Source-Revision: 5bab439ab6c58a5b78a6c2f69d6e93ad80da560f UltraBlame original commit: 02cb3705bc4c1343e76fceea5cf968db19e89e02
…19) (from servo:cargoup); r=SimonSapin Pick up rust-lang/cargo#1830 Source-Repo: https://github.com/servo/servo Source-Revision: 5bab439ab6c58a5b78a6c2f69d6e93ad80da560f UltraBlame original commit: 02cb3705bc4c1343e76fceea5cf968db19e89e02
…19) (from servo:cargoup); r=SimonSapin Pick up rust-lang/cargo#1830 Source-Repo: https://github.com/servo/servo Source-Revision: 5bab439ab6c58a5b78a6c2f69d6e93ad80da560f UltraBlame original commit: 02cb3705bc4c1343e76fceea5cf968db19e89e02
This commit adds support to Cargo to pass
--cap-lints allow
to all upstreamdependencies instead of
-A warings
. This should serve the same purpose ofsuppressing warnings in upstream dependencies as well as preventing widespread
breakage whenever a change to a lint is introduced in the compiler.