Skip to content

Commit 86ee06a

Browse files
authored
Rollup merge of rust-lang#94253 - bjorn3:xpy-fmt-2021, r=Mark-Simulacrum
Use 2021 edition in ./x.py fmt
2 parents 40afbdd + dcd93bc commit 86ee06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn rustfmt(src: &Path, rustfmt: &Path, paths: &[PathBuf], check: bool) -> impl F
1313
// avoid the submodule config paths from coming into play,
1414
// we only allow a single global config for the workspace for now
1515
cmd.arg("--config-path").arg(&src.canonicalize().unwrap());
16-
cmd.arg("--edition").arg("2018");
16+
cmd.arg("--edition").arg("2021");
1717
cmd.arg("--unstable-features");
1818
cmd.arg("--skip-children");
1919
if check {

0 commit comments

Comments
 (0)