Skip to content

Commit c940913

Browse files
committed
Bless run-make.
1 parent 4a1ff5e commit c940913

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/run-make/const_fn_mir/dump.mir

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
// and is subject to change without notice. Knock yourself out.
33
fn foo() -> i32 {
44
let mut _0: i32; // return place in scope 0 at main.rs:4:19: 4:22
5+
let mut _1: (i32, bool); // in scope 0 at main.rs:5:5: 5:10
56

67
bb0: {
7-
_0 = const 11_i32; // scope 0 at main.rs:5:5: 5:10
8+
_1 = CheckedAdd(const 5_i32, const 6_i32); // scope 0 at main.rs:5:5: 5:10
9+
assert(!move (_1.1: bool), "attempt to compute `{} + {}`, which would overflow", const 5_i32, const 6_i32) -> bb1; // scope 0 at main.rs:5:5: 5:10
10+
}
11+
12+
bb1: {
13+
_0 = move (_1.0: i32); // scope 0 at main.rs:5:5: 5:10
814
return; // scope 0 at main.rs:6:2: 6:2
915
}
1016
}

0 commit comments

Comments
 (0)