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

Move deny(warnings) into rustbuild #49715

Merged
merged 2 commits into from
Apr 11, 2018
Merged

Conversation

Mark-Simulacrum
Copy link
Member

This permits easier iteration without having to worry about warnings
being denied.

Fixes #49517

@Mark-Simulacrum
Copy link
Member Author

r? @alexcrichton

cc @eddyb @RalfJung

@rust-highfive rust-highfive assigned alexcrichton and unassigned aturon Apr 5, 2018
@RalfJung
Copy link
Member

RalfJung commented Apr 5, 2018

Just to be sure, the ./configure-based build that runs on CI still has deny(warnings), right? I can't see any changes to the configure script.

@Mark-Simulacrum
Copy link
Member Author

The default behavior is to deny warnings, so yes.

@@ -14,7 +14,7 @@
reason = "this library is unlikely to be stabilized in its current \
form or name",
issue = "27783")]
#![deny(warnings)]
#![feature(alloc)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change intentional? seems odd

@alexcrichton
Copy link
Member

Sounds like a great idea to me! I wouldn't personally feel the need to have the command line flag as well, but now that it's done there's certainly no harm.

I wonder if it'd be best now though to disable warnings by default and update src/ci/run.sh so all CI builders deny warnings?

@alexcrichton
Copy link
Member

er, disable deny(warnings) by default*

@RalfJung
Copy link
Member

RalfJung commented Apr 6, 2018

@cramertj expressed at the all-hands that he preferred deny(warnings) on in the compiler. Also, it seems it took 3 years for someone to take enough offense with the default to actually raise the point in the issue tracker, so maybe it's not such a bad default? Either way, that seems like a separate discussion form just providing the option.

I am perfectly fine changing my cargo.toml, so this patch already makes me happy :)

@pietroalbini pietroalbini added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Apr 6, 2018
@Mark-Simulacrum
Copy link
Member Author

@alexcrichton I think feedback above indicates we may not want to make this a default, and either way that seems like something we should do down the line. I fixed the nit that @steveklabnik noticed (thanks!) so I believe this is good to go.

@alexcrichton
Copy link
Member

@bors: r+

Seems reasonable to me!

@bors
Copy link
Contributor

bors commented Apr 6, 2018

📌 Commit b5a3b29 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 6, 2018
@bors
Copy link
Contributor

bors commented Apr 7, 2018

☔ The latest upstream changes (presumably #49661) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 7, 2018
This permits easier iteration without having to worry about warnings
being denied.

Fixes rust-lang#49517
@Mark-Simulacrum
Copy link
Member Author

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented Apr 8, 2018

📌 Commit c115cc6 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 8, 2018
@bors
Copy link
Contributor

bors commented Apr 9, 2018

⌛ Testing commit c115cc6 with merge 8b36e1691a8403b545655840b3eb2e1530327ede...

@bors
Copy link
Contributor

bors commented Apr 9, 2018

💔 Test failed - status-appveyor

@bors bors removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 9, 2018
@bors bors added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 9, 2018
@RalfJung
Copy link
Member

RalfJung commented Apr 9, 2018

Seems like we now run deny(warnings) on more code than before? The windows build says

   Compiling rustc-main v0.0.0 (file:///C:/projects/rust/src/rustc)
error: unused attribute
  --> rustc\rustc.rs:16:47
   |
16 | #[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")]
   |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D unused-attributes` implied by `-D warnings`
error: aborting due to previous error

@Mark-Simulacrum
Copy link
Member Author

@ishitatsuyuki Any thoughts on that error? It looks like this code was added by you in #48575; I'm wondering if we should ignore that warning or if it's just that we don't properly consider link_args...

@alexcrichton
Copy link
Member

I believe I tested that out locally a few days ago and rustc is basically incorrectly reporting that it's an unused attribute, you'll probably want to attach an #[allow] annotation there for now

@Mark-Simulacrum
Copy link
Member Author

Okay, added a commit to allow that warning.

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented Apr 9, 2018

📌 Commit 46aad25 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 9, 2018
@bors
Copy link
Contributor

bors commented Apr 9, 2018

⌛ Testing commit 46aad25ab96aa239ccbc0b23f3f11520b2252376 with merge 5c943cf5a213407d51eba89edab56065b8df5696...

@bors
Copy link
Contributor

bors commented Apr 9, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 9, 2018
@RalfJung
Copy link
Member

RalfJung commented Apr 9, 2018

And another one of the same:

   Compiling rustdoc-tool v0.0.0 (file:///C:/projects/rust/src/tools/rustdoc)
error: unused attribute
  --> tools\rustdoc\main.rs:14:47
   |
14 | #[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")]
   |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D unused-attributes` implied by `-D warnings`
error: aborting due to previous error

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 10, 2018
@Mark-Simulacrum
Copy link
Member Author

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented Apr 11, 2018

📌 Commit 53718d2 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 11, 2018
@bors
Copy link
Contributor

bors commented Apr 11, 2018

⌛ Testing commit 53718d2 with merge 43e994c...

bors added a commit that referenced this pull request Apr 11, 2018
Move deny(warnings) into rustbuild

This permits easier iteration without having to worry about warnings
being denied.

Fixes #49517
@bors
Copy link
Contributor

bors commented Apr 11, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 43e994c to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants