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

Pass --cap-lints=allow instead of -Awarnings #1830

Merged
merged 1 commit into from
Aug 4, 2015

Conversation

alexcrichton
Copy link
Member

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.

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.
@rust-highfive
Copy link

r? @wycats

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @brson

cc rust-lang/rust#27260

@rust-highfive rust-highfive assigned brson and unassigned wycats Jul 24, 2015
if cx.config.rustc_info().cap_lints {
rustc.arg("--cap-lints").arg("allow");
} else {
rustc.arg("-Awarnings");
Copy link
Member

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.

@alexcrichton
Copy link
Member Author

ping r? @brson

@brson
Copy link
Contributor

brson commented Aug 4, 2015

@bors r+

@bors
Copy link
Contributor

bors commented Aug 4, 2015

📌 Commit ff96fa1 has been approved by brson

@bors
Copy link
Contributor

bors commented Aug 4, 2015

⌛ Testing commit ff96fa1 with merge cb522bc...

bors added a commit that referenced this pull request Aug 4, 2015
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.
@bors
Copy link
Contributor

bors commented Aug 4, 2015

@bors bors merged commit ff96fa1 into rust-lang:master Aug 4, 2015
@alexcrichton alexcrichton deleted the cap-lints branch August 5, 2015 17:20
SimonSapin added a commit to servo/servo that referenced this pull request Aug 6, 2015
Manishearth added a commit to Manishearth/servo that referenced this pull request Aug 7, 2015
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 -->
Manishearth added a commit to Manishearth/servo that referenced this pull request Aug 7, 2015
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 -->
bors-servo pushed a commit to servo/servo that referenced this pull request Aug 7, 2015
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 -->
SimonSapin added a commit to servo/servo that referenced this pull request Aug 20, 2015
bors-servo pushed a commit to servo/servo that referenced this pull request Aug 20, 2015
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 -->
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this pull request Jun 12, 2017
…19) (from servo:cargoup); r=SimonSapin

Pick up rust-lang/cargo#1830

Source-Repo: https://github.com/servo/servo
Source-Revision: 5bab439ab6c58a5b78a6c2f69d6e93ad80da560f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 30, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants