rust-lang / rust-lang/rustup

Config `rust-analyzer` to use the new formatting style

Open
#5,069 2 comments 1 reaction 1 assignee View on GitHub

@rami3l is already working on this.

Since Sep 11, 2026.

enhancement
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

OTOH to facilitate use in IDEs so that we can never worry about reorganizing imports, I'm discovering the feasibility of adding a recommended rust-analyzer config that looks like so:

rustfmt = { extraArgs = { "+nightly", "--config-path=.rustfmt.unstable.toml" } },

Interesting, I cannot use that yet because rust-analyzer is calling rustfmt at the source file's basedir so .rustfmt.unstable-toml will be "not found":

Originally posted by @rami3l in #5065

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.