You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With format_code_in_doc_comments = true, rustfmt 1.6.0-nightly can format code in line doc comments, but code in block doc comments cannot be formatted.
/// ```rust/// println!("hello"); // formatted/// ```/**```rust println!("hello"); // not formatted```*/fnf(){}
The text was updated successfully, but these errors were encountered:
This seems like a limitation of how rustfmt handles block doc comments where lines don't start with leading *. linking the tracking issue for format_code_in_doc_comments#3348
With
format_code_in_doc_comments = true
,rustfmt 1.6.0-nightly
can format code in line doc comments, but code in block doc comments cannot be formatted.The text was updated successfully, but these errors were encountered: