Skip to content

rustfmt doesn't always remove unecessary where clause #6385

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
kennykerr opened this issue Nov 4, 2024 · 2 comments
Closed

rustfmt doesn't always remove unecessary where clause #6385

kennykerr opened this issue Nov 4, 2024 · 2 comments

Comments

@kennykerr
Copy link

Given:

fn test() where {}

rustfmt will correctly produce:

fn test() {}

But given:

fn test() -> () where {}

rustfmt will fail to remove the unecessary where clause.

@ytmimi
Copy link
Contributor

ytmimi commented Nov 4, 2024

Duplicate of #4649.

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2024
@riverar
Copy link

riverar commented Nov 4, 2024

@ytmimi Not sure that's an appropriate issue to dupe on. That issue is concerned with incorrect removal of the where clause. This issue is concerned with incorrect preservation of the where clause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants