Skip to content

Ignore format_code_in_doc_comments if doc is in the middle of comment - #6020

Open
stepancheg wants to merge 1 commit into
rust-lang:mainfrom
stepancheg:doc
Open

stepancheg wants to merge 1 commit into
rust-lang:mainfrom
stepancheg:doc

Conversation

@stepancheg

Copy link
Copy Markdown
Contributor

Issue #6017.

When there's a #[doc] attribute in the middle of comment, rustfmt cannot know what would be inside of it.

So skip the formatting of such comments.

@jieyouxu jieyouxu added S-waiting-on-review Status: awaiting review from the assignee but also interested parties. and removed pr-not-reviewed labels Feb 23, 2026
@rustbot

rustbot commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (possibly #6823) made this pull request unmergeable. Please resolve the merge conflicts.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants