summaryrefslogtreecommitdiff
path: root/tests/mir-opt/building/custom/projections.rs
diff options
context:
space:
mode:
authorAndy Wang <cbeuw.andy@gmail.com>2023-05-15 12:05:17 +0200
committerAndy Wang <cbeuw.andy@gmail.com>2023-05-15 12:05:17 +0200
commit1bd6e168b24236fdb0b848537861a4b53feb4221 (patch)
treeed0d144a54af47c11364bd1cbc4008e57ddbf23f /tests/mir-opt/building/custom/projections.rs
parentc3ab4f28d37c9577dc401a08a72f82b752d32e53 (diff)
downloadrust-1bd6e168b24236fdb0b848537861a4b53feb4221.tar.gz
Address FIXME
Diffstat (limited to 'tests/mir-opt/building/custom/projections.rs')
-rw-r--r--tests/mir-opt/building/custom/projections.rs9
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()
}
)