Skip to content

rustdoc links to non-blanket impl for blanket impl in sidebar #78701

Closed

Description

@Nemo157

I tried this code:

pub trait Something {}

pub trait AnAmazingTrait {}

impl<T: Something> AnAmazingTrait for T {}

pub struct AnotherStruct<T>(T);

impl<T: Something> Something for AnotherStruct<T> {}
impl AnAmazingTrait for AnotherStruct<()> {}

I expected to see this happen: Two links in the sidebar of AnotherStruct to AnAmazingTrait, one under "Trait Implementations" going to the specific impl, another under "Blanket Implementations" going to the blanket impl.

Instead, this happened: Two links in the sidebar, but both link to the specific impl.

Meta

12:34 → 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 3, 2020
  2. added 2 commits that reference this issue on Feb 27, 2022
    178df4e
    04ecf52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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