Skip to content

cargo-fmt reports weird version on nightly #137666

Open
@Kobzol

Description

@Kobzol
$ rustup update nightly
$ cd .rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin
$ ./cargo-fmt --version
rustfmt 1.8.0-stable (4d91de4e48 2025-02-17)
$ ./rustfmt --version
rustfmt 1.8.0-nightly (85abb27636 2025-02-25)

The version has a different date than rustfmt, which I would perhaps understand, but it's a bit weird that it says -stable even though it's in the nightly toolchain.

It's possible that #137541 might fix this, we'll see after the next nightly is released.

Metadata

Metadata

Assignees

Labels

A-rustfmtArea: RustfmtC-bugCategory: This is a bug.T-rustfmtRelevant to the rustfmt team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions