-
Notifications
You must be signed in to change notification settings - Fork 41
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
Remove #[deny(warnings)] #17
Conversation
The library currently does not currently build anymore, because upstream libraries have added new deprecation warnings. A deprecation warning should not break compilation though.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nastevens (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
That's actually an anti-pattern: https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md |
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.
LGTM
bors r=therealprof |
🔒 Permission denied Existing reviewers: click here to make hannobraun a reviewer |
Ah, looks like the decision to remove the HAL team as a maintainer has already been implemented. Sorry for the noise. |
bors r=therealprof |
17: Remove #[deny(warnings)] r=therealprof a=dbrgn The library currently does not currently build anymore, because upstream libraries have added new deprecation warnings. A deprecation warning should not break compilation though. There was a post on Reddit about this about a year ago, but I can't find it anymore. I think adding a CI check step would be fine, but `#[deny(warnings)]` is a bit too much. These are the warnings: ``` warning: use of deprecated item 'hal::digital::OutputPin': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:111:6 | 111 | impl hal::digital::OutputPin for Pin { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(deprecated)] on by default warning: use of deprecated item 'hal::digital::InputPin': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:121:6 | 121 | impl hal::digital::InputPin for Pin { | ^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated item 'hal::digital::InputPin::is_high': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:131:15 | 131 | !self.is_high() | ^^^^^^^ ``` Co-authored-by: Danilo Bargen <[email protected]>
Build failed |
The bors failure seems unrelated. What can we do to get this merged? |
I think it is me messing up the process because I'm not really a authorised reviewer on this repository. ;) If @posborne would just do bors r+, that might end up fine. ;) |
bors r+ |
17: Remove #[deny(warnings)] r=posborne a=dbrgn The library currently does not currently build anymore, because upstream libraries have added new deprecation warnings. A deprecation warning should not break compilation though. There was a post on Reddit about this about a year ago, but I can't find it anymore. I think adding a CI check step would be fine, but `#[deny(warnings)]` is a bit too much. These are the warnings: ``` warning: use of deprecated item 'hal::digital::OutputPin': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:111:6 | 111 | impl hal::digital::OutputPin for Pin { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(deprecated)] on by default warning: use of deprecated item 'hal::digital::InputPin': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:121:6 | 121 | impl hal::digital::InputPin for Pin { | ^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated item 'hal::digital::InputPin::is_high': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:131:15 | 131 | !self.is_high() | ^^^^^^^ ``` Co-authored-by: Danilo Bargen <[email protected]>
Build failed |
Hm, okay, another problem with nightly... libc messed up:
|
Why test this with nightly anyways? It compiles fine on stable. |
@therealprof i ran into this today, tested to be resolved in nix-rust/nix#1055, i've asked them to publish a release nix-rust/nix#1061 which i guess will have to be individually bumped in |
@rnestler it appears broken to me on both stable and nightly when cross compiling for arm. maybe we should add stable to the build matrix too? |
bors r+ |
17: Remove #[deny(warnings)] r=therealprof a=dbrgn The library currently does not currently build anymore, because upstream libraries have added new deprecation warnings. A deprecation warning should not break compilation though. There was a post on Reddit about this about a year ago, but I can't find it anymore. I think adding a CI check step would be fine, but `#[deny(warnings)]` is a bit too much. These are the warnings: ``` warning: use of deprecated item 'hal::digital::OutputPin': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:111:6 | 111 | impl hal::digital::OutputPin for Pin { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(deprecated)] on by default warning: use of deprecated item 'hal::digital::InputPin': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:121:6 | 121 | impl hal::digital::InputPin for Pin { | ^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated item 'hal::digital::InputPin::is_high': Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. --> src/lib.rs:131:15 | 131 | !self.is_high() | ^^^^^^^ ``` Co-authored-by: Danilo Bargen <[email protected]>
Build succeeded |
🎉 |
143: Remove #[deny(warnings)] r=ryankurte a=dbrgn It's an antipattern, see https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md and rust-embedded/linux-embedded-hal#17 Co-authored-by: Danilo Bargen <[email protected]>
18: Move to digital v2 traits r=nastevens a=dbrgn The v1 traits are deprecated because they don't have a way to report errors. Gets rid of the deprecation warnings (which are hard errors until #17 is merged). Co-authored-by: Danilo Bargen <[email protected]>
The library currently does not currently build anymore, because upstream libraries have added new deprecation warnings. A deprecation warning should not break compilation though. There was a post on Reddit about this about a year ago, but I can't find it anymore.
I think adding a CI check step would be fine, but
#[deny(warnings)]
is a bit too much.These are the warnings: