Skip to content
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

rustfmt use declarations #125443

Merged
merged 2 commits into from
Jul 29, 2024
Merged

rustfmt use declarations #125443

merged 2 commits into from
Jul 29, 2024

Commits on Jul 28, 2024

  1. Update use declarations formatting options.

    As decided in rust-lang/compiler-team#750.
    
    Use declarations are currently wildly inconsistent because rustfmt is
    quite unopinionated about how they should be formatted. The
    `rustfmt.toml` additions makes rustfmt more opinionated, which avoids
    the need for any decision when adding new use declarations to a file.
    
    This commit only updates `rustfmt.toml` and
    `compiler/rustc_codegen_cranelift/rustfmt.toml`. The next commit will do
    the reformatting.
    nnethercote committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    118f935 View commit details
    Browse the repository at this point in the history
  2. Reformat use declarations.

    The previous commit updated `rustfmt.toml` appropriately. This commit is
    the outcome of running `x fmt --all` with the new formatting options.
    nnethercote committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    84ac80f View commit details
    Browse the repository at this point in the history