-
Notifications
You must be signed in to change notification settings - Fork 223
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
conflicting implementation in crate embedded_hal
#232
Comments
uhoh, that shouldn't happen. the related line is here. we provide a polyfill from v1 to v2 types for forward compatibility (though this is all going away, and changing, in the upcoming v1.0.0 release #177) it looks like your hal is trying to implement both the original and v2 traits where only one should be implemented? do be aware that we're preparing for a big-ol breaking change to resolve some, inconsistencies, in embedded-hal, so depending on your stability requirements you may wish to fix the duplicate hal definitions or to update to the alpha release, which does introduce some changes |
@ryankurte Thanks, indeed this was the problem. Wonder why this worked before and what was changed in Rust. As for |
We fixed a couple of things on the polyfils in |
This is fixed in 1.0, thanks to it not having any "compat" stuff. |
Hello,
I updated nightly and got this error trying to compile some code:
rustc 1.46.0-nightly (2753fab7c 2020-07-05)
417:"checksum embedded-hal 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "fa998ce59ec9765d15216393af37a58961ddcefb14c753b4816ba2191d865fcb"
Is this regression in compiler/embedded-hal or is it expected change and implementors (alt-stm32f30x-hal in this case) should fix their libraries?
Thanks!
The text was updated successfully, but these errors were encountered: