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/match | |
| 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/match')
| -rw-r--r-- | tests/mir-opt/building/match/simple_match.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/mir-opt/building/match/simple_match.rs b/tests/mir-opt/building/match/simple_match.rs index 4f0a3046a06..61c337822c8 100644 --- a/tests/mir-opt/building/match/simple_match.rs +++ b/tests/mir-opt/building/match/simple_match.rs @@ -1,7 +1,6 @@ // skip-filecheck // Test that we don't generate unnecessarily large MIR for very simple matches - // EMIT_MIR simple_match.match_bool.built.after.mir fn match_bool(x: bool) -> usize { match x { |
