Skip to content

can't find crate for core #4294

@jesse99

Description

@jesse99

This error can happen when a crate depends upon another crate which depends upon a different version of a crate they both share. It's a very poor error message though because:

  • It's misleading (the problem is that the crates were incompatible not that core could not be found: both versions of core were present).
  • It doesn't provide any context. Which crates are involved? What are the version numbers of the incompatible crates?

One way to debug this is to do rustc --ls on each crate you depend upon and see if the common crate version numbers match up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsP-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions