Skip to content

Use prettyplease to format expectations #2536

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

Merged
merged 8 commits into from
May 30, 2023

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented May 24, 2023

This PR replaces rustfmt by prettyplease as the used formatter for the expectation tests.

This was done because we currently rely on the nightly version of rustfmt which recently broke our test suite by changing how code in macros is formatted. The prettyplease crate does not have that issue because we are using a specific version in the Cargo manifest.

pvdrz added 3 commits May 24, 2023 10:38
This PR replaces `rustfmt` by `prettyplease` as the used formatter for
the expectation tests.

This was done because we currently rely on the nightly version of
`rustfmt` which recently broke our test suite by changing how code in
macros is formatted. The `prettyplease` crate does not have that issue
because we are using a specific version in the Cargo manifest.
@pvdrz pvdrz force-pushed the prettyplease-in-tests branch from d75859f to 554ff6b Compare May 24, 2023 16:06
@pvdrz pvdrz force-pushed the prettyplease-in-tests branch from dc9226c to 02e1ebd Compare May 24, 2023 17:11
@pvdrz pvdrz merged commit a710e50 into rust-lang:main May 30, 2023
@pvdrz pvdrz deleted the prettyplease-in-tests branch May 30, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants