-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
mk: Move from -D warnings
to #![deny(warnings)]
#31120
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
One change I also noticed was that the extern crate rustc_mir;
fn main() {} I added the |
@alexcrichton It may not be worth mentioning but I'll tag it and think about it later. Also nominating for beta, maybe just the rustc_mir crate fix. Here's an issue to lint for this problem: #31122 |
Oh let me rearrange the commits for the new unstable attribute to be in its own commit to be easily cherry-picked in that case. |
85ab967
to
3a107c5
Compare
rearranged |
@bors r+ |
📌 Commit 3a107c5 has been approved by |
⌛ Testing commit 3a107c5 with merge 234e3dd... |
💔 Test failed - auto-mac-64-opt |
3a107c5
to
ae8f816
Compare
@bors: r=brson ae8f816 |
⌛ Testing commit ae8f816 with merge 96b734f... |
💔 Test failed - auto-linux-64-x-android-t |
☔ The latest upstream changes (presumably #31148) made this pull request unmergeable. Please resolve the merge conflicts. |
ae8f816
to
fc8d780
Compare
@bors: r=brson fc8d780 |
⌛ Testing commit fc8d780 with merge 5ead8cf... |
💔 Test failed - auto-linux-64-x-android-t |
This commit removes the `-D warnings` flag being passed through the makefiles to all crates to instead be a crate attribute. We want these attributes always applied for all our standard builds, and this is more amenable to Cargo-based builds as well. Note that all `deny(warnings)` attributes are gated with a `cfg(stage0)` attribute currently to match the same semantics we have today
Wouldn't want to be able to link to this on stable Rust!
fc8d780
to
cc4db8b
Compare
@bors: r=brson cc4db8b |
@bors: r=brson 790b862 |
travis failed btw
|
#[test] | ||
#[cfg_attr(target_os = "android", ignore)] |
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.
shouldn't this not be ignored on android?
790b862
to
9d95a22
Compare
@bors: r=brson 9d95a22 |
⌛ Testing commit 9d95a22 with merge 2518a71... |
💔 Test failed - auto-win-msvc-64-opt |
9d95a22
to
cdc1c2c
Compare
@bors: r=brson cdc1c2c |
⌛ Testing commit cdc1c2c with merge 669130e... |
💔 Test failed - auto-mac-64-nopt-t |
The deny(warnings) attribute is now enabled for tests so we need to weed out these warnings as well.
cdc1c2c
to
cb343c3
Compare
This commit removes the `-D warnings` flag being passed through the makefiles to all crates to instead be a crate attribute. We want these attributes always applied for all our standard builds, and this is more amenable to Cargo-based builds as well. Note that all `deny(warnings)` attributes are gated with a `cfg(stage0)` attribute currently to match the same semantics we have today
flagging as beta-accepted, but only the commit alexcrichton@4b3c355 |
This commit removes the
-D warnings
flag being passed through the makefiles toall crates to instead be a crate attribute. We want these attributes always
applied for all our standard builds, and this is more amenable to Cargo-based
builds as well.
Note that all
deny(warnings)
attributes are gated with acfg(stage0)
attribute currently to match the same semantics we have today