Skip to content

Warn when two crates with different versions are in use in the same compilation unit #102882

Closed
@pwnorbitals

Description

@pwnorbitals

I was faced with this error message, saying my Memory trait was both not implemented and implemented by the Flash type :

image

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsD-crate-version-mismatchDiagnostics: Errors or lints caused be the use of two different crate versions.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions