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
The oldest version of rustfmt that exhibits this issue is the one that shipped with Rust 1.38; rustfmt in older Rust releases leaves the original code unmodified.
According to bisect, this regressed between nightly-2019-07-25 and nightly-2019-07-31 (the dates in between are missing the rustfmt component). The only PR touching rust-lang/rust's src/tools/rustfmt in that range is rust-lang/rust#62805, so the relevant rustfmt commit range is 66c27c9...9e960e7.
#3691 looks suspiciously relevant based on these changes it causes to some of the tests.
dtolnay
changed the title
Rustfmt misaligns comment between rustfmt::skip modules
Rustfmt misaligns doc comment between rustfmt::skip modules
May 28, 2024
Running rustfmt on this file turns it into:
Observations:
#[path = "/dev/null"]
attribute is not necessary for the repro. It is just to make this reproducible with a single input file.#[rustfmt::skip]
are necessary for the repro. Without either one, the problem does not occur.;
are necessary for the repro. If either module uses{
}
instead of;
, the problem does not occur.The text was updated successfully, but these errors were encountered: