-
-
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
v0.1.x: Don't deny warnings #1368
Conversation
This CI failure, is due to pkg-config new 0.3.15 release increasing its MSRV (yes, in a PATCH release) to 1.28. I'll need to look into that further in the release staging proposal (#1348). |
CI for this isn't fixed by just raising CI MSRV test to 1.28.0, given: error: failed to parse manifest at `/home/vsts/work/1/s/tokio-macros/Cargo.toml`
Caused by:
editions are unstable
Caused by:
feature `edition` is required |
162639c
to
da8fecd
Compare
This can also be viewed as a partial backport (from the future) of #1416. |
This is just too aggressive for a stable maintenance branch of tokio, in that new rust release warnings are prooving too hard to fix.
da8fecd
to
a88793c
Compare
Just to preserve this in case there are additional future problems with |
@dekellum do we want to deny warnings on CI test runs? |
That would make this a complete backport of #1416. My intuition is to not do so however, given that v0.1.x is a maintenance branch and new warning denials are just as likely to come from new stable or nightly compilers (based on our experience). That said, IMO, either way is an improvement. Alternatively, this could wait until once the next denial becomes problematic. |
@carllerche ^^ what do you think? |
I'm fine w/ this. 0.1 is a maintenance branch. |
Thanks for attempt to resolve the merge conflicts, @LucioFranco. Let me know if you need anything. |
Thanks. FWIW, given cap-lints behavior, I don't think this PR warrants any releases itself. Its just a nice to have for in-tree builds and avoiding future (spurious) CI failures! |
@dekellum sounds good, once I get the other PR merged and releases are out, would you be able to bring this PR inline and we can merge? |
Yep, thanks. |
@LucioFranco this can now be merged, no conflicts, with CI passing. Thanks in advance! |
@dekellum thank you for all this! |
This is minimally, an alternative solution to #1351, and for maximum future-proofing, could be applied in addition to #1351. Note that #1351 greatly reduces build warning noise for the common missing
dyn
issue, while this PR just preserves the warnings.Motivation
While there are tradeoffs and some open questions regarding using
#![deny(warnings)]
on tokio's master branch, its harder to justify keeping this setting on the v0.1.x stable maintenance branch where new features aren't being added, and as in #1351, subsequent rust stable releases can introduce new warnings thatdeny
makes fatal errors (at least with a local dev tree or CI).Solution
Remove
deny(warnings)
everywhere on v0.1.x branch (crate root modules, examples, tests, benches, etc.)! Also drop the explicitallow(rust_2018_idioms)
(in d6dcaea) which was only selectively applied and caused a build failure on 1.27.2 (see #1351 (comment)).