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 /tests/mir-opt/building/custom | |
| 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 'tests/mir-opt/building/custom')
| -rw-r--r-- | tests/mir-opt/building/custom/debuginfo.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mir-opt/building/custom/debuginfo.rs b/tests/mir-opt/building/custom/debuginfo.rs index 7ac3a32674a..5ab83fd4214 100644 --- a/tests/mir-opt/building/custom/debuginfo.rs +++ b/tests/mir-opt/building/custom/debuginfo.rs @@ -27,7 +27,9 @@ fn numbered(i: (u32, i32)) { } } -struct S { x: f32 } +struct S { + x: f32, +} // EMIT_MIR debuginfo.structured.built.after.mir #[custom_mir(dialect = "analysis", phase = "post-cleanup")] |
