"The following types implement trait..." suggets crate private items, if inside macro. #99080
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
There are two crates here,
library
andconsumer
(which depends onlibrary
).library:
consumer:
The current output is (when running
cargo check
onconsumer
):Ideally the output should look like:
We should not be suggesting private types to users, since macro hygiene does mean they can't write
library::PrivateMeow
This is on the latest nightly,
rustc 1.64.0-nightly (06754d885 2022-07-08)
This was ran into in #99074
The text was updated successfully, but these errors were encountered: