Skip to content

rustdoc shows inapplicable blanket implementations #78673

Description

@Nemo157

I tried this code:

pub trait Something {}

pub trait AnAmazingTrait {}

impl<T: Something> AnAmazingTrait for T {}

pub struct MyStruct;

impl AnAmazingTrait for MyStruct {}

I expected to see this happen: The specific implementation on MyStruct's doc page

Instead, this happened: Both the specific implementation, and the inapplicable blanket implementation, are shown:

image

Meta

> rustdoc -vV
rustdoc 1.49.0-nightly (31530e5d1 2020-10-20)
binary: rustdoc
commit-hash: 31530e5d132ebcc3654baf2e5460599681520af0
commit-date: 2020-10-20
host: x86_64-unknown-linux-gnu
release: 1.49.0-nightly
LLVM version: 11.0

@rustbot modify labels: +T-rustdoc

Activity

  1. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Nov 2, 2020
  2. Nemo157 commented on Nov 2, 2020

    @Nemo157
    ContributorAuthor

    @rustbot claim

  3. added a commit that references this issue on Nov 13, 2020
    b63d05a
  4. added a commit that references this issue on Nov 15, 2020
  5. added a commit that references this issue on Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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