Skip to content

rustdoc: Encapsulate "clean generics before args" ordering requirement in a function #90778

Open
@camelid

Description

@camelid

I discovered in #90750 that several places in rustdoc panic if a function's generics are not cleaned before its arguments. It'd be good to extract a helper function to encapsulate that requirement so it's not spread across several places in the code.

cc @GuillaumeGomez @jyn514

Metadata

Metadata

Assignees

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.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