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/inline/inline_options.rs | |
| 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/inline/inline_options.rs')
| -rw-r--r-- | tests/mir-opt/inline/inline_options.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/mir-opt/inline/inline_options.rs b/tests/mir-opt/inline/inline_options.rs index 7d7c4f718bd..bd9e0e2d207 100644 --- a/tests/mir-opt/inline/inline_options.rs +++ b/tests/mir-opt/inline/inline_options.rs @@ -16,8 +16,16 @@ fn main() { // Cost is approximately 3 * 25 + 5 = 80. #[inline] -pub fn not_inlined() { g(); g(); g(); } -pub fn inlined<T>() { g(); g(); g(); } +pub fn not_inlined() { + g(); + g(); + g(); +} +pub fn inlined<T>() { + g(); + g(); + g(); +} #[inline(never)] fn g() {} |
