-
Notifications
You must be signed in to change notification settings - Fork 904
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
Latest update of stable fails to format |foo = bar| (in a macro) #3583
Comments
This is the rustfmt failed CI link in your repository. I tried to reproduce your CI error in my fork repository. But rustfmt run correctly. |
That's not the right link to a CI failure from this, here's one: https://circleci.com/gh/mozilla/application-services/15051 You can also repro by checking out commit |
I succeed to reproduce the problem, thank you. |
A minimal working example: foo!(|0 =); rustfmt somehow aborts while parsing the argument of |
I'm not sure the rust parser aborting makes a lot of sense, since the code in the case I'm reporting compiles (and runs) fine. |
@thomcc Yeah, you are right. I took another look at the code and found that panics raised while parsing macro arguments are not caught. |
This file fails to format with the latest stable rustfmt (1.2.0, --version output at end). The macro below seems to be the cause https://github.com/mozilla/application-services/blob/eb72c9aa1e5ecfcf79c1444eb98910727c699f61/components/places/benches/search.rs#L66-L74 (We managed to fix that issue by changing the
=
to a:
)It also fails to report any errors beyond exiting with code 101, which appears to be issue #3008.
The text was updated successfully, but these errors were encountered: