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

format_code_in_doc_comments=true converts long // comments to /* #5674

Closed
stepancheg opened this issue Jan 26, 2023 · 1 comment
Closed

format_code_in_doc_comments=true converts long // comments to /* #5674

stepancheg opened this issue Jan 26, 2023 · 1 comment

Comments

@stepancheg
Copy link
Contributor

struct Scope {
    free: u32, // abracadabra long long very long very very long comment comment comment hello world
}

Using master revision, 1d8491b (Jan 24 2023).

cat a.rs | cargo run --bin rustfmt -- --config format_code_in_doc_comments=true

Converts // comments to /* comments.

struct Scope {
    free: u32, /* abracadabra long long very long very very long comment comment comment hello world */
}

However, short comments are preserved as // comments.

@ytmimi
Copy link
Contributor

ytmimi commented Jan 26, 2023

Thanks, but this is a duplicate of #5533, and we've got PR #5536 ready to merge soon in order to fix it.

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants