Skip to content

rustdoc doesn't render HRTBs #78482

Closed
@WaffleLapkin

Description

@WaffleLapkin

I tried this code:

pub fn test<T>() 
where
    for<'a> &'a T: Iterator,
{}

I expected rustdoc to render HRTB (for<'a>), but it doesn't:

image

Originally find while viewing keyberon docs.

Meta

rustdoc --version --verbose:

rustdoc 1.49.0-nightly (ffa2e7ae8 2020-10-24)
binary: rustdoc
commit-hash: ffa2e7ae8fbf9badc035740db949b9dae271c29f
commit-date: 2020-10-24
host: x86_64-unknown-linux-gnu
release: 1.49.0-nightly
LLVM version: 11.0

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.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