Skip to content

Sidebar links for methods from Deref are wrong if the type has a method of the same name #100679

Closed
@jplatte

Description

@jplatte

On https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html, there's two is_empty methods, one from Vec (why does Vec even have its own rather than relying on the slice one?? 😅) and one from [T] which Vec deref's to:

The link is_empty in the sidebar section "Methods from Deref<Target = [T]>" however doesn't link to the latter, it links to the former.

@rustbot labels: +T-rustdoc +A-rustdoc-ui

Metadata

Metadata

Assignees

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)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