Skip to content

Tricky error with rustc-std-workspace-core crate. #64356

@crlf0710

Description

@crlf0710

I'm not very sure whether this is a bug or not. But let me write down the reproduction steps. I'm using the newest stable.
Cargo.toml:

[package]
name = "dummy"
version = "0.0.1"
edition = "2018"

[dependencies]
core = { version = "1.0", package = "rustc-std-workspace-core"}

src/lib.rs

#![no_std]

compiler output:

   Compiling dummy v0.1.0 (L:\ThirdParty\rust\dummy)
error[E0433]: failed to resolve: could not find `prelude` in `core`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.
error: Could not compile `dummy`.

To learn more, run the command again with --verbose.

The rustc-std-workspace-core crate here is the one on crates.io. @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions