-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trailing_semicolon = false
changes the meaning of code, non-idempotent
#5797
Comments
thanks for the report! tagging tracking issue: #3378 |
@CosmicHorrorDev & @HarrisonHemstreet this is another one that should be a relatively quick fix if either of you are interested in working on it. As discussed in chat don't feel obligated to work on any of these, we're just tagging things as they pop up if we think could be good opportunities for you. I'm going to be a bit more lightweight in initial guidance on this one to give you more opportunity to poke around, so all I'll say for now is that you may want to start around here: Lines 295 to 309 in 9386b32
|
I'm up for digging into it this weekend if @HarrisonHemstreet is fine with that |
The
trailing_semicolon = false
option, when run on this code:turns it into
which now runs
foo()
where it did not before, as a second run ofrustfmt
will make clearer:Observed on
rustfmt 1.5.3-nightly (065a1f5 2023-06-21)
.The text was updated successfully, but these errors were encountered: