diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-18 10:04:14 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-18 10:11:53 +0000 |
| commit | efb468866e5757d404c220c812f52f8657b2fdce (patch) | |
| tree | 0fbd9cd91c47f96bffa3ebd990a2f5abd7396ad4 /tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.diff | |
| parent | 7213eaa1c06bc75e6730fd5a7dea869dbdf4bed1 (diff) | |
| download | rust-efb468866e5757d404c220c812f52f8657b2fdce.tar.gz rust-efb468866e5757d404c220c812f52f8657b2fdce.zip | |
Use the correct place for enum variants.
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.diff')
| -rw-r--r-- | tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.diff | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.diff index 1fb65e65845..22bdc35d694 100644 --- a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.diff +++ b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.diff @@ -45,8 +45,10 @@ bb3: { StorageLive(_4); // scope 1 at $DIR/enum.rs:+2:29: +2:30 - _4 = ((_1 as V1).0: i32); // scope 1 at $DIR/enum.rs:+2:29: +2:30 - _2 = _4; // scope 3 at $DIR/enum.rs:+2:35: +2:36 +- _4 = ((_1 as V1).0: i32); // scope 1 at $DIR/enum.rs:+2:29: +2:30 +- _2 = _4; // scope 3 at $DIR/enum.rs:+2:35: +2:36 ++ _4 = const 0_i32; // scope 1 at $DIR/enum.rs:+2:29: +2:30 ++ _2 = const 0_i32; // scope 3 at $DIR/enum.rs:+2:35: +2:36 StorageDead(_4); // scope 1 at $DIR/enum.rs:+2:35: +2:36 goto -> bb4; // scope 1 at $DIR/enum.rs:+2:35: +2:36 } |
