diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-03 10:18:33 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-03 14:17:16 +1000 |
| commit | c9c80d2c5f3f07d18c90128e92771355111dff20 (patch) | |
| tree | f3d1068e328fbf49325ad01d58501386efe03956 /rustfmt.toml | |
| parent | ac242996366cd0d1ec48ff76638320969c65bed3 (diff) | |
| download | rust-c9c80d2c5f3f07d18c90128e92771355111dff20.tar.gz rust-c9c80d2c5f3f07d18c90128e92771355111dff20.zip | |
rustfmt `tests/mir-opt`.
The only non-obvious changes: - `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]` attribute to avoid reformating a table of data. - Two `.mir` files have slight changes involving line numbers. - In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to outside a function, which is the usual spot, because `tidy` complains if such a comment is indented. The commit also tweaks the comments in `rustfmt.toml`.
Diffstat (limited to 'rustfmt.toml')
| -rw-r--r-- | rustfmt.toml | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/rustfmt.toml b/rustfmt.toml index 2b502cf9bc6..998bcb98354 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -10,17 +10,13 @@ ignore = [ "/build-*/", "/vendor/", - # Some tests are not formatted, for multiple reasons: - # - some contain syntax errors that cause rustfmt to give an error - # - some UI tests are broken by different formatting - # - some require special comments in a particular position (e.g. `EMIT_MIR` comments) + # Some tests are not formatted, for various reasons. "/tests/codegen/simd-intrinsic/", # Many types like `u8x64` are better hand-formatted. - "/tests/crashes/", # Many tests contain syntax errors. - "/tests/debuginfo/", # Tests are somewhat sensitive to source code layout. - "/tests/incremental/", # Tests are somewhat sensitive to source code layout. - "/tests/mir-opt/", + "/tests/crashes/", # Many of these tests contain syntax errors. + "/tests/debuginfo/", # These tests are somewhat sensitive to source code layout. + "/tests/incremental/", # These tests are somewhat sensitive to source code layout. "/tests/pretty/", - "/tests/run-make/translation/test.rs", # Contains syntax errors. + "/tests/run-make/translation/test.rs", # This test contains syntax errors. "/tests/run-make-fulldeps/", "/tests/run-pass-valgrind/", "/tests/rustdoc/", |
