about summary refs log tree commit diff
path: root/src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-29 14:28:58 +0000
committerbors <bors@rust-lang.org>2020-09-29 14:28:58 +0000
commit4d52dc4790cfaf3f23ff219c9a9932be2bfcd53e (patch)
treec2fc4321ad9cbfc7e4f3a8dc58e7df86850fbf90 /src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff
parent9e34b729647f44bfbbc361949b14b5bea65e4996 (diff)
parentc0b105780e2534ebe1337f529d878dab75e3636f (diff)
Auto merge of #76754 - varkor:diagnostic-cleanup-ii, r=ecstatic-morse
Clean up diagnostics for arithmetic operation errors

Plus a small tweak to a range pattern error message.
Diffstat (limited to 'src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff')
-rw-r--r--src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff b/src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff
index f14004fc25e..98f409f326a 100644
--- a/src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff
+++ b/src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff
@@ -22,9 +22,9 @@
           _4 = const 2_usize;              // scope 0 at $DIR/repeat.rs:6:26: 6:27
           _5 = const 8_usize;              // scope 0 at $DIR/repeat.rs:6:18: 6:28
 -         _6 = Lt(_4, _5);                 // scope 0 at $DIR/repeat.rs:6:18: 6:28
--         assert(move _6, "index out of bounds: the len is {} but the index is {}", move _5, _4) -> bb1; // scope 0 at $DIR/repeat.rs:6:18: 6:28
+-         assert(move _6, "index out of bounds: the length is {} but the index is {}", move _5, _4) -> bb1; // scope 0 at $DIR/repeat.rs:6:18: 6:28
 +         _6 = const true;                 // scope 0 at $DIR/repeat.rs:6:18: 6:28
-+         assert(const true, "index out of bounds: the len is {} but the index is {}", const 8_usize, const 2_usize) -> bb1; // scope 0 at $DIR/repeat.rs:6:18: 6:28
++         assert(const true, "index out of bounds: the length is {} but the index is {}", const 8_usize, const 2_usize) -> bb1; // scope 0 at $DIR/repeat.rs:6:18: 6:28
       }
   
       bb1: {