Skip to content

Private items with a public reexport could suggest the public path in privacy error message #13065

Open
@huonw

Description

@huonw

E.g. use std::io::buffered::BufferedReader; says struct BufferedReader is private but could say

struct BufferedReader is private, but available publicly as `std::io::BufferedReader`

(This probably requires some significant work, for not a huge benefit.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions