diff options
author | Andy Wang <cbeuw.andy@gmail.com> | 2023-05-15 12:05:17 +0200 |
---|---|---|
committer | Andy Wang <cbeuw.andy@gmail.com> | 2023-05-15 12:05:17 +0200 |
commit | 1bd6e168b24236fdb0b848537861a4b53feb4221 (patch) | |
tree | ed0d144a54af47c11364bd1cbc4008e57ddbf23f /tests/mir-opt/building/custom/projections.rs | |
parent | c3ab4f28d37c9577dc401a08a72f82b752d32e53 (diff) | |
download | rust-1bd6e168b24236fdb0b848537861a4b53feb4221.tar.gz |
Address FIXME
Diffstat (limited to 'tests/mir-opt/building/custom/projections.rs')
-rw-r--r-- | tests/mir-opt/building/custom/projections.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/mir-opt/building/custom/projections.rs b/tests/mir-opt/building/custom/projections.rs index bd6db0e5c4c..3c155deae4b 100644 --- a/tests/mir-opt/building/custom/projections.rs +++ b/tests/mir-opt/building/custom/projections.rs @@ -21,13 +21,10 @@ fn unions(u: U) -> i32 { #[custom_mir(dialect = "analysis", phase = "post-cleanup")] fn tuples(i: (u32, i32)) -> (u32, i32) { mir!( - // FIXME(JakobDegen): This is necessary because we can't give type hints for `RET` - let temp: (u32, i32); + type RET = (u32, i32); { - temp.0 = i.0; - temp.1 = i.1; - - RET = temp; + RET.0 = i.0; + RET.1 = i.1; Return() } ) |