Skip to content

Not all trait implementations are documented #42440

Closed
@jethrogb

Description

@jethrogb

When implementing traits with type parameters (with your types) for types outside your crate, these aren't documented anywhere.

For example:

pub struct A;

impl From<A> for std::io::Error {
    fn from(a: A) -> Self {
        unimplemented!()
    }
}

This isn't documented in my crate, and it of course can't be documented in std, because std doesn't know about my type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc 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