Skip to content

Commit ceec906

Browse files
camelidjyn514
authored andcommitted
Recommend rustfmt --edition=2021
1 parent afbcc3e commit ceec906

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/building/suggested.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be
3333
],
3434
"rust-analyzer.rustfmt.overrideCommand": [
3535
"./build/TARGET_TRIPLE/stage0/bin/rustfmt",
36-
"--edition=2018"
36+
"--edition=2021"
3737
],
3838
"editor.formatOnSave": true,
3939
"rust-analyzer.cargo.runBuildScripts": false,

src/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ format-on-save turned on. It's a good habit to run `./x.py fmt` before every
293293
commit, as this reduces conflicts later. The pinned version is built under
294294
`build/<target>/stage0/bin/rustfmt`, so if you want, you can use it for a
295295
single file or for format-on-save in your editor, which can be faster than `./x.py fmt`.
296-
You'll have to pass the <!-- date: 2021-09 --> `--edition=2018` argument
296+
You'll have to pass the <!-- date: 2021-09 --> `--edition=2021` argument
297297
yourself when calling `rustfmt` directly.
298298

299299
One last thing: you can use `RUSTC_LOG=XXX` to get debug logging. [Read more

0 commit comments

Comments
 (0)