When std
is missing the error message is very poor
#84418
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
A newbie Rustacean was trying to use the
gba
crate and they forgot to put#![no_std]
in thelib.rs
of their downstream project. The GBA uses a Tier 3 target withbuild-std
, and so they landed on this error:This is a poor experience. It's pretty vague about what went wrong, and has no suggestion of what the person can do to try and fix it.
Ideally, the error message should say something like:
And then the user can have at least an idea of what to investigate.
The text was updated successfully, but these errors were encountered: