Skip to content

rustdoc: Re-exported impls render all bounds as where clauses, regardless of source appearance #89180

Open
@camelid

Description

@camelid

There is a "bug" related to cross-crate re-exports and where clauses: In the core docs, the impl looks like this (which is how it's actually written in the source):

image

But in the std docs, the impl looks like this, with all of the bounds expressed as where clauses:

image

I think the re-exported version is actually better, because it's easier to read, but they should at least be consistent.

Originally posted by @camelid in #88809 (comment)

Note: It's possible this is triggered by any re-exports, not just cross-crate ones, but I haven't checked.

Metadata

Metadata

Assignees

Labels

A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateA-trait-systemArea: Trait systemC-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