Skip to content

Commit

Permalink
Merge pull request torvalds#530 from ojeda/edition-2021
Browse files Browse the repository at this point in the history
Update `rustfmt` and rust-analyzer to edition 2021
  • Loading branch information
ojeda authored Oct 22, 2021
2 parents cb0df90 + a7c8147 commit d285143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
edition = "2018"
edition = "2021"
newline_style = "Unix"

# Unstable options that help catching some mistakes in formatting and that we may want to enable
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_rust_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def append_crate(display_name, root_module, deps, cfg=[], is_workspace_member=Tr
"is_proc_macro": is_proc_macro,
"deps": [{"crate": crates_indexes[dep], "name": dep} for dep in deps],
"cfg": cfg,
"edition": "2018",
"edition": "2021",
"env": {
"RUST_MODFILE": "This is only for rust-analyzer"
}
Expand Down

0 comments on commit d285143

Please sign in to comment.