Skip to content

rustfmt should reorder precise capturing #6504

@oriongonza

Description

@oriongonza
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?

Activity

ytmimi

ytmimi commented on Mar 15, 2025

@ytmimi
Contributor

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.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ytmimi@oriongonza

        Issue actions

          rustfmt should reorder precise capturing · Issue #6504 · rust-lang/rustfmt