From dcd93bc5b49566b55e2219950ae0ef3c0f4d986a Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 22 Feb 2022 11:36:39 +0100 Subject: [PATCH] Use 2021 edition in ./x.py fmt --- src/bootstrap/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs index 2408344487bb1..30fe6a7a44695 100644 --- a/src/bootstrap/format.rs +++ b/src/bootstrap/format.rs @@ -13,7 +13,7 @@ fn rustfmt(src: &Path, rustfmt: &Path, paths: &[PathBuf], check: bool) -> impl F // avoid the submodule config paths from coming into play, // we only allow a single global config for the workspace for now cmd.arg("--config-path").arg(&src.canonicalize().unwrap()); - cmd.arg("--edition").arg("2018"); + cmd.arg("--edition").arg("2021"); cmd.arg("--unstable-features"); cmd.arg("--skip-children"); if check {