Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc of gereric items format error #5122

Closed
frank-king opened this issue Dec 3, 2021 · 0 comments · Fixed by #5124
Closed

Doc of gereric items format error #5122

frank-king opened this issue Dec 3, 2021 · 0 comments · Fixed by #5124

Comments

@frank-king
Copy link
Contributor

struct Foo<
    /// doc of T
    T,
    /// doc of N
    const N: u32,
>;

After rustfmt, it becomes

struct Foo<
    /// doc of T T,
    /// doc of N
    /// doc of N const N: u32,
>;

Occurred both on rustfmt 1.4.37-stable (2021-11-01) and 1.4.38-nightly (2021-12-02).

BTW, though fresh new to rustc and rustfmt, I'm interested in rust toolchains and would like to try fixing it on my own. Unless it blocks or I cannot fix it in two or three weeks, anyone else can pick it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants