Skip to content

rustdoc should render the body of assoc tys *before* the where-clause #112903

Closed
@fmease

Description

@fmease

Given

pub struct S;

pub trait Tr {
    type F<T>
    where
        T: Clone;
}

impl Tr for S {
    type F<T> = T
    where
        T: Clone;
}

rustdoc currently renders the body of the associated type F, namely T, after the where-clause which no longer aligns with the recommended style (see #89122, lint deprecated_where_clause_location):

Screenshot 2023-06-21 at 20-29-16 Tr in nx - Rust

@rustbot claim
@rustbot label C-bug T-rustdoc A-rustdoc-ui

Metadata

Metadata

Assignees

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-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