about summary refs log tree commit diff
path: root/rustfmt.toml
AgeCommit message (Collapse)AuthorLines
2020-03-24Move rustc-guide submodule to rustc-dev-guideSantiago Pastorino-1/+1
2020-02-10Don't rustfmt the vendor directory.Eric Huss-0/+1
2020-01-31Ignore `build` dir formattingJonas Schievink-0/+2
2019-12-24Format librustc_featureMark Rousskov-4/+0
Use #[rustfmt::skip] on the tidy-parsed macro invocations
2019-12-24Silence line length warningsMark Rousskov-41/+3
rustfmt tries its best already, we should not fight with it.
2019-12-22Remove most files from format ignore listMark Rousskov-65/+50
Also moves formatting to use edition 2018, and to be done in parallel. This brings near-linear speed ups (at least with a small amount of cores).
2019-12-21Implement rustfmt running manually using ignore crateMark Rousskov-0/+1
This replaces cargo-fmt with rustfmt with --skip-children which should allow us to format code without running into rust-lang/rustfmt#3930. This also bumps up the version of rustfmt used to a more recent one.
2019-12-21Format src/librustc_fs_util.Adam Perry-1/+0
In total it's about 100 lines of code and has received less than 5 commits in 2019 -- a good starting point.
2019-12-21Add individual crates to rustfmt ignore list.Adam Perry-0/+83
Co-Authored-By: Mark Rousskov <mark.simulacrum@gmail.com>
2019-05-03Add rustfmt tomlAleksey Kladov-0/+6
This commit adds an rustfmt.toml for using for **new** code. Old code should continut to use old style, until we put automated style checks in place. See https://internals.rust-lang.org/t/running-rustfmt-on-rust-lang-rust-and-other-rust-lang-repositories/8732/81 for the reason why we deviate from the default formatting. The TL;DR is that currently compiler uses a pretty condensed style of code, and default settings both create a huge diff and inflate the number of lines. use_small_heuristics=Max fixes that. version=Two is required for bug-fixes, which technically can't be made to the stable first version