Skip to content

rustdoc: Refactor get_all_types so args is fully shared between loop iterations #90779

Open
@camelid

Description

  1. Refactor add_generics_and_bounds_as_types so it handles all types, not just type parameters.
  2. Remove the !args.is_empty() conditional in get_fn_inputs_and_outputs.
  3. Extend all_types with args at the end of the loop.

cc @GuillaumeGomez

Metadata

Assignees

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.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