Skip to content

rustfmt should reorder precise capturing #6504

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

Open
oriongonza opened this issue Mar 14, 2025 · 1 comment
Open

rustfmt should reorder precise capturing #6504

oriongonza opened this issue Mar 14, 2025 · 1 comment

Comments

@oriongonza
Copy link

fn a() -> impl Sized + use<> {}
fn b() -> impl use<> + Sized {}

An order should be chosen. Does the use go at the front or at the back?

@ytmimi
Copy link
Contributor

ytmimi commented Mar 15, 2025

We could try adding a new unstable option for this. Maybe named something like precise _capture_order with three variants Preserve (default), First, and Last.

@ytmimi ytmimi added the p-low label Mar 15, 2025
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

2 participants