File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ format-on-save turned on. It's a good habit to run `./x.py fmt` before every
293293commit, 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
295295single 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
297297yourself when calling ` rustfmt ` directly.
298298
299299One last thing: you can use ` RUSTC_LOG=XXX ` to get debug logging. [ Read more
You can’t perform that action at this time.
0 commit comments