diff options
| author | varkor <github@varkor.com> | 2020-09-16 00:21:21 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2020-09-26 13:34:53 +0100 |
| commit | 387e3ddded4e1e455b6ca6b59ea57938a9752ff2 (patch) | |
| tree | ef1a361d1ec87ad71d69a7b609e81264457304b1 /src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff | |
| parent | 94c789b275c2ec19c47dc3aea0fceed6a8af55b1 (diff) | |
| download | rust-387e3ddded4e1e455b6ca6b59ea57938a9752ff2.tar.gz rust-387e3ddded4e1e455b6ca6b59ea57938a9752ff2.zip | |
Bless mir-opt tests
Diffstat (limited to 'src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff')
| -rw-r--r-- | src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff b/src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff index 125d150d3d8..f01676b6da8 100644 --- a/src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff +++ b/src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff @@ -12,7 +12,7 @@ bb0: { StorageLive(_1); // scope 0 at $DIR/checked_add.rs:5:9: 5:10 - _2 = CheckedAdd(const 1_u32, const 1_u32); // scope 0 at $DIR/checked_add.rs:5:18: 5:23 -- assert(!move (_2.1: bool), "attempt to compute `{} + {}` which would overflow", const 1_u32, const 1_u32) -> bb1; // scope 0 at $DIR/checked_add.rs:5:18: 5:23 +- assert(!move (_2.1: bool), "attempt to compute `{} + {}`, which would overflow", const 1_u32, const 1_u32) -> bb1; // scope 0 at $DIR/checked_add.rs:5:18: 5:23 + _2 = const (2_u32, false); // scope 0 at $DIR/checked_add.rs:5:18: 5:23 + // ty::Const + // + ty: (u32, bool) @@ -20,7 +20,7 @@ + // mir::Constant + // + span: $DIR/checked_add.rs:5:18: 5:23 + // + literal: Const { ty: (u32, bool), val: Value(ByRef { alloc: Allocation { bytes: [2, 0, 0, 0, 0, 0, 0, 0], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [31], len: Size { raw: 8 } }, size: Size { raw: 8 }, align: Align { pow2: 2 }, mutability: Not, extra: () }, offset: Size { raw: 0 } }) } -+ assert(!const false, "attempt to compute `{} + {}` which would overflow", const 1_u32, const 1_u32) -> bb1; // scope 0 at $DIR/checked_add.rs:5:18: 5:23 ++ assert(!const false, "attempt to compute `{} + {}`, which would overflow", const 1_u32, const 1_u32) -> bb1; // scope 0 at $DIR/checked_add.rs:5:18: 5:23 } bb1: { |
