feature external_doc not traversed by rustfmt #60997
Labels
C-bug
Category: This is a bug.
F-external_doc
`#![feature(external_doc)]`
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
When using the nightly external doc feature #44732 ,
rustfmt
ceases to be able to tidy code blocks in the documentation.As a test, I put a documentation code block that was previously in a
.rs
file into aninclude=
'd.md
file, intentionally made it a mess, and observed thatrustfmt
no longer made it look readable:And rustfmt did not indicate any attempts to format this file:
I imagine being able to format these external files would be something that should work prior to this feature being stabilized, or at very least, rustfmt should gain options so that it can do this.
The text was updated successfully, but these errors were encountered: