Open
Description
Minimized from https://github.com/rust-lang/rust/blob/1.74.0/library/core/src/num/nonzero.rs#L341-L342.
macro_rules! repro {
() => {
#[doc = concat!("let var = ",
"false;")]
fn f() {}
};
}
As of current master, rustfmt applies the following diff. This is from cargo run --bin rustfmt -- /path/to/repro.rs
.
- "false;")]
+ "false;")]
If you run rustfmt again, it keeps going for 16 levels of indentation before reaching an idempotent state.
- "false;")]
+ "false;")]
- "false;")]
+ "false;")]
- "false;")]
+ "false;")]
- "false;")]
+ "false;")]
- "false;")]
+ "false;")]
- "false;")]
+ "false;")]
- "false;")]
+ "false;")]
- "false;")]
+ "false;")]