about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide/rustfmt.toml
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rustc-dev-guide/rustfmt.toml')
-rw-r--r--src/doc/rustc-dev-guide/rustfmt.toml7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/rustfmt.toml b/src/doc/rustc-dev-guide/rustfmt.toml
new file mode 100644
index 00000000000..b285329c78e
--- /dev/null
+++ b/src/doc/rustc-dev-guide/rustfmt.toml
@@ -0,0 +1,7 @@
+# matches that of rust-lang/rust
+style_edition = "2024"
+use_small_heuristics = "Max"
+merge_derives = false
+group_imports = "StdExternalCrate"
+imports_granularity = "Module"
+use_field_init_shorthand = true