Warn when two crates with different versions are in use in the same compilation unit #102882
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-crate-version-mismatch
Diagnostics: Errors or lints caused be the use of two different crate versions.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I was faced with this error message, saying my
Memory
trait was both not implemented and implemented by theFlash
type :This particular issue was caused by having two different versions of the STM32H7 HAL, leading to this confusing and misleading error.
Should we consider adding a warning when two different versions of the same crate are in use in a single compilation unit ?
The text was updated successfully, but these errors were encountered: