Skip to content

Commit d285143

Browse files
authored
Merge pull request torvalds#530 from ojeda/edition-2021
Update `rustfmt` and rust-analyzer to edition 2021
2 parents cb0df90 + a7c8147 commit d285143

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
edition = "2018"
1+
edition = "2021"
22
newline_style = "Unix"
33

44
# Unstable options that help catching some mistakes in formatting and that we may want to enable

scripts/generate_rust_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def append_crate(display_name, root_module, deps, cfg=[], is_workspace_member=Tr
3232
"is_proc_macro": is_proc_macro,
3333
"deps": [{"crate": crates_indexes[dep], "name": dep} for dep in deps],
3434
"cfg": cfg,
35-
"edition": "2018",
35+
"edition": "2021",
3636
"env": {
3737
"RUST_MODFILE": "This is only for rust-analyzer"
3838
}

0 commit comments

Comments
 (0)