Closed
Description
I recently upgraded my project to rust 2021 edition, but rustfmt is no longer working (both on computer and ci with the latest nightly).
To reproduce:
> git clone https://github.com/Luro02/array-map
> cd array-map
> cargo fmt --all -- --check
Invalid value for `--edition`
This issue is not only limited to this project, one can also reproduce it by running cargo new help
and changing the Cargo.toml
to:
+ cargo-features = ["edition2021"]
+
[package]
name = "help"
version = "0.1.0"
+ edition = "2021"
- edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
This may be related to #4916