-
Notifications
You must be signed in to change notification settings - Fork 925
Filter out block comment in filter_normal_code if configured to use rustfmt 2 (#4668) #4758
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
base: rustfmt-1.4.37
Are you sure you want to change the base?
Filter out block comment in filter_normal_code if configured to use rustfmt 2 (#4668) #4758
Conversation
3f2fc01
to
1864a98
Compare
Yes please! |
I didn't see version gating in other idempotent tests, so I am thinking about creating a standalone set of test cases that use a |
There's actually a much simpler to specify configuration values in the files used for the system+idempotence tests, just add comments to the top of the files as needed of the form e.g. rustfmt/tests/source/issue-3302.rs Line 1 in c3a5111
More info can be found in this section of the Contributing guide. |
1864a98
to
e7b5f33
Compare
…ustfmt 2 (rust-lang#4668) Add idempotent test cases
e7b5f33
to
ac72d00
Compare
Thank you! This looks good to go, though I haven't decided whether I want to pull it into the 1.4.37 release just yet so may hold off on merging for a little while. There are plenty of other cases where we need to do a similar backporting, as well as general issues/feature requests on the backlog, so if you're interested in working on anything else please let me know and/or drop a note on the corresponding issue! |
e0e294d
to
5292bc5
Compare
@ChinYing-Li maybe you could push the branch again to re-trigger the CI so it might become green? Other than that, since 1.4.37 has been released a while ago... :) |
…into 1.4.37_issue_4668
Back-port the fix (#4720) to rustfmt 1.x;
In order to version-gate in
LineClasses
, several function signature had been changed:wrap_str
filter_normal_code
Should we add the idempotent test cases as well?