Rustfmt regression: produces duplicated subexpressions and unparseable output involving as
casts
#4534
Labels
bug
Panic, non-idempotency, invalid code, etc.
as
casts
#4534
Bisects to 6646248 (#4406).
To reproduce:
$ echo 'fn main() { let z = (x as f64 / y as f64).floor() as usize; }' | CFG_RELEASE_CHANNEL=dev CFG_RELEASE=1.48.0 cargo +nightly-2020-09-16 run --bin rustfmt --features rustfmt
Against the parent commit of 6646248 (correct output):
Against 6646248, and all the way through current master (17d90ca as of filing):
The text was updated successfully, but these errors were encountered: