don't suggest feature(rustc_private) for std dependencies #112747
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-metadata
Area: Crate metadata
A-stability
Area: `#[stable]`, `#[unstable]` etc.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
Dependencies of the standard library are an implementation details and shouldn't affect diagnostics. In particular, I saw a case in the wild where someone added
extern crate libc;
and got the false impression that libc was nightly-only; that could have been avoided with better diagnostics.Note that I think we should still giving this message for crates whose name starts with
rustc_
- those only show up when you have rustc-dev installed already, and the hint may be useful.Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: