Skip to content

New lints: item that was previously public API is now #[doc(hidden)] i.e. no longer public API #578

Open
@obi1kenobi

Description

@obi1kenobi

For example, uncommenting the #[doc(hidden)] line is a breaking change since the struct is no longer considered public API, even though it is public. This is because some non-public API may need to be accessible from outside its crate, for example in macro-heavy crates like pyo3.

// #[doc(hidden)]
pub struct Example;

We need lints for this kind of situation for:

Remaining work item

We should figure out what are the appropriate semantics of marking an impl block #[doc(hidden)] with respect to the block's contents. Are the contents considered not public API anymore? Is #[doc(hidden)] simply ignored on that impl block?

The action items here are:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: new or existing lintE-help-wantedCall for participation: Help is requested to fix this issue.E-mentorCall for participation: Mentorship is available for this issue.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions