Skip to content

Invalid rendering for function parameters using destructuring #83852

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

This code:

pub fn body_owner(&self, BodyId { hir_id }: BodyId) -> HirId {
   // ...
}

renders the same in rustdoc, whereas it should be rendered like this:

pub fn body_owner(&self, _: BodyId) -> HirId;

Metadata

Metadata

Assignees

Labels

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