@@ -45,11 +45,11 @@ fn main() -> () {
45
45
46
46
bb0 : {
47
47
StorageLive(_1); // bb0[0] : scope 0 at $DIR/region-subtyping-basic.rs:17:9: 17:14
48
- _1 = [const Const(Value( Scalar(0x00000001)) : usize), const Const(Value( Scalar(0x00000002)) : usize), const Const(Value( Scalar(0x00000003) ): usize)]; // bb0[1]: scope 0 at $DIR/region-subtyping-basic.rs:17:17: 17:26
48
+ _1 = [const ConstValue( Scalar(0x00000001) : usize), const ConstValue( Scalar(0x00000002): usize), const ConstValue( Scalar(0x00000003): usize)]; // bb0[1]: scope 0 at $DIR/region-subtyping-basic.rs:17:17: 17:26
49
49
FakeRead(ForLet(None), _1); // bb0[2] : scope 0 at $DIR/region-subtyping-basic.rs:17:9: 17:14
50
50
StorageLive(_2); // bb0[3] : scope 1 at $DIR/region-subtyping-basic.rs:18:9: 18:10
51
51
StorageLive(_3); // bb0[4] : scope 1 at $DIR/region-subtyping-basic.rs:18:16: 18:17
52
- _3 = const Const(Value( Scalar(0x00000000) ) : usize); // bb0[5]: scope 1 at $DIR/region-subtyping-basic.rs:18:16: 18:17
52
+ _3 = const ConstValue( Scalar(0x00000000) : usize); // bb0[5]: scope 1 at $DIR/region-subtyping-basic.rs:18:16: 18:17
53
53
_4 = Len(_1); // bb0[6] : scope 1 at $DIR/region-subtyping-basic.rs:18:14: 18:18
54
54
_5 = Lt(_3, _4); // bb0[7] : scope 1 at $DIR/region-subtyping-basic.rs:18:14: 18:18
55
55
assert(move _5, "index out of bounds : the length is {} but the index is {}", move _4, _3) -> [success: bb1, unwind: bb7]; // bb0[8]: scope 1 at $DIR/region-subtyping-basic.rs:18:14: 18:18
@@ -62,15 +62,15 @@ fn main() -> () {
62
62
_6 = _2; // bb1[3] : scope 2 at $DIR/region-subtyping-basic.rs:19:13: 19:14
63
63
FakeRead(ForLet(None), _6); // bb1[4] : scope 2 at $DIR/region-subtyping-basic.rs:19:9: 19:10
64
64
StorageLive(_7); // bb1[5] : scope 3 at $DIR/region-subtyping-basic.rs:20:8: 20:12
65
- _7 = const Const(Value( Scalar(0x01) ) : bool); // bb1[6]: scope 3 at $DIR/region-subtyping-basic.rs:20:8: 20:12
65
+ _7 = const ConstValue( Scalar(0x01) : bool); // bb1[6]: scope 3 at $DIR/region-subtyping-basic.rs:20:8: 20:12
66
66
switchInt(move _7) -> [Const(Value(Scalar(0x00)) : bool): bb4, otherwise: bb2]; // bb1[7]: scope 3 at $DIR/region-subtyping-basic.rs:20:8: 20:12
67
67
}
68
68
69
69
bb2 : {
70
70
StorageLive(_8); // bb2[0] : scope 3 at $DIR/region-subtyping-basic.rs:21:9: 21:18
71
71
StorageLive(_9); // bb2[1] : scope 3 at $DIR/region-subtyping-basic.rs:21:15: 21:17
72
72
_9 = (*_6); // bb2[2] : scope 3 at $DIR/region-subtyping-basic.rs:21:15: 21:17
73
- _8 = Const(Value( Scalar(<ZST>) ) : fn(usize) -> bool {use_x})(move _9) -> [return: bb3, unwind: bb7]; // bb2[3]: scope 3 at $DIR/region-subtyping-basic.rs:21:9: 21:18
73
+ _8 = ConstValue( Scalar(<ZST>) : fn(usize) -> bool {use_x})(move _9) -> [return: bb3, unwind: bb7]; // bb2[3]: scope 3 at $DIR/region-subtyping-basic.rs:21:9: 21:18
74
74
// mir::Constant
75
75
// + span : $DIR/region-subtyping-basic.rs:21:9: 21:14
76
76
// + literal : Const { ty: fn(usize) -> bool {use_x}, val: Value(Scalar(<ZST>)) }
@@ -79,21 +79,21 @@ fn main() -> () {
79
79
bb3 : {
80
80
StorageDead(_9); // bb3[0] : scope 3 at $DIR/region-subtyping-basic.rs:21:17: 21:18
81
81
StorageDead(_8); // bb3[1] : scope 3 at $DIR/region-subtyping-basic.rs:21:18: 21:19
82
- _0 = const Const(Value( Scalar(<ZST>) ) : ()); // bb3[2]: scope 3 at $DIR/region-subtyping-basic.rs:20:13: 22:6
82
+ _0 = const ConstValue( Scalar(<ZST>) : ()); // bb3[2]: scope 3 at $DIR/region-subtyping-basic.rs:20:13: 22:6
83
83
goto -> bb6; // bb3[3] : scope 3 at $DIR/region-subtyping-basic.rs:20:5: 24:6
84
84
}
85
85
86
86
bb4 : {
87
87
StorageLive(_10); // bb4[0] : scope 3 at $DIR/region-subtyping-basic.rs:23:9: 23:18
88
- _10 = Const(Value( Scalar(<ZST>)) : fn(usize) -> bool {use_x})(const Const(Value( Scalar(0x00000016) ): usize)) -> [return: bb5, unwind: bb7]; // bb4[1]: scope 3 at $DIR/region-subtyping-basic.rs:23:9: 23:18
88
+ _10 = ConstValue( Scalar(<ZST>) : fn(usize) -> bool {use_x})(const ConstValue( Scalar(0x00000016): usize)) -> [return: bb5, unwind: bb7]; // bb4[1]: scope 3 at $DIR/region-subtyping-basic.rs:23:9: 23:18
89
89
// mir::Constant
90
90
// + span : $DIR/region-subtyping-basic.rs:23:9: 23:14
91
91
// + literal : Const { ty: fn(usize) -> bool {use_x}, val: Value(Scalar(<ZST>)) }
92
92
}
93
93
94
94
bb5 : {
95
95
StorageDead(_10); // bb5[0] : scope 3 at $DIR/region-subtyping-basic.rs:23:18: 23:19
96
- _0 = const Const(Value( Scalar(<ZST>) ) : ()); // bb5[1]: scope 3 at $DIR/region-subtyping-basic.rs:22:12: 24:6
96
+ _0 = const ConstValue( Scalar(<ZST>) : ()); // bb5[1]: scope 3 at $DIR/region-subtyping-basic.rs:22:12: 24:6
97
97
goto -> bb6; // bb5[2] : scope 3 at $DIR/region-subtyping-basic.rs:20:5: 24:6
98
98
}
99
99
0 commit comments