-
Notifications
You must be signed in to change notification settings - Fork 909
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
rustfmt duplicates rustfmt::skip
#4282
Comments
@topecongiro - feel like we should get this fixed before the 2.0 release so I'm adding to the 2.0 miletsone. let me know if you disagree though! |
Just kidding 😄 this has already been fixed in source and cannot be reproduced on master/rustfmt 2.0 We're not planning on having any more rustfmt 1.x releases, but if we do end up having to do so then we'll backport the fix for this from #3975. Going to go ahead and close this for now |
So given that #3974 was closed more than half a year before the fix is actually shipped to users -- maybe it would make sense to keep this one open until the fix is really released (at least on the nightly channel)? |
It's the practice within rustfmt, and has been my experience in other projects as well, for issues to be closed when the corresponding code changes are merged vs. waiting to close til after a deployment/release. However, we've been in such a bifurcated development mode between rustfmt 1.x and 2.x for so long that I understand how the actual status of an issue can be confusing and complicated (particularly for those fixed/resolved shortly after 2.x dev started). We've had a lot of rustfmt 1.x releases during that time, but unfortunately a lot of the bugs fixed in source/master just didn't get backported. As such, I've gone ahead and opened #4283 to ensure that this fix will be in the next version of rustfmt no matter what. Accordingly I'm going to keep this closed given our issue management strategy and this issue being fixed in source. |
When formatting the following code with nightly rustfmt:
The result is that
#[rustfmt::skip]
gets duplicated.(We had this problem before and it got fixed, but now it seems it came back: #3974.)
The text was updated successfully, but these errors were encountered: