about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJannis Christopher Köhl <mail@koehl.dev>2022-10-19 15:56:58 +0200
committerJannis Christopher Köhl <mail@koehl.dev>2022-11-07 10:35:23 +0100
commit274a49132b7728fa7254fa4b5bd0575bdffa8b56 (patch)
tree7e1728e8add8640519097978cd75413c354f8af7 /src
parent931d99f61f93e244a60fb0a65198382ef9d66a75 (diff)
downloadrust-274a49132b7728fa7254fa4b5bd0575bdffa8b56.tar.gz
rust-274a49132b7728fa7254fa4b5bd0575bdffa8b56.zip
Improve documentation, plus some small changes
Diffstat (limited to 'src')
-rw-r--r--src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff3
-rw-r--r--src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff b/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff
index fbc95cea7cd..944afed8f46 100644
--- a/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff
+++ b/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff
@@ -53,8 +53,7 @@
           StorageDead(_5);                 // scope 2 at $DIR/checked.rs:+3:17: +3:18
           StorageDead(_4);                 // scope 2 at $DIR/checked.rs:+3:17: +3:18
           StorageLive(_7);                 // scope 3 at $DIR/checked.rs:+5:9: +5:10
--         _7 = const _;                    // scope 3 at $DIR/checked.rs:+5:13: +5:21
-+         _7 = const i32::MAX;             // scope 3 at $DIR/checked.rs:+5:13: +5:21
+          _7 = const _;                    // scope 3 at $DIR/checked.rs:+5:13: +5:21
           StorageLive(_8);                 // scope 4 at $DIR/checked.rs:+6:9: +6:10
           StorageLive(_9);                 // scope 4 at $DIR/checked.rs:+6:13: +6:14
 -         _9 = _7;                         // scope 4 at $DIR/checked.rs:+6:13: +6:14
diff --git a/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff b/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff
index f13ca4b62e6..d990c3b07e5 100644
--- a/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff
+++ b/src/test/mir-opt/dataflow-const-prop/previous/control_flow_simplification.hello.DataflowConstProp.diff
@@ -8,8 +8,7 @@
   
       bb0: {
           StorageLive(_1);                 // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21
--         _1 = const _;                    // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21
-+         _1 = const false;                // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21
+          _1 = const _;                    // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21
           switchInt(const false) -> [false: bb2, otherwise: bb1]; // scope 0 at $DIR/control-flow-simplification.rs:+1:8: +1:21
       }