summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/copy-prop/mutate_through_pointer.f.CopyProp.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/copy-prop/mutate_through_pointer.f.CopyProp.diff')
-rw-r--r--tests/mir-opt/copy-prop/mutate_through_pointer.f.CopyProp.diff20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/mir-opt/copy-prop/mutate_through_pointer.f.CopyProp.diff b/tests/mir-opt/copy-prop/mutate_through_pointer.f.CopyProp.diff
index 61fdd6f8c..7f6802bee 100644
--- a/tests/mir-opt/copy-prop/mutate_through_pointer.f.CopyProp.diff
+++ b/tests/mir-opt/copy-prop/mutate_through_pointer.f.CopyProp.diff
@@ -2,18 +2,18 @@
+ // MIR for `f` after CopyProp
fn f(_1: bool) -> bool {
- let mut _0: bool; // return place in scope 0 at $DIR/mutate_through_pointer.rs:+0:18: +0:22
- let mut _2: bool; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
- let mut _3: *const bool; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
- let mut _4: *mut bool; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
+ let mut _0: bool;
+ let mut _2: bool;
+ let mut _3: *const bool;
+ let mut _4: *mut bool;
bb0: {
- _2 = _1; // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
- _3 = &raw const _2; // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
- _4 = &raw mut (*_3); // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
- (*_4) = const false; // scope 0 at $DIR/mutate_through_pointer.rs:+5:9: +5:20
- _0 = _1; // scope 0 at $DIR/mutate_through_pointer.rs:+6:9: +6:16
- return; // scope 0 at $DIR/mutate_through_pointer.rs:+7:9: +7:17
+ _2 = _1;
+ _3 = &raw const _2;
+ _4 = &raw mut (*_3);
+ (*_4) = const false;
+ _0 = _1;
+ return;
}
}