Add a .rustfmt.toml with style edition 2024

Use the 2024 style edition for all crates and enable import sorting.
2024 already applies some smaller heuristics that look good in
compiler-builtins, I have dropped `use_small_heuristics` that was set in
`libm` because it seems to negatively affect the readibility of anything
working with numbers (e.g. collapsing multiple small `if` expressions
into a single line).
This commit is contained in:
Trevor Gross 2025-04-19 22:54:23 +00:00 committed by Trevor Gross
parent 66fa4fd265
commit 569b40209d

View file

@ -1,5 +1,4 @@
# This matches rustc
style_edition = "2024"
use_small_heuristics = "Max"
group_imports = "StdExternalCrate"
imports_granularity = "Module"