Skip to content

Not all empty where clauses are removed #3639

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

Closed
scottmcm opened this issue Jun 20, 2019 · 0 comments · Fixed by #3663
Closed

Not all empty where clauses are removed #3639

scottmcm opened this issue Jun 20, 2019 · 0 comments · Fixed by #3663
Labels
bug Panic, non-idempotency, invalid code, etc. poor-formatting

Comments

@scottmcm
Copy link
Member

scottmcm commented Jun 20, 2019

trait Foo where {}
struct Bar where {}
impl<> Foo<> for Bar<> where {}

formats to

trait Foo {}
struct Bar
where
{}
impl Foo for Bar where {}

https://play.rust-lang.org/?edition=2018&gist=3e0a3b133c330b399f45a4fac98c518f

I would have expected that all the empty where clauses were removed, not just the one on the trait, for an output like

trait Foo {}
struct Bar {}
impl Foo for Bar {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Panic, non-idempotency, invalid code, etc. poor-formatting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants