Formatting raw string literals in doc comments is broken in nightly #6142
Labels
a-comments
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
only-with-option
requires a non-default option value to reproduce
I found an issue with cargo 1.79.0-nightly (d438c80c4 2024-03-19) and
format_code_in_doc_comments = true
with raw string literals:(Original source at https://github.com/wiktor-k/tangler/blob/main/src/lib.rs#L24-L26 . The tool works with markdown documents, that's why the doc comment uses raw strings).
It shows:
but
cargo test
(nightly and stable) andcargo doc
are OK with this fragment of code.I'm not sure if I should report it as a separate ticket or just appending it here is OK...?
Originally posted by @wiktor-k in #3348 (comment)
The text was updated successfully, but these errors were encountered: