Bless tests.
This commit is contained in:
parent
134d819072
commit
10ec94930b
61 changed files with 234 additions and 406 deletions
|
@ -61,10 +61,7 @@
|
||||||
|
|
||||||
bb3: {
|
bb3: {
|
||||||
StorageDead(_9); // scope 0 at $DIR/combine_clone_of_primitives.rs:10:15: 10:16
|
StorageDead(_9); // scope 0 at $DIR/combine_clone_of_primitives.rs:10:15: 10:16
|
||||||
Deinit(_0); // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:10: +0:15
|
_0 = MyThing::<T> { v: move _2, i: move _5, a: move _8 }; // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:10: +0:15
|
||||||
(_0.0: T) = move _2; // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:10: +0:15
|
|
||||||
(_0.1: u64) = move _5; // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:10: +0:15
|
|
||||||
(_0.2: [f32; 3]) = move _8; // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:10: +0:15
|
|
||||||
StorageDead(_8); // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:14: +0:15
|
StorageDead(_8); // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:14: +0:15
|
||||||
StorageDead(_5); // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:14: +0:15
|
StorageDead(_5); // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:14: +0:15
|
||||||
StorageDead(_2); // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:14: +0:15
|
StorageDead(_2); // scope 0 at $DIR/combine_clone_of_primitives.rs:+0:14: +0:15
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
let mut _6: u8; // in scope 0 at $DIR/const_debuginfo.rs:+4:15: +4:16
|
let mut _6: u8; // in scope 0 at $DIR/const_debuginfo.rs:+4:15: +4:16
|
||||||
let mut _7: u8; // in scope 0 at $DIR/const_debuginfo.rs:+4:19: +4:20
|
let mut _7: u8; // in scope 0 at $DIR/const_debuginfo.rs:+4:19: +4:20
|
||||||
let mut _8: u8; // in scope 0 at $DIR/const_debuginfo.rs:+4:23: +4:24
|
let mut _8: u8; // in scope 0 at $DIR/const_debuginfo.rs:+4:23: +4:24
|
||||||
let mut _12: u32; // in scope 0 at $DIR/const_debuginfo.rs:+13:13: +13:16
|
let mut _14: u32; // in scope 0 at $DIR/const_debuginfo.rs:+13:13: +13:16
|
||||||
let mut _13: u32; // in scope 0 at $DIR/const_debuginfo.rs:+13:19: +13:22
|
let mut _15: u32; // in scope 0 at $DIR/const_debuginfo.rs:+13:19: +13:22
|
||||||
scope 1 {
|
scope 1 {
|
||||||
- debug x => _1; // in scope 1 at $DIR/const_debuginfo.rs:+1:9: +1:10
|
- debug x => _1; // in scope 1 at $DIR/const_debuginfo.rs:+1:9: +1:10
|
||||||
+ debug x => const 1_u8; // in scope 1 at $DIR/const_debuginfo.rs:+1:9: +1:10
|
+ debug x => const 1_u8; // in scope 1 at $DIR/const_debuginfo.rs:+1:9: +1:10
|
||||||
|
@ -29,21 +29,18 @@
|
||||||
scope 5 {
|
scope 5 {
|
||||||
- debug s => _9; // in scope 5 at $DIR/const_debuginfo.rs:+6:9: +6:10
|
- debug s => _9; // in scope 5 at $DIR/const_debuginfo.rs:+6:9: +6:10
|
||||||
+ debug s => const "hello, world!"; // in scope 5 at $DIR/const_debuginfo.rs:+6:9: +6:10
|
+ debug s => const "hello, world!"; // in scope 5 at $DIR/const_debuginfo.rs:+6:9: +6:10
|
||||||
let _14: bool; // in scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
let _10: (bool, bool, u32); // in scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
||||||
let _15: bool; // in scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
|
||||||
let _16: u32; // in scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
|
||||||
scope 6 {
|
scope 6 {
|
||||||
debug f => (bool, bool, u32){ .0 => _14, .1 => _15, .2 => _16, }; // in scope 6 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
debug f => _10; // in scope 6 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
||||||
let _10: std::option::Option<u16>; // in scope 6 at $DIR/const_debuginfo.rs:+10:9: +10:10
|
let _11: std::option::Option<u16>; // in scope 6 at $DIR/const_debuginfo.rs:+10:9: +10:10
|
||||||
scope 7 {
|
scope 7 {
|
||||||
debug o => _10; // in scope 7 at $DIR/const_debuginfo.rs:+10:9: +10:10
|
debug o => _11; // in scope 7 at $DIR/const_debuginfo.rs:+10:9: +10:10
|
||||||
let _17: u32; // in scope 7 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
let _12: Point; // in scope 7 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
||||||
let _18: u32; // in scope 7 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
|
||||||
scope 8 {
|
scope 8 {
|
||||||
debug p => Point{ .0 => _17, .1 => _18, }; // in scope 8 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
debug p => _12; // in scope 8 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
||||||
let _11: u32; // in scope 8 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
let _13: u32; // in scope 8 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
||||||
scope 9 {
|
scope 9 {
|
||||||
- debug a => _11; // in scope 9 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
- debug a => _13; // in scope 9 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
||||||
+ debug a => const 64_u32; // in scope 9 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
+ debug a => const 64_u32; // in scope 9 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,38 +66,24 @@
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/const_debuginfo.rs:14:13: 14:28
|
// + span: $DIR/const_debuginfo.rs:14:13: 14:28
|
||||||
// + literal: Const { ty: &str, val: Value(Slice(..)) }
|
// + literal: Const { ty: &str, val: Value(Slice(..)) }
|
||||||
StorageLive(_14); // scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
StorageLive(_10); // scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
||||||
StorageLive(_15); // scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
_10 = (const true, const false, const 123_u32); // scope 5 at $DIR/const_debuginfo.rs:+8:13: +8:34
|
||||||
StorageLive(_16); // scope 5 at $DIR/const_debuginfo.rs:+8:9: +8:10
|
StorageLive(_11); // scope 6 at $DIR/const_debuginfo.rs:+10:9: +10:10
|
||||||
Deinit(_14); // scope 5 at $DIR/const_debuginfo.rs:+8:13: +8:34
|
_11 = Option::<u16>::Some(const 99_u16); // scope 6 at $DIR/const_debuginfo.rs:+10:13: +10:24
|
||||||
Deinit(_15); // scope 5 at $DIR/const_debuginfo.rs:+8:13: +8:34
|
StorageLive(_12); // scope 7 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
||||||
Deinit(_16); // scope 5 at $DIR/const_debuginfo.rs:+8:13: +8:34
|
_12 = Point { x: const 32_u32, y: const 32_u32 }; // scope 7 at $DIR/const_debuginfo.rs:+12:13: +12:35
|
||||||
_14 = const true; // scope 5 at $DIR/const_debuginfo.rs:+8:13: +8:34
|
StorageLive(_13); // scope 8 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
||||||
_15 = const false; // scope 5 at $DIR/const_debuginfo.rs:+8:13: +8:34
|
StorageLive(_14); // scope 8 at $DIR/const_debuginfo.rs:+13:13: +13:16
|
||||||
_16 = const 123_u32; // scope 5 at $DIR/const_debuginfo.rs:+8:13: +8:34
|
_14 = const 32_u32; // scope 8 at $DIR/const_debuginfo.rs:+13:13: +13:16
|
||||||
StorageLive(_10); // scope 6 at $DIR/const_debuginfo.rs:+10:9: +10:10
|
StorageLive(_15); // scope 8 at $DIR/const_debuginfo.rs:+13:19: +13:22
|
||||||
_10 = Option::<u16>::Some(const 99_u16); // scope 6 at $DIR/const_debuginfo.rs:+10:13: +10:24
|
_15 = const 32_u32; // scope 8 at $DIR/const_debuginfo.rs:+13:19: +13:22
|
||||||
StorageLive(_17); // scope 7 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
_13 = const 64_u32; // scope 8 at $DIR/const_debuginfo.rs:+13:13: +13:22
|
||||||
StorageLive(_18); // scope 7 at $DIR/const_debuginfo.rs:+12:9: +12:10
|
StorageDead(_15); // scope 8 at $DIR/const_debuginfo.rs:+13:21: +13:22
|
||||||
Deinit(_17); // scope 7 at $DIR/const_debuginfo.rs:+12:13: +12:35
|
StorageDead(_14); // scope 8 at $DIR/const_debuginfo.rs:+13:21: +13:22
|
||||||
Deinit(_18); // scope 7 at $DIR/const_debuginfo.rs:+12:13: +12:35
|
StorageDead(_13); // scope 8 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
||||||
_17 = const 32_u32; // scope 7 at $DIR/const_debuginfo.rs:+12:13: +12:35
|
StorageDead(_12); // scope 7 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
||||||
_18 = const 32_u32; // scope 7 at $DIR/const_debuginfo.rs:+12:13: +12:35
|
StorageDead(_11); // scope 6 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
||||||
StorageLive(_11); // scope 8 at $DIR/const_debuginfo.rs:+13:9: +13:10
|
StorageDead(_10); // scope 5 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
||||||
StorageLive(_12); // scope 8 at $DIR/const_debuginfo.rs:+13:13: +13:16
|
|
||||||
_12 = const 32_u32; // scope 8 at $DIR/const_debuginfo.rs:+13:13: +13:16
|
|
||||||
StorageLive(_13); // scope 8 at $DIR/const_debuginfo.rs:+13:19: +13:22
|
|
||||||
_13 = const 32_u32; // scope 8 at $DIR/const_debuginfo.rs:+13:19: +13:22
|
|
||||||
_11 = const 64_u32; // scope 8 at $DIR/const_debuginfo.rs:+13:13: +13:22
|
|
||||||
StorageDead(_13); // scope 8 at $DIR/const_debuginfo.rs:+13:21: +13:22
|
|
||||||
StorageDead(_12); // scope 8 at $DIR/const_debuginfo.rs:+13:21: +13:22
|
|
||||||
StorageDead(_11); // scope 8 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
|
||||||
StorageDead(_17); // scope 7 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
|
||||||
StorageDead(_18); // scope 7 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
|
||||||
StorageDead(_10); // scope 6 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
|
||||||
StorageDead(_14); // scope 5 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
|
||||||
StorageDead(_15); // scope 5 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
|
||||||
StorageDead(_16); // scope 5 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
|
||||||
StorageDead(_9); // scope 4 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
StorageDead(_9); // scope 4 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
||||||
StorageDead(_4); // scope 3 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
StorageDead(_4); // scope 3 at $DIR/const_debuginfo.rs:+14:1: +14:2
|
||||||
return; // scope 0 at $DIR/const_debuginfo.rs:+14:2: +14:2
|
return; // scope 0 at $DIR/const_debuginfo.rs:+14:2: +14:2
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/const_goto_storage.rs:+1:9: +1:12
|
StorageLive(_1); // scope 0 at $DIR/const_goto_storage.rs:+1:9: +1:12
|
||||||
- StorageLive(_2); // scope 0 at $DIR/const_goto_storage.rs:+1:21: +1:23
|
- StorageLive(_2); // scope 0 at $DIR/const_goto_storage.rs:+1:21: +1:23
|
||||||
- Deinit(_2); // scope 0 at $DIR/const_goto_storage.rs:+1:21: +1:23
|
- _2 = (); // scope 0 at $DIR/const_goto_storage.rs:+1:21: +1:23
|
||||||
- StorageLive(_3); // scope 0 at $DIR/const_goto_storage.rs:+2:15: +6:10
|
- StorageLive(_3); // scope 0 at $DIR/const_goto_storage.rs:+2:15: +6:10
|
||||||
- StorageLive(_4); // scope 0 at $DIR/const_goto_storage.rs:+2:18: +2:76
|
- StorageLive(_4); // scope 0 at $DIR/const_goto_storage.rs:+2:18: +2:76
|
||||||
- StorageLive(_5); // scope 0 at $DIR/const_goto_storage.rs:+2:21: +2:52
|
- StorageLive(_5); // scope 0 at $DIR/const_goto_storage.rs:+2:21: +2:52
|
||||||
|
|
|
@ -14,10 +14,7 @@
|
||||||
StorageLive(_1); // scope 0 at $DIR/aggregate.rs:+1:9: +1:10
|
StorageLive(_1); // scope 0 at $DIR/aggregate.rs:+1:9: +1:10
|
||||||
StorageLive(_2); // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
StorageLive(_2); // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
||||||
StorageLive(_3); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
StorageLive(_3); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
||||||
Deinit(_3); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
_3 = (const 0_i32, const 1_i32, const 2_i32); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
||||||
(_3.0: i32) = const 0_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
|
||||||
(_3.1: i32) = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
|
||||||
(_3.2: i32) = const 2_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
|
||||||
- _2 = (_3.1: i32); // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
- _2 = (_3.1: i32); // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
||||||
- _1 = Add(move _2, const 0_i32); // scope 0 at $DIR/aggregate.rs:+1:13: +1:28
|
- _1 = Add(move _2, const 0_i32); // scope 0 at $DIR/aggregate.rs:+1:13: +1:28
|
||||||
+ _2 = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
+ _2 = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
||||||
|
|
|
@ -13,10 +13,7 @@ fn main() -> () {
|
||||||
StorageLive(_1); // scope 0 at $DIR/aggregate.rs:+1:9: +1:10
|
StorageLive(_1); // scope 0 at $DIR/aggregate.rs:+1:9: +1:10
|
||||||
StorageLive(_2); // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
StorageLive(_2); // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
||||||
StorageLive(_3); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
StorageLive(_3); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
||||||
Deinit(_3); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
_3 = (const 0_i32, const 1_i32, const 2_i32); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
||||||
(_3.0: i32) = const 0_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
|
||||||
(_3.1: i32) = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
|
||||||
(_3.2: i32) = const 2_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:22
|
|
||||||
_2 = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
_2 = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:24
|
||||||
_1 = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:28
|
_1 = const 1_i32; // scope 0 at $DIR/aggregate.rs:+1:13: +1:28
|
||||||
StorageDead(_2); // scope 0 at $DIR/aggregate.rs:+1:27: +1:28
|
StorageDead(_2); // scope 0 at $DIR/aggregate.rs:+1:27: +1:28
|
||||||
|
|
|
@ -32,16 +32,14 @@
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/invalid_constant.rs:+6:9: +6:22
|
StorageLive(_1); // scope 0 at $DIR/invalid_constant.rs:+6:9: +6:22
|
||||||
StorageLive(_2); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
StorageLive(_2); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
||||||
Deinit(_2); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
_2 = InvalidChar { int: const 1114113_u32 }; // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
||||||
(_2.0: u32) = const 1114113_u32; // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
|
||||||
- _1 = (_2.1: char); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:67
|
- _1 = (_2.1: char); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:67
|
||||||
+ _1 = const {transmute(0x00110001): char}; // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:67
|
+ _1 = const {transmute(0x00110001): char}; // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:67
|
||||||
StorageDead(_2); // scope 0 at $DIR/invalid_constant.rs:+6:69: +6:70
|
StorageDead(_2); // scope 0 at $DIR/invalid_constant.rs:+6:69: +6:70
|
||||||
StorageLive(_3); // scope 1 at $DIR/invalid_constant.rs:+13:9: +13:21
|
StorageLive(_3); // scope 1 at $DIR/invalid_constant.rs:+13:9: +13:21
|
||||||
StorageLive(_4); // scope 1 at $DIR/invalid_constant.rs:+13:25: +13:59
|
StorageLive(_4); // scope 1 at $DIR/invalid_constant.rs:+13:25: +13:59
|
||||||
StorageLive(_5); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
StorageLive(_5); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
||||||
Deinit(_5); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
_5 = InvalidTag { int: const 4_u32 }; // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
||||||
(_5.0: u32) = const 4_u32; // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
|
||||||
- _4 = (_5.1: E); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:57
|
- _4 = (_5.1: E); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:57
|
||||||
- _3 = [move _4]; // scope 1 at $DIR/invalid_constant.rs:+13:24: +13:60
|
- _3 = [move _4]; // scope 1 at $DIR/invalid_constant.rs:+13:24: +13:60
|
||||||
+ _4 = const Scalar(0x00000004): E; // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:57
|
+ _4 = const Scalar(0x00000004): E; // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:57
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
let mut _0: (); // return place in scope 0 at $DIR/issue_66971.rs:+0:11: +0:11
|
let mut _0: (); // return place in scope 0 at $DIR/issue_66971.rs:+0:11: +0:11
|
||||||
let _1: (); // in scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
|
let _1: (); // in scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
|
||||||
let mut _2: ((), u8, u8); // in scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
let mut _2: ((), u8, u8); // in scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
||||||
|
let mut _3: (); // in scope 0 at $DIR/issue_66971.rs:+1:13: +1:15
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
|
StorageLive(_1); // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
|
||||||
StorageLive(_2); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
StorageLive(_2); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
||||||
Deinit(_2); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
StorageLive(_3); // scope 0 at $DIR/issue_66971.rs:+1:13: +1:15
|
||||||
(_2.1: u8) = const 0_u8; // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
_2 = (move _3, const 0_u8, const 0_u8); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
||||||
(_2.2: u8) = const 0_u8; // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
|
StorageDead(_3); // scope 0 at $DIR/issue_66971.rs:+1:21: +1:22
|
||||||
_1 = encode(move _2) -> bb1; // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
|
_1 = encode(move _2) -> bb1; // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/issue_66971.rs:17:5: 17:11
|
// + span: $DIR/issue_66971.rs:17:5: 17:11
|
||||||
|
|
|
@ -11,12 +11,9 @@
|
||||||
StorageLive(_1); // scope 0 at $DIR/issue_67019.rs:+1:5: +1:20
|
StorageLive(_1); // scope 0 at $DIR/issue_67019.rs:+1:5: +1:20
|
||||||
StorageLive(_2); // scope 0 at $DIR/issue_67019.rs:+1:10: +1:19
|
StorageLive(_2); // scope 0 at $DIR/issue_67019.rs:+1:10: +1:19
|
||||||
StorageLive(_3); // scope 0 at $DIR/issue_67019.rs:+1:11: +1:17
|
StorageLive(_3); // scope 0 at $DIR/issue_67019.rs:+1:11: +1:17
|
||||||
Deinit(_3); // scope 0 at $DIR/issue_67019.rs:+1:11: +1:17
|
- _3 = (const 1_u8, const 2_u8); // scope 0 at $DIR/issue_67019.rs:+1:11: +1:17
|
||||||
(_3.0: u8) = const 1_u8; // scope 0 at $DIR/issue_67019.rs:+1:11: +1:17
|
+ _3 = const (1_u8, 2_u8); // scope 0 at $DIR/issue_67019.rs:+1:11: +1:17
|
||||||
(_3.1: u8) = const 2_u8; // scope 0 at $DIR/issue_67019.rs:+1:11: +1:17
|
_2 = (move _3,); // scope 0 at $DIR/issue_67019.rs:+1:10: +1:19
|
||||||
Deinit(_2); // scope 0 at $DIR/issue_67019.rs:+1:10: +1:19
|
|
||||||
- (_2.0: (u8, u8)) = move _3; // scope 0 at $DIR/issue_67019.rs:+1:10: +1:19
|
|
||||||
+ (_2.0: (u8, u8)) = const (1_u8, 2_u8); // scope 0 at $DIR/issue_67019.rs:+1:10: +1:19
|
|
||||||
StorageDead(_3); // scope 0 at $DIR/issue_67019.rs:+1:18: +1:19
|
StorageDead(_3); // scope 0 at $DIR/issue_67019.rs:+1:18: +1:19
|
||||||
_1 = test(move _2) -> bb1; // scope 0 at $DIR/issue_67019.rs:+1:5: +1:20
|
_1 = test(move _2) -> bb1; // scope 0 at $DIR/issue_67019.rs:+1:5: +1:20
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
|
|
|
@ -14,9 +14,8 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/mutable_variable_aggregate.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/mutable_variable_aggregate.rs:+1:9: +1:14
|
||||||
Deinit(_1); // scope 0 at $DIR/mutable_variable_aggregate.rs:+1:17: +1:25
|
- _1 = (const 42_i32, const 43_i32); // scope 0 at $DIR/mutable_variable_aggregate.rs:+1:17: +1:25
|
||||||
(_1.0: i32) = const 42_i32; // scope 0 at $DIR/mutable_variable_aggregate.rs:+1:17: +1:25
|
+ _1 = const (42_i32, 43_i32); // scope 0 at $DIR/mutable_variable_aggregate.rs:+1:17: +1:25
|
||||||
(_1.1: i32) = const 43_i32; // scope 0 at $DIR/mutable_variable_aggregate.rs:+1:17: +1:25
|
|
||||||
(_1.1: i32) = const 99_i32; // scope 1 at $DIR/mutable_variable_aggregate.rs:+2:5: +2:13
|
(_1.1: i32) = const 99_i32; // scope 1 at $DIR/mutable_variable_aggregate.rs:+2:5: +2:13
|
||||||
StorageLive(_2); // scope 1 at $DIR/mutable_variable_aggregate.rs:+3:9: +3:10
|
StorageLive(_2); // scope 1 at $DIR/mutable_variable_aggregate.rs:+3:9: +3:10
|
||||||
- _2 = _1; // scope 1 at $DIR/mutable_variable_aggregate.rs:+3:13: +3:14
|
- _2 = _1; // scope 1 at $DIR/mutable_variable_aggregate.rs:+3:13: +3:14
|
||||||
|
|
|
@ -18,9 +18,7 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+1:9: +1:14
|
||||||
Deinit(_1); // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+1:17: +1:25
|
_1 = (const 42_i32, const 43_i32); // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+1:17: +1:25
|
||||||
(_1.0: i32) = const 42_i32; // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+1:17: +1:25
|
|
||||||
(_1.1: i32) = const 43_i32; // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+1:17: +1:25
|
|
||||||
StorageLive(_2); // scope 1 at $DIR/mutable_variable_aggregate_mut_ref.rs:+2:9: +2:10
|
StorageLive(_2); // scope 1 at $DIR/mutable_variable_aggregate_mut_ref.rs:+2:9: +2:10
|
||||||
_2 = &mut _1; // scope 1 at $DIR/mutable_variable_aggregate_mut_ref.rs:+2:13: +2:19
|
_2 = &mut _1; // scope 1 at $DIR/mutable_variable_aggregate_mut_ref.rs:+2:13: +2:19
|
||||||
((*_2).1: i32) = const 99_i32; // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:+3:5: +3:13
|
((*_2).1: i32) = const 99_i32; // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:+3:5: +3:13
|
||||||
|
|
|
@ -4,19 +4,18 @@
|
||||||
fn main() -> () {
|
fn main() -> () {
|
||||||
let mut _0: (); // return place in scope 0 at $DIR/mutable_variable_unprop_assign.rs:+0:11: +0:11
|
let mut _0: (); // return place in scope 0 at $DIR/mutable_variable_unprop_assign.rs:+0:11: +0:11
|
||||||
let _1: i32; // in scope 0 at $DIR/mutable_variable_unprop_assign.rs:+1:9: +1:10
|
let _1: i32; // in scope 0 at $DIR/mutable_variable_unprop_assign.rs:+1:9: +1:10
|
||||||
let mut _2: i32; // in scope 0 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
let mut _3: i32; // in scope 0 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
||||||
scope 1 {
|
scope 1 {
|
||||||
debug a => _1; // in scope 1 at $DIR/mutable_variable_unprop_assign.rs:+1:9: +1:10
|
debug a => _1; // in scope 1 at $DIR/mutable_variable_unprop_assign.rs:+1:9: +1:10
|
||||||
let mut _5: i32; // in scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
let mut _2: (i32, i32); // in scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
||||||
let mut _6: i32; // in scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
|
||||||
scope 2 {
|
scope 2 {
|
||||||
debug x => (i32, i32){ .0 => _5, .1 => _6, }; // in scope 2 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
debug x => _2; // in scope 2 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
||||||
let _3: i32; // in scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:9: +4:10
|
let _4: i32; // in scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:9: +4:10
|
||||||
scope 3 {
|
scope 3 {
|
||||||
debug y => _3; // in scope 3 at $DIR/mutable_variable_unprop_assign.rs:+4:9: +4:10
|
debug y => _4; // in scope 3 at $DIR/mutable_variable_unprop_assign.rs:+4:9: +4:10
|
||||||
let _4: i32; // in scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10
|
let _5: i32; // in scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10
|
||||||
scope 4 {
|
scope 4 {
|
||||||
debug z => _4; // in scope 4 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10
|
debug z => _5; // in scope 4 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,25 +30,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
bb1: {
|
bb1: {
|
||||||
StorageLive(_5); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
StorageLive(_2); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
||||||
StorageLive(_6); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:9: +2:14
|
- _2 = (const 1_i32, const 2_i32); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:29: +2:35
|
||||||
Deinit(_5); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:29: +2:35
|
+ _2 = const (1_i32, 2_i32); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:29: +2:35
|
||||||
Deinit(_6); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:29: +2:35
|
StorageLive(_3); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
||||||
_5 = const 1_i32; // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:29: +2:35
|
_3 = _1; // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
||||||
_6 = const 2_i32; // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+2:29: +2:35
|
(_2.1: i32) = move _3; // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:5: +3:12
|
||||||
StorageLive(_2); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
StorageDead(_3); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
||||||
_2 = _1; // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
StorageLive(_4); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:9: +4:10
|
||||||
_6 = move _2; // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:5: +3:12
|
_4 = (_2.1: i32); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:13: +4:16
|
||||||
StorageDead(_2); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+3:11: +3:12
|
StorageLive(_5); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10
|
||||||
StorageLive(_3); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:9: +4:10
|
- _5 = (_2.0: i32); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16
|
||||||
_3 = _6; // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+4:13: +4:16
|
+ _5 = const 1_i32; // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16
|
||||||
StorageLive(_4); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10
|
StorageDead(_5); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
||||||
- _4 = _5; // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16
|
StorageDead(_4); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
||||||
+ _4 = const 1_i32; // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16
|
StorageDead(_2); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
||||||
StorageDead(_4); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
|
||||||
StorageDead(_3); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
|
||||||
StorageDead(_5); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
|
||||||
StorageDead(_6); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
|
||||||
StorageDead(_1); // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
StorageDead(_1); // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
|
||||||
return; // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+6:2: +6:2
|
return; // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+6:2: +6:2
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
let _5: usize; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:32: +2:33
|
let _5: usize; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:32: +2:33
|
||||||
let mut _6: usize; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
let mut _6: usize; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
||||||
let mut _7: bool; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
let mut _7: bool; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
||||||
let mut _9: u32; // in scope 0 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
let mut _9: Point; // in scope 0 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
||||||
scope 1 {
|
scope 1 {
|
||||||
debug x => _1; // in scope 1 at $DIR/optimizes_into_variable.rs:+1:9: +1:10
|
debug x => _1; // in scope 1 at $DIR/optimizes_into_variable.rs:+1:9: +1:10
|
||||||
let _3: i32; // in scope 1 at $DIR/optimizes_into_variable.rs:+2:9: +2:10
|
let _3: i32; // in scope 1 at $DIR/optimizes_into_variable.rs:+2:9: +2:10
|
||||||
|
@ -52,9 +52,8 @@
|
||||||
StorageDead(_4); // scope 1 at $DIR/optimizes_into_variable.rs:+2:34: +2:35
|
StorageDead(_4); // scope 1 at $DIR/optimizes_into_variable.rs:+2:34: +2:35
|
||||||
StorageLive(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+3:9: +3:10
|
StorageLive(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+3:9: +3:10
|
||||||
StorageLive(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
StorageLive(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
||||||
Deinit(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
_9 = Point { x: const 12_u32, y: const 42_u32 }; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
||||||
_9 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
- _8 = (_9.1: u32); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
|
||||||
- _8 = _9; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
|
|
||||||
+ _8 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
|
+ _8 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
|
||||||
StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
|
StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
|
||||||
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
|
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
let mut _6: usize; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
let mut _6: usize; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
||||||
let mut _7: bool; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
let mut _7: bool; // in scope 0 at $DIR/optimizes_into_variable.rs:+2:13: +2:34
|
||||||
let mut _9: Point; // in scope 0 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
let mut _9: Point; // in scope 0 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
||||||
+ let mut _10: u32; // in scope 0 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
+ let mut _11: u32; // in scope 0 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
scope 1 {
|
scope 1 {
|
||||||
debug x => _1; // in scope 1 at $DIR/optimizes_into_variable.rs:+1:9: +1:10
|
debug x => _1; // in scope 1 at $DIR/optimizes_into_variable.rs:+1:9: +1:10
|
||||||
let _3: i32; // in scope 1 at $DIR/optimizes_into_variable.rs:+2:9: +2:10
|
let _3: i32; // in scope 1 at $DIR/optimizes_into_variable.rs:+2:9: +2:10
|
||||||
|
@ -47,21 +45,10 @@
|
||||||
StorageDead(_5); // scope 1 at $DIR/optimizes_into_variable.rs:+2:34: +2:35
|
StorageDead(_5); // scope 1 at $DIR/optimizes_into_variable.rs:+2:34: +2:35
|
||||||
StorageDead(_4); // scope 1 at $DIR/optimizes_into_variable.rs:+2:34: +2:35
|
StorageDead(_4); // scope 1 at $DIR/optimizes_into_variable.rs:+2:34: +2:35
|
||||||
StorageLive(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+3:9: +3:10
|
StorageLive(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+3:9: +3:10
|
||||||
- StorageLive(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
StorageLive(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
||||||
- Deinit(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
_9 = Point { x: const 12_u32, y: const 42_u32 }; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
||||||
- (_9.0: u32) = const 12_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
_8 = (_9.1: u32); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
|
||||||
- (_9.1: u32) = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
|
||||||
- _8 = (_9.1: u32); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
|
|
||||||
- StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
|
|
||||||
+ StorageLive(_10); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
+ StorageLive(_11); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
+ Deinit(_10); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
+ Deinit(_11); // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
+ _10 = const 12_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
+ _11 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:36
|
|
||||||
+ _8 = _11; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
|
|
||||||
+ StorageDead(_10); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
|
|
||||||
+ StorageDead(_11); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
|
|
||||||
nop; // scope 0 at $DIR/optimizes_into_variable.rs:+0:11: +4:2
|
nop; // scope 0 at $DIR/optimizes_into_variable.rs:+0:11: +4:2
|
||||||
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
|
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
|
||||||
StorageDead(_3); // scope 1 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
|
StorageDead(_3); // scope 1 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
|
||||||
|
|
|
@ -11,24 +11,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/tuple_literal_propagation.rs:+1:9: +1:10
|
- _1 = (const 1_u32, const 2_u32); // scope 0 at $DIR/tuple_literal_propagation.rs:+1:13: +1:19
|
||||||
Deinit(_1); // scope 0 at $DIR/tuple_literal_propagation.rs:+1:13: +1:19
|
+ _1 = const (1_u32, 2_u32); // scope 0 at $DIR/tuple_literal_propagation.rs:+1:13: +1:19
|
||||||
(_1.0: u32) = const 1_u32; // scope 0 at $DIR/tuple_literal_propagation.rs:+1:13: +1:19
|
|
||||||
(_1.1: u32) = const 2_u32; // scope 0 at $DIR/tuple_literal_propagation.rs:+1:13: +1:19
|
|
||||||
StorageLive(_2); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:5: +3:15
|
StorageLive(_2); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:5: +3:15
|
||||||
StorageLive(_3); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:13: +3:14
|
_2 = consume(_1) -> bb1; // scope 1 at $DIR/tuple_literal_propagation.rs:+3:5: +3:15
|
||||||
- _3 = _1; // scope 1 at $DIR/tuple_literal_propagation.rs:+3:13: +3:14
|
|
||||||
+ _3 = const (1_u32, 2_u32); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:13: +3:14
|
|
||||||
_2 = consume(move _3) -> bb1; // scope 1 at $DIR/tuple_literal_propagation.rs:+3:5: +3:15
|
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/tuple_literal_propagation.rs:5:5: 5:12
|
// + span: $DIR/tuple_literal_propagation.rs:5:5: 5:12
|
||||||
// + literal: Const { ty: fn((u32, u32)) {consume}, val: Value(<ZST>) }
|
// + literal: Const { ty: fn((u32, u32)) {consume}, val: Value(<ZST>) }
|
||||||
}
|
}
|
||||||
|
|
||||||
bb1: {
|
bb1: {
|
||||||
StorageDead(_3); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:14: +3:15
|
|
||||||
StorageDead(_2); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:15: +3:16
|
StorageDead(_2); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:15: +3:16
|
||||||
StorageDead(_1); // scope 0 at $DIR/tuple_literal_propagation.rs:+4:1: +4:2
|
|
||||||
return; // scope 0 at $DIR/tuple_literal_propagation.rs:+4:2: +4:2
|
return; // scope 0 at $DIR/tuple_literal_propagation.rs:+4:2: +4:2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+1:9: +1:14
|
||||||
Deinit(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
- _1 = (const 1_i32,); // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
||||||
(_1.0: i32) = const 1_i32; // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
+ _1 = const (1_i32,); // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
||||||
StorageLive(_2); // scope 1 at $DIR/const_prop_miscompile.rs:+2:5: +4:6
|
StorageLive(_2); // scope 1 at $DIR/const_prop_miscompile.rs:+2:5: +4:6
|
||||||
StorageLive(_3); // scope 2 at $DIR/const_prop_miscompile.rs:+3:10: +3:22
|
StorageLive(_3); // scope 2 at $DIR/const_prop_miscompile.rs:+3:10: +3:22
|
||||||
_3 = &raw mut (_1.0: i32); // scope 2 at $DIR/const_prop_miscompile.rs:+3:10: +3:22
|
_3 = &raw mut (_1.0: i32); // scope 2 at $DIR/const_prop_miscompile.rs:+3:10: +3:22
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+1:9: +1:14
|
||||||
Deinit(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
- _1 = (const 1_i32,); // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
||||||
(_1.0: i32) = const 1_i32; // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
+ _1 = const (1_i32,); // scope 0 at $DIR/const_prop_miscompile.rs:+1:17: +1:21
|
||||||
StorageLive(_2); // scope 1 at $DIR/const_prop_miscompile.rs:+2:6: +2:14
|
StorageLive(_2); // scope 1 at $DIR/const_prop_miscompile.rs:+2:6: +2:14
|
||||||
_2 = &mut (_1.0: i32); // scope 1 at $DIR/const_prop_miscompile.rs:+2:6: +2:14
|
_2 = &mut (_1.0: i32); // scope 1 at $DIR/const_prop_miscompile.rs:+2:6: +2:14
|
||||||
(*_2) = const 5_i32; // scope 1 at $DIR/const_prop_miscompile.rs:+2:5: +2:18
|
(*_2) = const 5_i32; // scope 1 at $DIR/const_prop_miscompile.rs:+2:5: +2:18
|
||||||
|
|
|
@ -57,9 +57,7 @@
|
||||||
|
|
||||||
bb1: {
|
bb1: {
|
||||||
StorageDead(_6); // scope 2 at $DIR/issue_107511.rs:+6:23: +6:24
|
StorageDead(_6); // scope 2 at $DIR/issue_107511.rs:+6:23: +6:24
|
||||||
Deinit(_4); // scope 2 at $DIR/issue_107511.rs:+6:14: +6:24
|
_4 = std::ops::Range::<usize> { start: const 0_usize, end: move _5 }; // scope 2 at $DIR/issue_107511.rs:+6:14: +6:24
|
||||||
(_4.0: usize) = const 0_usize; // scope 2 at $DIR/issue_107511.rs:+6:14: +6:24
|
|
||||||
(_4.1: usize) = move _5; // scope 2 at $DIR/issue_107511.rs:+6:14: +6:24
|
|
||||||
StorageDead(_5); // scope 2 at $DIR/issue_107511.rs:+6:23: +6:24
|
StorageDead(_5); // scope 2 at $DIR/issue_107511.rs:+6:23: +6:24
|
||||||
_3 = <std::ops::Range<usize> as IntoIterator>::into_iter(move _4) -> bb2; // scope 2 at $DIR/issue_107511.rs:+6:14: +6:24
|
_3 = <std::ops::Range<usize> as IntoIterator>::into_iter(move _4) -> bb2; // scope 2 at $DIR/issue_107511.rs:+6:14: +6:24
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
|
|
|
@ -17,8 +17,7 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/repr_transparent.rs:+1:9: +1:10
|
StorageLive(_1); // scope 0 at $DIR/repr_transparent.rs:+1:9: +1:10
|
||||||
Deinit(_1); // scope 0 at $DIR/repr_transparent.rs:+1:13: +1:19
|
_1 = I32(const 0_i32); // scope 0 at $DIR/repr_transparent.rs:+1:13: +1:19
|
||||||
(_1.0: i32) = const 0_i32; // scope 0 at $DIR/repr_transparent.rs:+1:13: +1:19
|
|
||||||
StorageLive(_2); // scope 1 at $DIR/repr_transparent.rs:+2:9: +2:10
|
StorageLive(_2); // scope 1 at $DIR/repr_transparent.rs:+2:9: +2:10
|
||||||
StorageLive(_3); // scope 1 at $DIR/repr_transparent.rs:+2:17: +2:26
|
StorageLive(_3); // scope 1 at $DIR/repr_transparent.rs:+2:17: +2:26
|
||||||
StorageLive(_4); // scope 1 at $DIR/repr_transparent.rs:+2:17: +2:20
|
StorageLive(_4); // scope 1 at $DIR/repr_transparent.rs:+2:17: +2:20
|
||||||
|
@ -31,9 +30,8 @@
|
||||||
+ _3 = const 0_i32; // scope 1 at $DIR/repr_transparent.rs:+2:17: +2:26
|
+ _3 = const 0_i32; // scope 1 at $DIR/repr_transparent.rs:+2:17: +2:26
|
||||||
StorageDead(_5); // scope 1 at $DIR/repr_transparent.rs:+2:25: +2:26
|
StorageDead(_5); // scope 1 at $DIR/repr_transparent.rs:+2:25: +2:26
|
||||||
StorageDead(_4); // scope 1 at $DIR/repr_transparent.rs:+2:25: +2:26
|
StorageDead(_4); // scope 1 at $DIR/repr_transparent.rs:+2:25: +2:26
|
||||||
Deinit(_2); // scope 1 at $DIR/repr_transparent.rs:+2:13: +2:27
|
- _2 = I32(move _3); // scope 1 at $DIR/repr_transparent.rs:+2:13: +2:27
|
||||||
- (_2.0: i32) = move _3; // scope 1 at $DIR/repr_transparent.rs:+2:13: +2:27
|
+ _2 = I32(const 0_i32); // scope 1 at $DIR/repr_transparent.rs:+2:13: +2:27
|
||||||
+ (_2.0: i32) = const 0_i32; // scope 1 at $DIR/repr_transparent.rs:+2:13: +2:27
|
|
||||||
StorageDead(_3); // scope 1 at $DIR/repr_transparent.rs:+2:26: +2:27
|
StorageDead(_3); // scope 1 at $DIR/repr_transparent.rs:+2:26: +2:27
|
||||||
_0 = const (); // scope 0 at $DIR/repr_transparent.rs:+0:11: +3:2
|
_0 = const (); // scope 0 at $DIR/repr_transparent.rs:+0:11: +3:2
|
||||||
StorageDead(_2); // scope 1 at $DIR/repr_transparent.rs:+3:1: +3:2
|
StorageDead(_2); // scope 1 at $DIR/repr_transparent.rs:+3:1: +3:2
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/sibling_ptr.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/sibling_ptr.rs:+1:9: +1:14
|
||||||
Deinit(_1); // scope 0 at $DIR/sibling_ptr.rs:+1:27: +1:33
|
_1 = (const 0_u8, const 0_u8); // scope 0 at $DIR/sibling_ptr.rs:+1:27: +1:33
|
||||||
(_1.0: u8) = const 0_u8; // scope 0 at $DIR/sibling_ptr.rs:+1:27: +1:33
|
|
||||||
(_1.1: u8) = const 0_u8; // scope 0 at $DIR/sibling_ptr.rs:+1:27: +1:33
|
|
||||||
StorageLive(_2); // scope 1 at $DIR/sibling_ptr.rs:+2:5: +5:6
|
StorageLive(_2); // scope 1 at $DIR/sibling_ptr.rs:+2:5: +5:6
|
||||||
StorageLive(_3); // scope 2 at $DIR/sibling_ptr.rs:+3:13: +3:14
|
StorageLive(_3); // scope 2 at $DIR/sibling_ptr.rs:+3:13: +3:14
|
||||||
_3 = &raw mut (_1.0: u8); // scope 2 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
_3 = &raw mut (_1.0: u8); // scope 2 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||||
|
|
|
@ -21,8 +21,7 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/struct.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/struct.rs:+1:9: +1:14
|
||||||
Deinit(_1); // scope 0 at $DIR/struct.rs:+1:17: +1:21
|
_1 = S(const 1_i32); // scope 0 at $DIR/struct.rs:+1:17: +1:21
|
||||||
(_1.0: i32) = const 1_i32; // scope 0 at $DIR/struct.rs:+1:17: +1:21
|
|
||||||
StorageLive(_2); // scope 1 at $DIR/struct.rs:+2:9: +2:10
|
StorageLive(_2); // scope 1 at $DIR/struct.rs:+2:9: +2:10
|
||||||
StorageLive(_3); // scope 1 at $DIR/struct.rs:+2:13: +2:16
|
StorageLive(_3); // scope 1 at $DIR/struct.rs:+2:13: +2:16
|
||||||
- _3 = (_1.0: i32); // scope 1 at $DIR/struct.rs:+2:13: +2:16
|
- _3 = (_1.0: i32); // scope 1 at $DIR/struct.rs:+2:13: +2:16
|
||||||
|
|
|
@ -25,9 +25,7 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/tuple.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/tuple.rs:+1:9: +1:14
|
||||||
Deinit(_1); // scope 0 at $DIR/tuple.rs:+1:17: +1:23
|
_1 = (const 1_i32, const 2_i32); // scope 0 at $DIR/tuple.rs:+1:17: +1:23
|
||||||
(_1.0: i32) = const 1_i32; // scope 0 at $DIR/tuple.rs:+1:17: +1:23
|
|
||||||
(_1.1: i32) = const 2_i32; // scope 0 at $DIR/tuple.rs:+1:17: +1:23
|
|
||||||
StorageLive(_2); // scope 1 at $DIR/tuple.rs:+2:9: +2:10
|
StorageLive(_2); // scope 1 at $DIR/tuple.rs:+2:9: +2:10
|
||||||
StorageLive(_3); // scope 1 at $DIR/tuple.rs:+2:13: +2:22
|
StorageLive(_3); // scope 1 at $DIR/tuple.rs:+2:13: +2:22
|
||||||
StorageLive(_4); // scope 1 at $DIR/tuple.rs:+2:13: +2:16
|
StorageLive(_4); // scope 1 at $DIR/tuple.rs:+2:13: +2:16
|
||||||
|
@ -43,9 +41,7 @@
|
||||||
- _2 = Add(move _3, const 3_i32); // scope 1 at $DIR/tuple.rs:+2:13: +2:26
|
- _2 = Add(move _3, const 3_i32); // scope 1 at $DIR/tuple.rs:+2:13: +2:26
|
||||||
+ _2 = const 6_i32; // scope 1 at $DIR/tuple.rs:+2:13: +2:26
|
+ _2 = const 6_i32; // scope 1 at $DIR/tuple.rs:+2:13: +2:26
|
||||||
StorageDead(_3); // scope 1 at $DIR/tuple.rs:+2:25: +2:26
|
StorageDead(_3); // scope 1 at $DIR/tuple.rs:+2:25: +2:26
|
||||||
Deinit(_1); // scope 2 at $DIR/tuple.rs:+3:5: +3:15
|
_1 = (const 2_i32, const 3_i32); // scope 2 at $DIR/tuple.rs:+3:5: +3:15
|
||||||
(_1.0: i32) = const 2_i32; // scope 2 at $DIR/tuple.rs:+3:5: +3:15
|
|
||||||
(_1.1: i32) = const 3_i32; // scope 2 at $DIR/tuple.rs:+3:5: +3:15
|
|
||||||
StorageLive(_6); // scope 2 at $DIR/tuple.rs:+4:9: +4:10
|
StorageLive(_6); // scope 2 at $DIR/tuple.rs:+4:9: +4:10
|
||||||
StorageLive(_7); // scope 2 at $DIR/tuple.rs:+4:13: +4:22
|
StorageLive(_7); // scope 2 at $DIR/tuple.rs:+4:13: +4:22
|
||||||
StorageLive(_8); // scope 2 at $DIR/tuple.rs:+4:13: +4:16
|
StorageLive(_8); // scope 2 at $DIR/tuple.rs:+4:13: +4:16
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
- // MIR for `bar` before Deaggregator
|
|
||||||
+ // MIR for `bar` after Deaggregator
|
|
||||||
|
|
||||||
fn bar(_1: usize) -> Baz {
|
|
||||||
debug a => _1; // in scope 0 at $DIR/deaggregator_test.rs:+0:8: +0:9
|
|
||||||
let mut _0: Baz; // return place in scope 0 at $DIR/deaggregator_test.rs:+0:21: +0:24
|
|
||||||
let mut _2: usize; // in scope 0 at $DIR/deaggregator_test.rs:+1:14: +1:15
|
|
||||||
|
|
||||||
bb0: {
|
|
||||||
StorageLive(_2); // scope 0 at $DIR/deaggregator_test.rs:+1:14: +1:15
|
|
||||||
_2 = _1; // scope 0 at $DIR/deaggregator_test.rs:+1:14: +1:15
|
|
||||||
- _0 = Baz { x: move _2, y: const 0f32, z: const false }; // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
|
|
||||||
+ Deinit(_0); // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
|
|
||||||
+ (_0.0: usize) = move _2; // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
|
|
||||||
+ (_0.1: f32) = const 0f32; // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
|
|
||||||
+ (_0.2: bool) = const false; // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
|
|
||||||
StorageDead(_2); // scope 0 at $DIR/deaggregator_test.rs:+1:34: +1:35
|
|
||||||
return; // scope 0 at $DIR/deaggregator_test.rs:+2:2: +2:2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
// unit-test: Deaggregator
|
|
||||||
|
|
||||||
struct Baz {
|
|
||||||
x: usize,
|
|
||||||
y: f32,
|
|
||||||
z: bool,
|
|
||||||
}
|
|
||||||
|
|
||||||
// EMIT_MIR deaggregator_test.bar.Deaggregator.diff
|
|
||||||
fn bar(a: usize) -> Baz {
|
|
||||||
Baz { x: a, y: 0.0, z: false }
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
// Make sure the function actually gets instantiated.
|
|
||||||
bar(0);
|
|
||||||
}
|
|
|
@ -25,9 +25,7 @@
|
||||||
_4 = _1; // scope 0 at $DIR/early_otherwise_branch.rs:+1:12: +1:13
|
_4 = _1; // scope 0 at $DIR/early_otherwise_branch.rs:+1:12: +1:13
|
||||||
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
||||||
_5 = _2; // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
_5 = _2; // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
||||||
Deinit(_3); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
_3 = (move _4, move _5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
||||||
(_3.0: std::option::Option<u32>) = move _4; // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
|
||||||
(_3.1: std::option::Option<u32>) = move _5; // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
|
||||||
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
||||||
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
||||||
_7 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
_7 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
||||||
|
|
|
@ -26,9 +26,7 @@
|
||||||
_4 = _1; // scope 0 at $DIR/early_otherwise_branch.rs:+1:12: +1:13
|
_4 = _1; // scope 0 at $DIR/early_otherwise_branch.rs:+1:12: +1:13
|
||||||
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
||||||
_5 = _2; // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
_5 = _2; // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
||||||
Deinit(_3); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
_3 = (move _4, move _5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
||||||
(_3.0: std::option::Option<u32>) = move _4; // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
|
||||||
(_3.1: std::option::Option<u32>) = move _5; // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
|
||||||
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
||||||
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
||||||
_8 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
_8 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
||||||
|
|
|
@ -25,9 +25,7 @@
|
||||||
_4 = _1; // scope 0 at $DIR/early_otherwise_branch.rs:+1:12: +1:13
|
_4 = _1; // scope 0 at $DIR/early_otherwise_branch.rs:+1:12: +1:13
|
||||||
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
||||||
_5 = _2; // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
_5 = _2; // scope 0 at $DIR/early_otherwise_branch.rs:+1:15: +1:16
|
||||||
Deinit(_3); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
_3 = (move _4, move _5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
||||||
(_3.0: std::option::Option<u32>) = move _4; // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
|
||||||
(_3.1: std::option::Option<bool>) = move _5; // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
|
||||||
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
||||||
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch.rs:+1:16: +1:17
|
||||||
_7 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
_7 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch.rs:+1:11: +1:17
|
||||||
|
|
|
@ -34,10 +34,7 @@
|
||||||
_6 = _2; // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:15: +1:16
|
_6 = _2; // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:15: +1:16
|
||||||
StorageLive(_7); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:18: +1:19
|
StorageLive(_7); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:18: +1:19
|
||||||
_7 = _3; // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:18: +1:19
|
_7 = _3; // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:18: +1:19
|
||||||
Deinit(_4); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:11: +1:20
|
_4 = (move _5, move _6, move _7); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:11: +1:20
|
||||||
(_4.0: std::option::Option<u32>) = move _5; // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:11: +1:20
|
|
||||||
(_4.1: std::option::Option<u32>) = move _6; // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:11: +1:20
|
|
||||||
(_4.2: std::option::Option<u32>) = move _7; // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:11: +1:20
|
|
||||||
StorageDead(_7); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:19: +1:20
|
StorageDead(_7); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:19: +1:20
|
||||||
StorageDead(_6); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:19: +1:20
|
StorageDead(_6); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:19: +1:20
|
||||||
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:19: +1:20
|
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch_3_element_tuple.rs:+1:19: +1:20
|
||||||
|
|
|
@ -73,9 +73,7 @@
|
||||||
_5 = _1; // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:15: +5:16
|
_5 = _1; // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:15: +5:16
|
||||||
StorageLive(_6); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:18: +5:23
|
StorageLive(_6); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:18: +5:23
|
||||||
_6 = _2; // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:18: +5:23
|
_6 = _2; // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:18: +5:23
|
||||||
Deinit(_4); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:14: +5:24
|
_4 = (move _5, move _6); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:14: +5:24
|
||||||
(_4.0: &ViewportPercentageLength) = move _5; // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:14: +5:24
|
|
||||||
(_4.1: &ViewportPercentageLength) = move _6; // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:14: +5:24
|
|
||||||
StorageDead(_6); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:23: +5:24
|
StorageDead(_6); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:23: +5:24
|
||||||
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:23: +5:24
|
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:23: +5:24
|
||||||
_34 = deref_copy (_4.0: &ViewportPercentageLength); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:14: +5:24
|
_34 = deref_copy (_4.0: &ViewportPercentageLength); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+5:14: +5:24
|
||||||
|
@ -91,7 +89,7 @@
|
||||||
|
|
||||||
bb2: {
|
bb2: {
|
||||||
StorageLive(_33); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:25: +10:27
|
StorageLive(_33); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:25: +10:27
|
||||||
Deinit(_33); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:25: +10:27
|
_33 = (); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:25: +10:27
|
||||||
_0 = Result::<ViewportPercentageLength, ()>::Err(move _33); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:21: +10:28
|
_0 = Result::<ViewportPercentageLength, ()>::Err(move _33); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:21: +10:28
|
||||||
StorageDead(_33); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:27: +10:28
|
StorageDead(_33); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+10:27: +10:28
|
||||||
StorageDead(_3); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+11:6: +11:7
|
StorageDead(_3); // scope 0 at $DIR/early_otherwise_branch_68867.rs:+11:6: +11:7
|
||||||
|
|
|
@ -32,9 +32,7 @@
|
||||||
_4 = _1; // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:12: +1:13
|
_4 = _1; // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:12: +1:13
|
||||||
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:15: +1:16
|
StorageLive(_5); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:15: +1:16
|
||||||
_5 = _2; // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:15: +1:16
|
_5 = _2; // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:15: +1:16
|
||||||
Deinit(_3); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:11: +1:17
|
_3 = (move _4, move _5); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:11: +1:17
|
||||||
(_3.0: std::option::Option<u32>) = move _4; // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:11: +1:17
|
|
||||||
(_3.1: std::option::Option<u32>) = move _5; // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:11: +1:17
|
|
||||||
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:16: +1:17
|
StorageDead(_5); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:16: +1:17
|
||||||
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:16: +1:17
|
StorageDead(_4); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:16: +1:17
|
||||||
_8 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:11: +1:17
|
_8 = discriminant((_3.0: std::option::Option<u32>)); // scope 0 at $DIR/early_otherwise_branch_noopt.rs:+1:11: +1:17
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
StorageLive(_3); // scope 0 at $DIR/cycle.rs:+1:5: +1:6
|
StorageLive(_3); // scope 0 at $DIR/cycle.rs:+1:5: +1:6
|
||||||
_3 = &_1; // scope 0 at $DIR/cycle.rs:+1:5: +1:6
|
_3 = &_1; // scope 0 at $DIR/cycle.rs:+1:5: +1:6
|
||||||
StorageLive(_4); // scope 0 at $DIR/cycle.rs:+1:5: +1:8
|
StorageLive(_4); // scope 0 at $DIR/cycle.rs:+1:5: +1:8
|
||||||
Deinit(_4); // scope 0 at $DIR/cycle.rs:+1:5: +1:8
|
_4 = (); // scope 0 at $DIR/cycle.rs:+1:5: +1:8
|
||||||
_2 = <impl Fn() as Fn<()>>::call(move _3, move _4) -> [return: bb1, unwind: bb3]; // scope 0 at $DIR/cycle.rs:+1:5: +1:8
|
_2 = <impl Fn() as Fn<()>>::call(move _3, move _4) -> [return: bb1, unwind: bb3]; // scope 0 at $DIR/cycle.rs:+1:5: +1:8
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/cycle.rs:6:5: 6:6
|
// + span: $DIR/cycle.rs:6:5: 6:6
|
||||||
|
|
|
@ -21,7 +21,15 @@ fn foo(_1: T, _2: i32) -> i32 {
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_3); // scope 0 at $DIR/inline_closure.rs:+1:9: +1:10
|
StorageLive(_3); // scope 0 at $DIR/inline_closure.rs:+1:9: +1:10
|
||||||
Deinit(_3); // scope 0 at $DIR/inline_closure.rs:+1:13: +1:24
|
_3 = [closure@foo::<T>::{closure#0}]; // scope 0 at $DIR/inline_closure.rs:+1:13: +1:24
|
||||||
|
// closure
|
||||||
|
// + def_id: DefId(0:6 ~ inline_closure[92ba]::foo::{closure#0})
|
||||||
|
// + substs: [
|
||||||
|
// T,
|
||||||
|
// i8,
|
||||||
|
// extern "rust-call" fn((i32, i32)) -> i32,
|
||||||
|
// (),
|
||||||
|
// ]
|
||||||
StorageLive(_4); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:6
|
StorageLive(_4); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:6
|
||||||
_4 = &_3; // scope 1 at $DIR/inline_closure.rs:+2:5: +2:6
|
_4 = &_3; // scope 1 at $DIR/inline_closure.rs:+2:5: +2:6
|
||||||
StorageLive(_5); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
StorageLive(_5); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
||||||
|
@ -29,9 +37,7 @@ fn foo(_1: T, _2: i32) -> i32 {
|
||||||
_6 = _2; // scope 1 at $DIR/inline_closure.rs:+2:7: +2:8
|
_6 = _2; // scope 1 at $DIR/inline_closure.rs:+2:7: +2:8
|
||||||
StorageLive(_7); // scope 1 at $DIR/inline_closure.rs:+2:10: +2:11
|
StorageLive(_7); // scope 1 at $DIR/inline_closure.rs:+2:10: +2:11
|
||||||
_7 = _2; // scope 1 at $DIR/inline_closure.rs:+2:10: +2:11
|
_7 = _2; // scope 1 at $DIR/inline_closure.rs:+2:10: +2:11
|
||||||
Deinit(_5); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
_5 = (move _6, move _7); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
||||||
(_5.0: i32) = move _6; // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
|
||||||
(_5.1: i32) = move _7; // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
|
||||||
StorageLive(_8); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
StorageLive(_8); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
||||||
_8 = move (_5.0: i32); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
_8 = move (_5.0: i32); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
||||||
StorageLive(_9); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
StorageLive(_9); // scope 1 at $DIR/inline_closure.rs:+2:5: +2:12
|
||||||
|
|
|
@ -24,7 +24,15 @@ fn foo(_1: T, _2: &i32) -> i32 {
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_3); // scope 0 at $DIR/inline_closure_borrows_arg.rs:+1:9: +1:10
|
StorageLive(_3); // scope 0 at $DIR/inline_closure_borrows_arg.rs:+1:9: +1:10
|
||||||
Deinit(_3); // scope 0 at $DIR/inline_closure_borrows_arg.rs:+1:13: +4:6
|
_3 = [closure@foo::<T>::{closure#0}]; // scope 0 at $DIR/inline_closure_borrows_arg.rs:+1:13: +4:6
|
||||||
|
// closure
|
||||||
|
// + def_id: DefId(0:6 ~ inline_closure_borrows_arg[96e9]::foo::{closure#0})
|
||||||
|
// + substs: [
|
||||||
|
// T,
|
||||||
|
// i8,
|
||||||
|
// for<'a, 'b> extern "rust-call" fn((&'a i32, &'b i32)) -> i32,
|
||||||
|
// (),
|
||||||
|
// ]
|
||||||
StorageLive(_4); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:6
|
StorageLive(_4); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:6
|
||||||
_4 = &_3; // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:6
|
_4 = &_3; // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:6
|
||||||
StorageLive(_5); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
StorageLive(_5); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
||||||
|
@ -32,9 +40,7 @@ fn foo(_1: T, _2: &i32) -> i32 {
|
||||||
_6 = &(*_2); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:7: +5:8
|
_6 = &(*_2); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:7: +5:8
|
||||||
StorageLive(_7); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:10: +5:11
|
StorageLive(_7); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:10: +5:11
|
||||||
_7 = &(*_2); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:10: +5:11
|
_7 = &(*_2); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:10: +5:11
|
||||||
Deinit(_5); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
_5 = (move _6, move _7); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
||||||
(_5.0: &i32) = move _6; // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
|
||||||
(_5.1: &i32) = move _7; // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
|
||||||
StorageLive(_8); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
StorageLive(_8); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
||||||
_8 = move (_5.0: &i32); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
_8 = move (_5.0: &i32); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
||||||
StorageLive(_9); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
StorageLive(_9); // scope 1 at $DIR/inline_closure_borrows_arg.rs:+5:5: +5:12
|
||||||
|
|
|
@ -30,9 +30,15 @@ fn foo(_1: T, _2: i32) -> (i32, T) {
|
||||||
_4 = &_2; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
_4 = &_2; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
||||||
StorageLive(_5); // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
StorageLive(_5); // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
||||||
_5 = &_1; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
_5 = &_1; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
||||||
Deinit(_3); // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
_3 = [closure@foo::<T>::{closure#0}] { q: move _4, t: move _5 }; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
||||||
(_3.0: &i32) = move _4; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
// closure
|
||||||
(_3.1: &T) = move _5; // scope 0 at $DIR/inline_closure_captures.rs:+1:13: +1:24
|
// + def_id: DefId(0:6 ~ inline_closure_captures[8bc0]::foo::{closure#0})
|
||||||
|
// + substs: [
|
||||||
|
// T,
|
||||||
|
// i8,
|
||||||
|
// extern "rust-call" fn((i32,)) -> (i32, T),
|
||||||
|
// (&i32, &T),
|
||||||
|
// ]
|
||||||
StorageDead(_5); // scope 0 at $DIR/inline_closure_captures.rs:+1:16: +1:17
|
StorageDead(_5); // scope 0 at $DIR/inline_closure_captures.rs:+1:16: +1:17
|
||||||
StorageDead(_4); // scope 0 at $DIR/inline_closure_captures.rs:+1:16: +1:17
|
StorageDead(_4); // scope 0 at $DIR/inline_closure_captures.rs:+1:16: +1:17
|
||||||
StorageLive(_6); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:6
|
StorageLive(_6); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:6
|
||||||
|
@ -40,8 +46,7 @@ fn foo(_1: T, _2: i32) -> (i32, T) {
|
||||||
StorageLive(_7); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
StorageLive(_7); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
||||||
StorageLive(_8); // scope 1 at $DIR/inline_closure_captures.rs:+2:7: +2:8
|
StorageLive(_8); // scope 1 at $DIR/inline_closure_captures.rs:+2:7: +2:8
|
||||||
_8 = _2; // scope 1 at $DIR/inline_closure_captures.rs:+2:7: +2:8
|
_8 = _2; // scope 1 at $DIR/inline_closure_captures.rs:+2:7: +2:8
|
||||||
Deinit(_7); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
_7 = (move _8,); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
||||||
(_7.0: i32) = move _8; // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
|
||||||
StorageLive(_9); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
StorageLive(_9); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
||||||
_9 = move (_7.0: i32); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
_9 = move (_7.0: i32); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
||||||
StorageLive(_10); // scope 2 at $DIR/inline_closure_captures.rs:+1:19: +1:20
|
StorageLive(_10); // scope 2 at $DIR/inline_closure_captures.rs:+1:19: +1:20
|
||||||
|
@ -50,9 +55,7 @@ fn foo(_1: T, _2: i32) -> (i32, T) {
|
||||||
StorageLive(_11); // scope 2 at $DIR/inline_closure_captures.rs:+1:22: +1:23
|
StorageLive(_11); // scope 2 at $DIR/inline_closure_captures.rs:+1:22: +1:23
|
||||||
_13 = deref_copy ((*_6).1: &T); // scope 2 at $DIR/inline_closure_captures.rs:+1:22: +1:23
|
_13 = deref_copy ((*_6).1: &T); // scope 2 at $DIR/inline_closure_captures.rs:+1:22: +1:23
|
||||||
_11 = (*_13); // scope 2 at $DIR/inline_closure_captures.rs:+1:22: +1:23
|
_11 = (*_13); // scope 2 at $DIR/inline_closure_captures.rs:+1:22: +1:23
|
||||||
Deinit(_0); // scope 2 at $DIR/inline_closure_captures.rs:+1:18: +1:24
|
_0 = (move _10, move _11); // scope 2 at $DIR/inline_closure_captures.rs:+1:18: +1:24
|
||||||
(_0.0: i32) = move _10; // scope 2 at $DIR/inline_closure_captures.rs:+1:18: +1:24
|
|
||||||
(_0.1: T) = move _11; // scope 2 at $DIR/inline_closure_captures.rs:+1:18: +1:24
|
|
||||||
StorageDead(_11); // scope 2 at $DIR/inline_closure_captures.rs:+1:23: +1:24
|
StorageDead(_11); // scope 2 at $DIR/inline_closure_captures.rs:+1:23: +1:24
|
||||||
StorageDead(_10); // scope 2 at $DIR/inline_closure_captures.rs:+1:23: +1:24
|
StorageDead(_10); // scope 2 at $DIR/inline_closure_captures.rs:+1:23: +1:24
|
||||||
StorageDead(_9); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
StorageDead(_9); // scope 1 at $DIR/inline_closure_captures.rs:+2:5: +2:9
|
||||||
|
|
|
@ -48,9 +48,7 @@
|
||||||
+ StorageDead(_6); // scope 2 at $DIR/inline_diverging.rs:28:15: 28:16
|
+ StorageDead(_6); // scope 2 at $DIR/inline_diverging.rs:28:15: 28:16
|
||||||
+ StorageLive(_8); // scope 3 at $DIR/inline_diverging.rs:29:6: 29:7
|
+ StorageLive(_8); // scope 3 at $DIR/inline_diverging.rs:29:6: 29:7
|
||||||
+ _8 = move _3; // scope 3 at $DIR/inline_diverging.rs:29:6: 29:7
|
+ _8 = move _3; // scope 3 at $DIR/inline_diverging.rs:29:6: 29:7
|
||||||
+ Deinit(_1); // scope 3 at $DIR/inline_diverging.rs:29:5: 29:11
|
+ _1 = (move _8, move _9); // scope 3 at $DIR/inline_diverging.rs:29:5: 29:11
|
||||||
+ (_1.0: !) = move _8; // scope 3 at $DIR/inline_diverging.rs:29:5: 29:11
|
|
||||||
+ (_1.1: !) = move _9; // scope 3 at $DIR/inline_diverging.rs:29:5: 29:11
|
|
||||||
+ StorageDead(_8); // scope 3 at $DIR/inline_diverging.rs:29:10: 29:11
|
+ StorageDead(_8); // scope 3 at $DIR/inline_diverging.rs:29:10: 29:11
|
||||||
+ StorageDead(_3); // scope 1 at $DIR/inline_diverging.rs:30:1: 30:2
|
+ StorageDead(_3); // scope 1 at $DIR/inline_diverging.rs:30:1: 30:2
|
||||||
+ drop(_2) -> bb2; // scope 1 at $DIR/inline_diverging.rs:30:1: 30:2
|
+ drop(_2) -> bb2; // scope 1 at $DIR/inline_diverging.rs:30:1: 30:2
|
||||||
|
|
|
@ -44,8 +44,17 @@
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
- bb1: {
|
- bb1: {
|
||||||
+ Deinit(_4); // scope 2 at $DIR/inline_generator.rs:15:5: 15:41
|
+ _4 = [generator@$DIR/inline_generator.rs:15:5: 15:8 (#0)]; // scope 2 at $DIR/inline_generator.rs:15:5: 15:41
|
||||||
+ discriminant(_4) = 0; // scope 2 at $DIR/inline_generator.rs:15:5: 15:41
|
+ // generator
|
||||||
|
+ // + def_id: DefId(0:7 ~ inline_generator[ea31]::g::{closure#0})
|
||||||
|
+ // + substs: [
|
||||||
|
+ // bool,
|
||||||
|
+ // i32,
|
||||||
|
+ // bool,
|
||||||
|
+ // {bool, i32},
|
||||||
|
+ // (),
|
||||||
|
+ // ]
|
||||||
|
+ // + movability: Movable
|
||||||
_3 = &mut _4; // scope 0 at $DIR/inline_generator.rs:+1:23: +1:31
|
_3 = &mut _4; // scope 0 at $DIR/inline_generator.rs:+1:23: +1:31
|
||||||
- _2 = Pin::<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]>::new(move _3) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/inline_generator.rs:+1:14: +1:32
|
- _2 = Pin::<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]>::new(move _3) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/inline_generator.rs:+1:14: +1:32
|
||||||
- // mir::Constant
|
- // mir::Constant
|
||||||
|
@ -59,8 +68,7 @@
|
||||||
+ _5 = move _3; // scope 4 at $SRC_DIR/core/src/pin.rs:LL:COL
|
+ _5 = move _3; // scope 4 at $SRC_DIR/core/src/pin.rs:LL:COL
|
||||||
+ StorageLive(_6); // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
+ StorageLive(_6); // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
||||||
+ _6 = move _5; // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
+ _6 = move _5; // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
||||||
+ Deinit(_2); // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
+ _2 = Pin::<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]> { pointer: move _6 }; // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
||||||
+ (_2.0: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]) = move _6; // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
|
||||||
+ StorageDead(_6); // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
+ StorageDead(_6); // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL
|
||||||
+ StorageDead(_5); // scope 4 at $SRC_DIR/core/src/pin.rs:LL:COL
|
+ StorageDead(_5); // scope 4 at $SRC_DIR/core/src/pin.rs:LL:COL
|
||||||
StorageDead(_3); // scope 0 at $DIR/inline_generator.rs:+1:31: +1:32
|
StorageDead(_3); // scope 0 at $DIR/inline_generator.rs:+1:31: +1:32
|
||||||
|
|
|
@ -51,9 +51,7 @@
|
||||||
+ // + span: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
+ // + span: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
||||||
+ // + user_ty: UserType(0)
|
+ // + user_ty: UserType(0)
|
||||||
+ // + literal: Const { ty: alloc::raw_vec::RawVec<u32>, val: Unevaluated(alloc::raw_vec::RawVec::<T>::NEW, [u32], None) }
|
+ // + literal: Const { ty: alloc::raw_vec::RawVec<u32>, val: Unevaluated(alloc::raw_vec::RawVec::<T>::NEW, [u32], None) }
|
||||||
+ Deinit(_9); // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
+ _9 = Vec::<u32> { buf: move _10, len: const 0_usize }; // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
||||||
+ (_9.0: alloc::raw_vec::RawVec<u32>) = move _10; // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
|
||||||
+ (_9.1: usize) = const 0_usize; // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
|
||||||
+ StorageDead(_10); // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
+ StorageDead(_10); // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
||||||
+ (*_8) = move _9; // scope 0 at $DIR/inline_into_box_place.rs:+1:33: +1:43
|
+ (*_8) = move _9; // scope 0 at $DIR/inline_into_box_place.rs:+1:33: +1:43
|
||||||
+ StorageDead(_9); // scope 0 at $DIR/inline_into_box_place.rs:+1:33: +1:43
|
+ StorageDead(_9); // scope 0 at $DIR/inline_into_box_place.rs:+1:33: +1:43
|
||||||
|
|
|
@ -20,14 +20,20 @@ fn main() -> () {
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:9: +1:10
|
StorageLive(_1); // scope 0 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:9: +1:10
|
||||||
Deinit(_1); // scope 0 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:13: +1:33
|
_1 = [closure@$DIR/issue_76997_inline_scopes_parenting.rs:5:13: 5:16]; // scope 0 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:13: +1:33
|
||||||
|
// closure
|
||||||
|
// + def_id: DefId(0:4 ~ issue_76997_inline_scopes_parenting[bc59]::main::{closure#0})
|
||||||
|
// + substs: [
|
||||||
|
// i8,
|
||||||
|
// extern "rust-call" fn(((),)),
|
||||||
|
// (),
|
||||||
|
// ]
|
||||||
StorageLive(_2); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:6
|
StorageLive(_2); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:6
|
||||||
_2 = &_1; // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:6
|
_2 = &_1; // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:6
|
||||||
StorageLive(_3); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
StorageLive(_3); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
||||||
StorageLive(_4); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:7: +2:9
|
StorageLive(_4); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:7: +2:9
|
||||||
Deinit(_4); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:7: +2:9
|
_4 = (); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:7: +2:9
|
||||||
Deinit(_3); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
_3 = (move _4,); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
||||||
(_3.0: ()) = move _4; // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
|
||||||
StorageLive(_5); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
StorageLive(_5); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
||||||
_5 = move (_3.0: ()); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
_5 = move (_3.0: ()); // scope 1 at $DIR/issue_76997_inline_scopes_parenting.rs:+2:5: +2:10
|
||||||
StorageLive(_6); // scope 2 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:23: +1:24
|
StorageLive(_6); // scope 2 at $DIR/issue_76997_inline_scopes_parenting.rs:+1:23: +1:24
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
bb1: {
|
bb1: {
|
||||||
_3 = &_4; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:15
|
_3 = &_4; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:15
|
||||||
StorageLive(_5); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
StorageLive(_5); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
||||||
Deinit(_5); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
_5 = (); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
||||||
- _2 = <fn() {foo} as Fn<()>>::call(move _3, move _5) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
- _2 = <fn() {foo} as Fn<()>>::call(move _3, move _5) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
||||||
- // mir::Constant
|
- // mir::Constant
|
||||||
- // + span: $DIR/issue_78442.rs:11:5: 11:15
|
- // + span: $DIR/issue_78442.rs:11:5: 11:15
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
bb1: {
|
bb1: {
|
||||||
_3 = &_4; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:15
|
_3 = &_4; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:15
|
||||||
StorageLive(_5); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
StorageLive(_5); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
||||||
Deinit(_5); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
_5 = (); // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
||||||
- _2 = <impl Fn() as Fn<()>>::call(move _3, move _5) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
- _2 = <impl Fn() as Fn<()>>::call(move _3, move _5) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
||||||
+ _2 = <fn() {foo} as Fn<()>>::call(move _3, move _5) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
+ _2 = <fn() {foo} as Fn<()>>::call(move _3, move _5) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_78442.rs:+4:5: +4:17
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/lower_intrinsics.rs:+1:9: +1:12
|
StorageLive(_1); // scope 0 at $DIR/lower_intrinsics.rs:+1:9: +1:12
|
||||||
Deinit(_1); // scope 0 at $DIR/lower_intrinsics.rs:+1:15: +1:17
|
_1 = (); // scope 0 at $DIR/lower_intrinsics.rs:+1:15: +1:17
|
||||||
StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:+2:9: +2:16
|
StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:+2:9: +2:16
|
||||||
Deinit(_2); // scope 1 at $DIR/lower_intrinsics.rs:+2:19: +2:21
|
_2 = (); // scope 1 at $DIR/lower_intrinsics.rs:+2:19: +2:21
|
||||||
StorageLive(_3); // scope 3 at $DIR/lower_intrinsics.rs:+4:9: +4:95
|
StorageLive(_3); // scope 3 at $DIR/lower_intrinsics.rs:+4:9: +4:95
|
||||||
StorageLive(_4); // scope 3 at $DIR/lower_intrinsics.rs:+4:29: +4:59
|
StorageLive(_4); // scope 3 at $DIR/lower_intrinsics.rs:+4:29: +4:59
|
||||||
StorageLive(_5); // scope 3 at $DIR/lower_intrinsics.rs:+4:29: +4:45
|
StorageLive(_5); // scope 3 at $DIR/lower_intrinsics.rs:+4:29: +4:45
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
- _3 = const false; // scope 4 at $DIR/matches_reduce_branches.rs:+16:13: +16:22
|
- _3 = const false; // scope 4 at $DIR/matches_reduce_branches.rs:+16:13: +16:22
|
||||||
- _4 = const false; // scope 4 at $DIR/matches_reduce_branches.rs:+17:13: +17:22
|
- _4 = const false; // scope 4 at $DIR/matches_reduce_branches.rs:+17:13: +17:22
|
||||||
- _5 = const true; // scope 4 at $DIR/matches_reduce_branches.rs:+18:13: +18:21
|
- _5 = const true; // scope 4 at $DIR/matches_reduce_branches.rs:+18:13: +18:21
|
||||||
- Deinit(_6); // scope 4 at $DIR/matches_reduce_branches.rs:+19:13: +19:15
|
- _6 = (); // scope 4 at $DIR/matches_reduce_branches.rs:+19:13: +19:15
|
||||||
- goto -> bb3; // scope 4 at $DIR/matches_reduce_branches.rs:+19:13: +19:15
|
- goto -> bb3; // scope 4 at $DIR/matches_reduce_branches.rs:+19:13: +19:15
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
+ _3 = Eq(_11, const 7_i32); // scope 4 at $DIR/matches_reduce_branches.rs:+9:13: +9:21
|
+ _3 = Eq(_11, const 7_i32); // scope 4 at $DIR/matches_reduce_branches.rs:+9:13: +9:21
|
||||||
_4 = const false; // scope 4 at $DIR/matches_reduce_branches.rs:+10:13: +10:22
|
_4 = const false; // scope 4 at $DIR/matches_reduce_branches.rs:+10:13: +10:22
|
||||||
_5 = const true; // scope 4 at $DIR/matches_reduce_branches.rs:+11:13: +11:21
|
_5 = const true; // scope 4 at $DIR/matches_reduce_branches.rs:+11:13: +11:21
|
||||||
Deinit(_6); // scope 4 at $DIR/matches_reduce_branches.rs:+12:13: +12:15
|
_6 = (); // scope 4 at $DIR/matches_reduce_branches.rs:+12:13: +12:15
|
||||||
- goto -> bb3; // scope 4 at $DIR/matches_reduce_branches.rs:+12:13: +12:15
|
- goto -> bb3; // scope 4 at $DIR/matches_reduce_branches.rs:+12:13: +12:15
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
|
@ -69,11 +69,7 @@
|
||||||
_9 = _4; // scope 4 at $DIR/matches_reduce_branches.rs:+23:12: +23:13
|
_9 = _4; // scope 4 at $DIR/matches_reduce_branches.rs:+23:12: +23:13
|
||||||
StorageLive(_10); // scope 4 at $DIR/matches_reduce_branches.rs:+23:15: +23:16
|
StorageLive(_10); // scope 4 at $DIR/matches_reduce_branches.rs:+23:15: +23:16
|
||||||
_10 = _5; // scope 4 at $DIR/matches_reduce_branches.rs:+23:15: +23:16
|
_10 = _5; // scope 4 at $DIR/matches_reduce_branches.rs:+23:15: +23:16
|
||||||
Deinit(_0); // scope 4 at $DIR/matches_reduce_branches.rs:+23:5: +23:17
|
_0 = (move _7, move _8, move _9, move _10); // scope 4 at $DIR/matches_reduce_branches.rs:+23:5: +23:17
|
||||||
(_0.0: bool) = move _7; // scope 4 at $DIR/matches_reduce_branches.rs:+23:5: +23:17
|
|
||||||
(_0.1: bool) = move _8; // scope 4 at $DIR/matches_reduce_branches.rs:+23:5: +23:17
|
|
||||||
(_0.2: bool) = move _9; // scope 4 at $DIR/matches_reduce_branches.rs:+23:5: +23:17
|
|
||||||
(_0.3: bool) = move _10; // scope 4 at $DIR/matches_reduce_branches.rs:+23:5: +23:17
|
|
||||||
StorageDead(_10); // scope 4 at $DIR/matches_reduce_branches.rs:+23:16: +23:17
|
StorageDead(_10); // scope 4 at $DIR/matches_reduce_branches.rs:+23:16: +23:17
|
||||||
StorageDead(_9); // scope 4 at $DIR/matches_reduce_branches.rs:+23:16: +23:17
|
StorageDead(_9); // scope 4 at $DIR/matches_reduce_branches.rs:+23:16: +23:17
|
||||||
StorageDead(_8); // scope 4 at $DIR/matches_reduce_branches.rs:+23:16: +23:17
|
StorageDead(_8); // scope 4 at $DIR/matches_reduce_branches.rs:+23:16: +23:17
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
- bb4: {
|
- bb4: {
|
||||||
Deinit(_0); // scope 0 at $DIR/matches_reduce_branches.rs:+2:9: +2:11
|
_0 = (); // scope 0 at $DIR/matches_reduce_branches.rs:+2:9: +2:11
|
||||||
- goto -> bb6; // scope 0 at $DIR/matches_reduce_branches.rs:+1:5: +3:6
|
- goto -> bb6; // scope 0 at $DIR/matches_reduce_branches.rs:+1:5: +3:6
|
||||||
+ goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:+1:5: +3:6
|
+ goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:+1:5: +3:6
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/matches_reduce_branches.rs:+1:9: +1:12
|
StorageLive(_1); // scope 0 at $DIR/matches_reduce_branches.rs:+1:9: +1:12
|
||||||
StorageLive(_2); // scope 0 at $DIR/matches_reduce_branches.rs:+1:21: +1:23
|
StorageLive(_2); // scope 0 at $DIR/matches_reduce_branches.rs:+1:21: +1:23
|
||||||
Deinit(_2); // scope 0 at $DIR/matches_reduce_branches.rs:+1:21: +1:23
|
_2 = (); // scope 0 at $DIR/matches_reduce_branches.rs:+1:21: +1:23
|
||||||
StorageLive(_3); // scope 0 at $DIR/matches_reduce_branches.rs:+2:15: +6:10
|
StorageLive(_3); // scope 0 at $DIR/matches_reduce_branches.rs:+2:15: +6:10
|
||||||
StorageLive(_4); // scope 0 at $DIR/matches_reduce_branches.rs:+2:18: +2:76
|
StorageLive(_4); // scope 0 at $DIR/matches_reduce_branches.rs:+2:18: +2:76
|
||||||
StorageLive(_5); // scope 0 at $DIR/matches_reduce_branches.rs:+2:21: +2:52
|
StorageLive(_5); // scope 0 at $DIR/matches_reduce_branches.rs:+2:21: +2:52
|
||||||
|
|
|
@ -16,20 +16,15 @@ fn main() -> () {
|
||||||
StorageLive(_1); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:9: +1:14
|
StorageLive(_1); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:9: +1:14
|
||||||
StorageLive(_2); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:24: +1:42
|
StorageLive(_2); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:24: +1:42
|
||||||
StorageLive(_3); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:32: +1:41
|
StorageLive(_3); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:32: +1:41
|
||||||
Deinit(_3); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:32: +1:41
|
_3 = Droppy(const 0_usize); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:32: +1:41
|
||||||
(_3.0: usize) = const 0_usize; // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:32: +1:41
|
_2 = Aligned(move _3); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:24: +1:42
|
||||||
Deinit(_2); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:24: +1:42
|
|
||||||
(_2.0: Droppy) = move _3; // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:24: +1:42
|
|
||||||
StorageDead(_3); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:41: +1:42
|
StorageDead(_3); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:41: +1:42
|
||||||
Deinit(_1); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:17: +1:43
|
_1 = Packed(move _2); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:17: +1:43
|
||||||
(_1.0: Aligned) = move _2; // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:17: +1:43
|
|
||||||
StorageDead(_2); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:42: +1:43
|
StorageDead(_2); // scope 0 at $DIR/packed_struct_drop_aligned.rs:+1:42: +1:43
|
||||||
StorageLive(_4); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:11: +2:29
|
StorageLive(_4); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:11: +2:29
|
||||||
StorageLive(_5); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:19: +2:28
|
StorageLive(_5); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:19: +2:28
|
||||||
Deinit(_5); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:19: +2:28
|
_5 = Droppy(const 0_usize); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:19: +2:28
|
||||||
(_5.0: usize) = const 0_usize; // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:19: +2:28
|
_4 = Aligned(move _5); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:11: +2:29
|
||||||
Deinit(_4); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:11: +2:29
|
|
||||||
(_4.0: Droppy) = move _5; // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:11: +2:29
|
|
||||||
StorageDead(_5); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:28: +2:29
|
StorageDead(_5); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:28: +2:29
|
||||||
StorageLive(_6); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:5: +2:8
|
StorageLive(_6); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:5: +2:8
|
||||||
_6 = move (_1.0: Aligned); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:5: +2:8
|
_6 = move (_1.0: Aligned); // scope 1 at $DIR/packed_struct_drop_aligned.rs:+2:5: +2:8
|
||||||
|
|
|
@ -31,9 +31,7 @@
|
||||||
_1 = const 0_i32; // scope 0 at $DIR/remove_storage_markers.rs:+1:19: +1:20
|
_1 = const 0_i32; // scope 0 at $DIR/remove_storage_markers.rs:+1:19: +1:20
|
||||||
- StorageLive(_2); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
- StorageLive(_2); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
||||||
- StorageLive(_3); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
- StorageLive(_3); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
||||||
Deinit(_3); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
_3 = std::ops::Range::<i32> { start: const 0_i32, end: const 10_i32 }; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
||||||
(_3.0: i32) = const 0_i32; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
|
||||||
(_3.1: i32) = const 10_i32; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
|
||||||
_2 = <std::ops::Range<i32> as IntoIterator>::into_iter(move _3) -> bb1; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
_2 = <std::ops::Range<i32> as IntoIterator>::into_iter(move _3) -> bb1; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/remove_storage_markers.rs:10:14: 10:19
|
// + span: $DIR/remove_storage_markers.rs:10:14: 10:19
|
||||||
|
|
|
@ -2,9 +2,12 @@
|
||||||
|
|
||||||
fn get_union() -> Foo {
|
fn get_union() -> Foo {
|
||||||
let mut _0: Foo; // return place in scope 0 at $DIR/remove_zsts.rs:+0:19: +0:22
|
let mut _0: Foo; // return place in scope 0 at $DIR/remove_zsts.rs:+0:19: +0:22
|
||||||
|
let mut _1: (); // in scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
Deinit(_0); // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
StorageLive(_1); // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
||||||
|
_0 = Foo { x: move _1 }; // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
||||||
|
StorageDead(_1); // scope 0 at $DIR/remove_zsts.rs:+1:17: +1:18
|
||||||
return; // scope 0 at $DIR/remove_zsts.rs:+2:2: +2:2
|
return; // scope 0 at $DIR/remove_zsts.rs:+2:2: +2:2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,11 +7,9 @@
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_1); // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
StorageLive(_1); // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
||||||
- Deinit(_1); // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
- _1 = (); // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
||||||
+ nop; // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
+ nop; // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
||||||
Deinit(_0); // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
_0 = Foo { x: move _1 }; // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
||||||
- (_0.0: ()) = move _1; // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
|
||||||
+ nop; // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
|
||||||
StorageDead(_1); // scope 0 at $DIR/remove_zsts.rs:+1:17: +1:18
|
StorageDead(_1); // scope 0 at $DIR/remove_zsts.rs:+1:17: +1:18
|
||||||
return; // scope 0 at $DIR/remove_zsts.rs:+2:2: +2:2
|
return; // scope 0 at $DIR/remove_zsts.rs:+2:2: +2:2
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,9 +122,7 @@ fn array_casts() -> () {
|
||||||
// + literal: Const { ty: &usize, val: Unevaluated(array_casts, [], Some(promoted[0])) }
|
// + literal: Const { ty: &usize, val: Unevaluated(array_casts, [], Some(promoted[0])) }
|
||||||
Retag(_35); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
Retag(_35); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
||||||
_18 = &(*_35); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
_18 = &(*_35); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
||||||
Deinit(_13); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
_13 = (move _14, move _18); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
||||||
(_13.0: &usize) = move _14; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
||||||
(_13.1: &usize) = move _18; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
||||||
Retag(_13); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
Retag(_13); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
||||||
StorageDead(_18); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
StorageDead(_18); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
||||||
StorageDead(_14); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
StorageDead(_14); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
||||||
|
|
|
@ -62,8 +62,7 @@ fn main() -> () {
|
||||||
StorageLive(_3); // scope 1 at $DIR/retag.rs:+3:13: +3:14
|
StorageLive(_3); // scope 1 at $DIR/retag.rs:+3:13: +3:14
|
||||||
StorageLive(_4); // scope 1 at $DIR/retag.rs:+3:17: +3:36
|
StorageLive(_4); // scope 1 at $DIR/retag.rs:+3:17: +3:36
|
||||||
StorageLive(_5); // scope 1 at $DIR/retag.rs:+3:17: +3:24
|
StorageLive(_5); // scope 1 at $DIR/retag.rs:+3:17: +3:24
|
||||||
Deinit(_5); // scope 1 at $DIR/retag.rs:+3:17: +3:24
|
_5 = Test(const 0_i32); // scope 1 at $DIR/retag.rs:+3:17: +3:24
|
||||||
(_5.0: i32) = const 0_i32; // scope 1 at $DIR/retag.rs:+3:17: +3:24
|
|
||||||
_4 = &_5; // scope 1 at $DIR/retag.rs:+3:17: +3:36
|
_4 = &_5; // scope 1 at $DIR/retag.rs:+3:17: +3:36
|
||||||
StorageLive(_6); // scope 1 at $DIR/retag.rs:+3:29: +3:35
|
StorageLive(_6); // scope 1 at $DIR/retag.rs:+3:29: +3:35
|
||||||
StorageLive(_7); // scope 1 at $DIR/retag.rs:+3:29: +3:35
|
StorageLive(_7); // scope 1 at $DIR/retag.rs:+3:29: +3:35
|
||||||
|
@ -107,7 +106,14 @@ fn main() -> () {
|
||||||
StorageDead(_2); // scope 1 at $DIR/retag.rs:+8:5: +8:6
|
StorageDead(_2); // scope 1 at $DIR/retag.rs:+8:5: +8:6
|
||||||
StorageLive(_13); // scope 1 at $DIR/retag.rs:+11:9: +11:10
|
StorageLive(_13); // scope 1 at $DIR/retag.rs:+11:9: +11:10
|
||||||
StorageLive(_14); // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
StorageLive(_14); // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
||||||
Deinit(_14); // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
_14 = [closure@main::{closure#0}]; // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
||||||
|
// closure
|
||||||
|
// + def_id: DefId(0:14 ~ retag[4622]::main::{closure#0})
|
||||||
|
// + substs: [
|
||||||
|
// i8,
|
||||||
|
// for<'a> extern "rust-call" fn((&'a i32,)) -> &'a i32,
|
||||||
|
// (),
|
||||||
|
// ]
|
||||||
Retag(_14); // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
Retag(_14); // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
||||||
_13 = move _14 as for<'a> fn(&'a i32) -> &'a i32 (Pointer(ClosureFnPointer(Normal))); // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
_13 = move _14 as for<'a> fn(&'a i32) -> &'a i32 (Pointer(ClosureFnPointer(Normal))); // scope 1 at $DIR/retag.rs:+11:31: +14:6
|
||||||
StorageDead(_14); // scope 1 at $DIR/retag.rs:+11:47: +11:48
|
StorageDead(_14); // scope 1 at $DIR/retag.rs:+11:47: +11:48
|
||||||
|
@ -129,8 +135,7 @@ fn main() -> () {
|
||||||
StorageLive(_19); // scope 7 at $DIR/retag.rs:+18:5: +18:24
|
StorageLive(_19); // scope 7 at $DIR/retag.rs:+18:5: +18:24
|
||||||
StorageLive(_20); // scope 7 at $DIR/retag.rs:+18:5: +18:24
|
StorageLive(_20); // scope 7 at $DIR/retag.rs:+18:5: +18:24
|
||||||
StorageLive(_21); // scope 7 at $DIR/retag.rs:+18:5: +18:12
|
StorageLive(_21); // scope 7 at $DIR/retag.rs:+18:5: +18:12
|
||||||
Deinit(_21); // scope 7 at $DIR/retag.rs:+18:5: +18:12
|
_21 = Test(const 0_i32); // scope 7 at $DIR/retag.rs:+18:5: +18:12
|
||||||
(_21.0: i32) = const 0_i32; // scope 7 at $DIR/retag.rs:+18:5: +18:12
|
|
||||||
_20 = &_21; // scope 7 at $DIR/retag.rs:+18:5: +18:24
|
_20 = &_21; // scope 7 at $DIR/retag.rs:+18:5: +18:24
|
||||||
StorageLive(_22); // scope 7 at $DIR/retag.rs:+18:21: +18:23
|
StorageLive(_22); // scope 7 at $DIR/retag.rs:+18:21: +18:23
|
||||||
StorageLive(_23); // scope 7 at $DIR/retag.rs:+18:21: +18:23
|
StorageLive(_23); // scope 7 at $DIR/retag.rs:+18:21: +18:23
|
||||||
|
|
|
@ -4,22 +4,25 @@ fn ezmap(_1: Option<i32>) -> Option<i32> {
|
||||||
debug x => _1; // in scope 0 at $DIR/simple_option_map_e2e.rs:+0:14: +0:15
|
debug x => _1; // in scope 0 at $DIR/simple_option_map_e2e.rs:+0:14: +0:15
|
||||||
let mut _0: std::option::Option<i32>; // return place in scope 0 at $DIR/simple_option_map_e2e.rs:+0:33: +0:44
|
let mut _0: std::option::Option<i32>; // return place in scope 0 at $DIR/simple_option_map_e2e.rs:+0:33: +0:44
|
||||||
let mut _2: [closure@$DIR/simple_option_map_e2e.rs:14:12: 14:15]; // in scope 0 at $DIR/simple_option_map_e2e.rs:+1:12: +1:21
|
let mut _2: [closure@$DIR/simple_option_map_e2e.rs:14:12: 14:15]; // in scope 0 at $DIR/simple_option_map_e2e.rs:+1:12: +1:21
|
||||||
|
let mut _7: i32; // in scope 0 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
scope 1 (inlined map::<i32, i32, [closure@$DIR/simple_option_map_e2e.rs:14:12: 14:15]>) { // at $DIR/simple_option_map_e2e.rs:14:5: 14:22
|
scope 1 (inlined map::<i32, i32, [closure@$DIR/simple_option_map_e2e.rs:14:12: 14:15]>) { // at $DIR/simple_option_map_e2e.rs:14:5: 14:22
|
||||||
debug slf => _1; // in scope 1 at $DIR/simple_option_map_e2e.rs:2:17: 2:20
|
debug slf => _1; // in scope 1 at $DIR/simple_option_map_e2e.rs:2:17: 2:20
|
||||||
debug f => _2; // in scope 1 at $DIR/simple_option_map_e2e.rs:2:33: 2:34
|
debug f => _2; // in scope 1 at $DIR/simple_option_map_e2e.rs:2:33: 2:34
|
||||||
let mut _3: isize; // in scope 1 at $DIR/simple_option_map_e2e.rs:7:9: 7:16
|
let mut _3: isize; // in scope 1 at $DIR/simple_option_map_e2e.rs:7:9: 7:16
|
||||||
let mut _4: i32; // in scope 1 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
let _4: i32; // in scope 1 at $DIR/simple_option_map_e2e.rs:7:14: 7:15
|
||||||
let mut _5: i32; // in scope 1 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
let mut _5: i32; // in scope 1 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
|
let mut _6: (i32,); // in scope 1 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
scope 2 {
|
scope 2 {
|
||||||
debug x => _5; // in scope 2 at $DIR/simple_option_map_e2e.rs:7:14: 7:15
|
debug x => _4; // in scope 2 at $DIR/simple_option_map_e2e.rs:7:14: 7:15
|
||||||
scope 3 (inlined ezmap::{closure#0}) { // at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
scope 3 (inlined ezmap::{closure#0}) { // at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
debug n => _5; // in scope 3 at $DIR/simple_option_map_e2e.rs:+1:13: +1:14
|
debug n => _7; // in scope 3 at $DIR/simple_option_map_e2e.rs:+1:13: +1:14
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
StorageLive(_2); // scope 0 at $DIR/simple_option_map_e2e.rs:+1:12: +1:21
|
StorageLive(_2); // scope 0 at $DIR/simple_option_map_e2e.rs:+1:12: +1:21
|
||||||
|
StorageLive(_4); // scope 0 at $DIR/simple_option_map_e2e.rs:+1:5: +1:22
|
||||||
_3 = discriminant(_1); // scope 1 at $DIR/simple_option_map_e2e.rs:6:11: 6:14
|
_3 = discriminant(_1); // scope 1 at $DIR/simple_option_map_e2e.rs:6:11: 6:14
|
||||||
switchInt(move _3) -> [0: bb1, 1: bb3, otherwise: bb2]; // scope 1 at $DIR/simple_option_map_e2e.rs:6:5: 6:14
|
switchInt(move _3) -> [0: bb1, 1: bb3, otherwise: bb2]; // scope 1 at $DIR/simple_option_map_e2e.rs:6:5: 6:14
|
||||||
}
|
}
|
||||||
|
@ -34,15 +37,22 @@ fn ezmap(_1: Option<i32>) -> Option<i32> {
|
||||||
}
|
}
|
||||||
|
|
||||||
bb3: {
|
bb3: {
|
||||||
_5 = move ((_1 as Some).0: i32); // scope 1 at $DIR/simple_option_map_e2e.rs:7:14: 7:15
|
_4 = move ((_1 as Some).0: i32); // scope 1 at $DIR/simple_option_map_e2e.rs:7:14: 7:15
|
||||||
StorageLive(_4); // scope 2 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
StorageLive(_5); // scope 2 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
_4 = Add(_5, const 1_i32); // scope 3 at $DIR/simple_option_map_e2e.rs:+1:16: +1:21
|
StorageLive(_6); // scope 2 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
_0 = Option::<i32>::Some(move _4); // scope 2 at $DIR/simple_option_map_e2e.rs:7:20: 7:30
|
_6 = (move _4,); // scope 2 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
StorageDead(_4); // scope 2 at $DIR/simple_option_map_e2e.rs:7:29: 7:30
|
StorageLive(_7); // scope 2 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
|
_7 = move (_6.0: i32); // scope 2 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
|
_5 = Add(_7, const 1_i32); // scope 3 at $DIR/simple_option_map_e2e.rs:+1:16: +1:21
|
||||||
|
StorageDead(_7); // scope 2 at $DIR/simple_option_map_e2e.rs:7:25: 7:29
|
||||||
|
StorageDead(_6); // scope 2 at $DIR/simple_option_map_e2e.rs:7:28: 7:29
|
||||||
|
_0 = Option::<i32>::Some(move _5); // scope 2 at $DIR/simple_option_map_e2e.rs:7:20: 7:30
|
||||||
|
StorageDead(_5); // scope 2 at $DIR/simple_option_map_e2e.rs:7:29: 7:30
|
||||||
goto -> bb4; // scope 1 at $DIR/simple_option_map_e2e.rs:10:1: 10:2
|
goto -> bb4; // scope 1 at $DIR/simple_option_map_e2e.rs:10:1: 10:2
|
||||||
}
|
}
|
||||||
|
|
||||||
bb4: {
|
bb4: {
|
||||||
|
StorageDead(_4); // scope 0 at $DIR/simple_option_map_e2e.rs:+1:5: +1:22
|
||||||
StorageDead(_2); // scope 0 at $DIR/simple_option_map_e2e.rs:+1:21: +1:22
|
StorageDead(_2); // scope 0 at $DIR/simple_option_map_e2e.rs:+1:21: +1:22
|
||||||
return; // scope 0 at $DIR/simple_option_map_e2e.rs:+2:2: +2:2
|
return; // scope 0 at $DIR/simple_option_map_e2e.rs:+2:2: +2:2
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,7 @@
|
||||||
- StorageLive(_2); // scope 0 at $DIR/simplify_locals.rs:+2:5: +2:17
|
- StorageLive(_2); // scope 0 at $DIR/simplify_locals.rs:+2:5: +2:17
|
||||||
- StorageLive(_3); // scope 0 at $DIR/simplify_locals.rs:+2:11: +2:15
|
- StorageLive(_3); // scope 0 at $DIR/simplify_locals.rs:+2:11: +2:15
|
||||||
- _3 = E::A; // scope 0 at $DIR/simplify_locals.rs:+2:11: +2:15
|
- _3 = E::A; // scope 0 at $DIR/simplify_locals.rs:+2:11: +2:15
|
||||||
- Deinit(_2); // scope 0 at $DIR/simplify_locals.rs:+2:6: +2:16
|
- _2 = (const 10_i32, move _3); // scope 0 at $DIR/simplify_locals.rs:+2:6: +2:16
|
||||||
- (_2.0: i32) = const 10_i32; // scope 0 at $DIR/simplify_locals.rs:+2:6: +2:16
|
|
||||||
- (_2.1: E) = move _3; // scope 0 at $DIR/simplify_locals.rs:+2:6: +2:16
|
|
||||||
- StorageDead(_3); // scope 0 at $DIR/simplify_locals.rs:+2:15: +2:16
|
- StorageDead(_3); // scope 0 at $DIR/simplify_locals.rs:+2:15: +2:16
|
||||||
- (_2.1: E) = move _1; // scope 0 at $DIR/simplify_locals.rs:+2:5: +2:26
|
- (_2.1: E) = move _1; // scope 0 at $DIR/simplify_locals.rs:+2:5: +2:26
|
||||||
- StorageDead(_1); // scope 0 at $DIR/simplify_locals.rs:+2:25: +2:26
|
- StorageDead(_1); // scope 0 at $DIR/simplify_locals.rs:+2:25: +2:26
|
||||||
|
|
|
@ -21,9 +21,7 @@
|
||||||
_2 = Option::<u8>::None; // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:31: +1:49
|
_2 = Option::<u8>::None; // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:31: +1:49
|
||||||
StorageLive(_3); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:51: +1:68
|
StorageLive(_3); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:51: +1:68
|
||||||
_3 = Option::<T>::None; // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:51: +1:68
|
_3 = Option::<T>::None; // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:51: +1:68
|
||||||
Deinit(_1); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:30: +1:69
|
_1 = (move _2, move _3); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:30: +1:69
|
||||||
(_1.0: std::option::Option<u8>) = move _2; // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:30: +1:69
|
|
||||||
(_1.1: std::option::Option<T>) = move _3; // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:30: +1:69
|
|
||||||
StorageDead(_3); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:68: +1:69
|
StorageDead(_3); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:68: +1:69
|
||||||
StorageDead(_2); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:68: +1:69
|
StorageDead(_2); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:68: +1:69
|
||||||
_5 = discriminant((_1.0: std::option::Option<u8>)); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:12: +1:27
|
_5 = discriminant((_1.0: std::option::Option<u8>)); // scope 1 at $DIR/simplify_locals_fixedpoint.rs:+1:12: +1:27
|
||||||
|
|
|
@ -28,36 +28,30 @@
|
||||||
bb0: {
|
bb0: {
|
||||||
- StorageLive(_1); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:20: +1:28
|
- StorageLive(_1); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:20: +1:28
|
||||||
- StorageLive(_2); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:21: +1:23
|
- StorageLive(_2); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:21: +1:23
|
||||||
- Deinit(_2); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:21: +1:23
|
- _2 = (); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:21: +1:23
|
||||||
- StorageLive(_3); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:25: +1:27
|
- StorageLive(_3); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:25: +1:27
|
||||||
- Deinit(_3); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:25: +1:27
|
- _3 = (); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:25: +1:27
|
||||||
- Deinit(_1); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:20: +1:28
|
- _1 = (move _2, move _3); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:20: +1:28
|
||||||
- (_1.0: ()) = move _2; // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:20: +1:28
|
|
||||||
- (_1.1: ()) = move _3; // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:20: +1:28
|
|
||||||
- StorageDead(_3); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:27: +1:28
|
- StorageDead(_3); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:27: +1:28
|
||||||
- StorageDead(_2); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:27: +1:28
|
- StorageDead(_2); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:27: +1:28
|
||||||
- StorageDead(_1); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:28: +1:29
|
- StorageDead(_1); // scope 0 at $DIR/simplify_locals_removes_unused_consts.rs:+1:28: +1:29
|
||||||
- StorageLive(_4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
- StorageLive(_4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
||||||
- StorageLive(_5); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
- StorageLive(_5); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
||||||
- StorageLive(_6); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
- StorageLive(_6); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
||||||
- Deinit(_6); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
- _6 = (); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
||||||
- StorageLive(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
- StorageLive(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
||||||
- Deinit(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
- _7 = (); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
||||||
- Deinit(_5); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
- _5 = (move _6, move _7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
||||||
- (_5.0: ()) = move _6; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
|
||||||
- (_5.1: ()) = move _7; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
|
||||||
- StorageDead(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
- StorageDead(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
||||||
- StorageDead(_6); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
- StorageDead(_6); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
||||||
- _4 = use_zst(move _5) -> bb1; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
- _4 = use_zst(move _5) -> bb1; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
||||||
+ StorageLive(_1); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
+ StorageLive(_1); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
||||||
+ StorageLive(_2); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
+ StorageLive(_2); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
||||||
+ StorageLive(_3); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
+ StorageLive(_3); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
||||||
+ Deinit(_3); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
+ _3 = (); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:14: +2:16
|
||||||
+ StorageLive(_4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
+ StorageLive(_4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
||||||
+ Deinit(_4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
+ _4 = (); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:18: +2:20
|
||||||
+ Deinit(_2); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
+ _2 = (move _3, move _4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
||||||
+ (_2.0: ()) = move _3; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
|
||||||
+ (_2.1: ()) = move _4; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:13: +2:21
|
|
||||||
+ StorageDead(_4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
+ StorageDead(_4); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
||||||
+ StorageDead(_3); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
+ StorageDead(_3); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:20: +2:21
|
||||||
+ _1 = use_zst(move _2) -> bb1; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
+ _1 = use_zst(move _2) -> bb1; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+2:5: +2:22
|
||||||
|
@ -73,8 +67,7 @@
|
||||||
- StorageLive(_9); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
- StorageLive(_9); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
||||||
- StorageLive(_10); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
- StorageLive(_10); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
||||||
- StorageLive(_11); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
- StorageLive(_11); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
||||||
- Deinit(_11); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
- _11 = Temp { x: const 40_u8 }; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
||||||
- (_11.0: u8) = const 40_u8; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
|
||||||
- _10 = (_11.0: u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
- _10 = (_11.0: u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
||||||
- _9 = Add(move _10, const 2_u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
- _9 = Add(move _10, const 2_u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
||||||
- StorageDead(_10); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:33: +4:34
|
- StorageDead(_10); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:33: +4:34
|
||||||
|
@ -85,8 +78,7 @@
|
||||||
+ StorageLive(_6); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
+ StorageLive(_6); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
||||||
+ StorageLive(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
+ StorageLive(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
||||||
+ StorageLive(_8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
+ StorageLive(_8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
||||||
+ Deinit(_8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
+ _8 = Temp { x: const 40_u8 }; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
||||||
+ (_8.0: u8) = const 40_u8; // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:28
|
|
||||||
+ _7 = (_8.0: u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
+ _7 = (_8.0: u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:30
|
||||||
+ _6 = Add(move _7, const 2_u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
+ _6 = Add(move _7, const 2_u8); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:12: +4:34
|
||||||
+ StorageDead(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:33: +4:34
|
+ StorageDead(_7); // scope 1 at $DIR/simplify_locals_removes_unused_consts.rs:+4:33: +4:34
|
||||||
|
|
|
@ -13,18 +13,12 @@
|
||||||
StorageLive(_1); // scope 0 at $DIR/sroa.rs:+1:5: +1:32
|
StorageLive(_1); // scope 0 at $DIR/sroa.rs:+1:5: +1:32
|
||||||
StorageLive(_2); // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
StorageLive(_2); // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
||||||
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
||||||
Deinit(_3); // scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
_3 = Tag(const 0_usize); // scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
||||||
(_3.0: usize) = const 0_usize; // scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
|
||||||
StorageLive(_4); // scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
StorageLive(_4); // scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
||||||
Deinit(_4); // scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
_4 = Tag(const 1_usize); // scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
||||||
(_4.0: usize) = const 1_usize; // scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
|
||||||
StorageLive(_5); // scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
StorageLive(_5); // scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
||||||
Deinit(_5); // scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
_5 = Tag(const 2_usize); // scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
||||||
(_5.0: usize) = const 2_usize; // scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
_2 = S(move _3, move _4, move _5); // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
||||||
Deinit(_2); // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
|
||||||
(_2.0: Tag) = move _3; // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
|
||||||
(_2.1: Tag) = move _4; // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
|
||||||
(_2.2: Tag) = move _5; // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
|
||||||
StorageDead(_5); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
StorageDead(_5); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
||||||
StorageDead(_4); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
StorageDead(_4); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
||||||
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
||||||
|
|
|
@ -22,10 +22,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
bb1: {
|
bb1: {
|
||||||
Deinit(_4); // scope 0 at $DIR/sroa.rs:+2:8: +2:39
|
_4 = Escaping { a: const 1_u32, b: const 2_u32, c: move _5 }; // scope 0 at $DIR/sroa.rs:+2:8: +2:39
|
||||||
(_4.0: u32) = const 1_u32; // scope 0 at $DIR/sroa.rs:+2:8: +2:39
|
|
||||||
(_4.1: u32) = const 2_u32; // scope 0 at $DIR/sroa.rs:+2:8: +2:39
|
|
||||||
(_4.2: u32) = move _5; // scope 0 at $DIR/sroa.rs:+2:8: +2:39
|
|
||||||
StorageDead(_5); // scope 0 at $DIR/sroa.rs:+2:38: +2:39
|
StorageDead(_5); // scope 0 at $DIR/sroa.rs:+2:38: +2:39
|
||||||
_3 = &(_4.0: u32); // scope 0 at $DIR/sroa.rs:+2:7: +2:41
|
_3 = &(_4.0: u32); // scope 0 at $DIR/sroa.rs:+2:7: +2:41
|
||||||
_2 = &raw const (*_3); // scope 0 at $DIR/sroa.rs:+2:7: +2:41
|
_2 = &raw const (*_3); // scope 0 at $DIR/sroa.rs:+2:7: +2:41
|
||||||
|
|
|
@ -10,10 +10,6 @@
|
||||||
let mut _5: Foo; // in scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
let mut _5: Foo; // in scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
||||||
let mut _6: (); // in scope 0 at $DIR/sroa.rs:+1:45: +1:47
|
let mut _6: (); // in scope 0 at $DIR/sroa.rs:+1:45: +1:47
|
||||||
let mut _7: std::option::Option<isize>; // in scope 0 at $DIR/sroa.rs:+1:60: +1:68
|
let mut _7: std::option::Option<isize>; // in scope 0 at $DIR/sroa.rs:+1:60: +1:68
|
||||||
+ let mut _8: u8; // in scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ let mut _9: (); // in scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ let mut _10: &str; // in scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ let mut _11: std::option::Option<isize>; // in scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
scope 1 {
|
scope 1 {
|
||||||
debug a => _1; // in scope 1 at $DIR/sroa.rs:+1:15: +1:16
|
debug a => _1; // in scope 1 at $DIR/sroa.rs:+1:15: +1:16
|
||||||
debug b => _2; // in scope 1 at $DIR/sroa.rs:+1:18: +1:19
|
debug b => _2; // in scope 1 at $DIR/sroa.rs:+1:18: +1:19
|
||||||
|
@ -30,50 +26,26 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
- StorageLive(_5); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
StorageLive(_5); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
||||||
+ StorageLive(_8); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ StorageLive(_9); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ StorageLive(_10); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ StorageLive(_11); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
StorageLive(_6); // scope 0 at $DIR/sroa.rs:+1:45: +1:47
|
StorageLive(_6); // scope 0 at $DIR/sroa.rs:+1:45: +1:47
|
||||||
Deinit(_6); // scope 0 at $DIR/sroa.rs:+1:45: +1:47
|
_6 = (); // scope 0 at $DIR/sroa.rs:+1:45: +1:47
|
||||||
StorageLive(_7); // scope 0 at $DIR/sroa.rs:+1:60: +1:68
|
StorageLive(_7); // scope 0 at $DIR/sroa.rs:+1:60: +1:68
|
||||||
_7 = Option::<isize>::Some(const -4_isize); // scope 0 at $DIR/sroa.rs:+1:60: +1:68
|
_7 = Option::<isize>::Some(const -4_isize); // scope 0 at $DIR/sroa.rs:+1:60: +1:68
|
||||||
- Deinit(_5); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
_5 = Foo { a: const 5_u8, b: move _6, c: const "a", d: move _7 }; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
||||||
- (_5.0: u8) = const 5_u8; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
- (_5.1: ()) = move _6; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
- (_5.2: &str) = const "a"; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ Deinit(_8); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ Deinit(_9); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ Deinit(_10); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ Deinit(_11); // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ _8 = const 5_u8; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ _9 = move _6; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ _10 = const "a"; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/sroa.rs:57:52: 57:55
|
// + span: $DIR/sroa.rs:57:52: 57:55
|
||||||
// + literal: Const { ty: &str, val: Value(Slice(..)) }
|
// + literal: Const { ty: &str, val: Value(Slice(..)) }
|
||||||
- (_5.3: std::option::Option<isize>) = move _7; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
+ _11 = move _7; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
|
|
||||||
StorageDead(_7); // scope 0 at $DIR/sroa.rs:+1:69: +1:70
|
StorageDead(_7); // scope 0 at $DIR/sroa.rs:+1:69: +1:70
|
||||||
StorageDead(_6); // scope 0 at $DIR/sroa.rs:+1:69: +1:70
|
StorageDead(_6); // scope 0 at $DIR/sroa.rs:+1:69: +1:70
|
||||||
StorageLive(_1); // scope 0 at $DIR/sroa.rs:+1:15: +1:16
|
StorageLive(_1); // scope 0 at $DIR/sroa.rs:+1:15: +1:16
|
||||||
- _1 = (_5.0: u8); // scope 0 at $DIR/sroa.rs:+1:15: +1:16
|
_1 = (_5.0: u8); // scope 0 at $DIR/sroa.rs:+1:15: +1:16
|
||||||
+ _1 = _8; // scope 0 at $DIR/sroa.rs:+1:15: +1:16
|
|
||||||
StorageLive(_2); // scope 0 at $DIR/sroa.rs:+1:18: +1:19
|
StorageLive(_2); // scope 0 at $DIR/sroa.rs:+1:18: +1:19
|
||||||
- _2 = (_5.1: ()); // scope 0 at $DIR/sroa.rs:+1:18: +1:19
|
_2 = (_5.1: ()); // scope 0 at $DIR/sroa.rs:+1:18: +1:19
|
||||||
+ _2 = _9; // scope 0 at $DIR/sroa.rs:+1:18: +1:19
|
|
||||||
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+1:21: +1:22
|
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+1:21: +1:22
|
||||||
- _3 = (_5.2: &str); // scope 0 at $DIR/sroa.rs:+1:21: +1:22
|
_3 = (_5.2: &str); // scope 0 at $DIR/sroa.rs:+1:21: +1:22
|
||||||
+ _3 = _10; // scope 0 at $DIR/sroa.rs:+1:21: +1:22
|
|
||||||
StorageLive(_4); // scope 0 at $DIR/sroa.rs:+1:24: +1:25
|
StorageLive(_4); // scope 0 at $DIR/sroa.rs:+1:24: +1:25
|
||||||
- _4 = (_5.3: std::option::Option<isize>); // scope 0 at $DIR/sroa.rs:+1:24: +1:25
|
_4 = (_5.3: std::option::Option<isize>); // scope 0 at $DIR/sroa.rs:+1:24: +1:25
|
||||||
- StorageDead(_5); // scope 0 at $DIR/sroa.rs:+1:70: +1:71
|
StorageDead(_5); // scope 0 at $DIR/sroa.rs:+1:70: +1:71
|
||||||
+ _4 = _11; // scope 0 at $DIR/sroa.rs:+1:24: +1:25
|
|
||||||
+ StorageDead(_8); // scope 0 at $DIR/sroa.rs:+1:70: +1:71
|
|
||||||
+ StorageDead(_9); // scope 0 at $DIR/sroa.rs:+1:70: +1:71
|
|
||||||
+ StorageDead(_10); // scope 0 at $DIR/sroa.rs:+1:70: +1:71
|
|
||||||
+ StorageDead(_11); // scope 0 at $DIR/sroa.rs:+1:70: +1:71
|
|
||||||
_0 = const (); // scope 0 at $DIR/sroa.rs:+0:15: +6:2
|
_0 = const (); // scope 0 at $DIR/sroa.rs:+0:15: +6:2
|
||||||
StorageDead(_4); // scope 0 at $DIR/sroa.rs:+6:1: +6:2
|
StorageDead(_4); // scope 0 at $DIR/sroa.rs:+6:1: +6:2
|
||||||
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+6:1: +6:2
|
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+6:1: +6:2
|
||||||
|
|
|
@ -6,28 +6,15 @@
|
||||||
let mut _0: f32; // return place in scope 0 at $DIR/sroa.rs:+0:27: +0:30
|
let mut _0: f32; // return place in scope 0 at $DIR/sroa.rs:+0:27: +0:30
|
||||||
let mut _2: structs::U; // in scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
let mut _2: structs::U; // in scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
||||||
let mut _3: f32; // in scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
let mut _3: f32; // in scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
||||||
+ let mut _4: usize; // in scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
+ let mut _5: f32; // in scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
|
|
||||||
bb0: {
|
bb0: {
|
||||||
- StorageLive(_2); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
StorageLive(_2); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
||||||
+ StorageLive(_4); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
+ StorageLive(_5); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
||||||
_3 = _1; // scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
_3 = _1; // scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
||||||
- Deinit(_2); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
_2 = U { _foo: const 0_usize, a: move _3 }; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
||||||
- (_2.0: usize) = const 0_usize; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
- (_2.1: f32) = move _3; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
+ Deinit(_4); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
+ Deinit(_5); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
+ _4 = const 0_usize; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
+ _5 = move _3; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
||||||
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+6:20: +6:21
|
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+6:20: +6:21
|
||||||
- _0 = (_2.1: f32); // scope 0 at $DIR/sroa.rs:+6:5: +6:23
|
_0 = (_2.1: f32); // scope 0 at $DIR/sroa.rs:+6:5: +6:23
|
||||||
- StorageDead(_2); // scope 0 at $DIR/sroa.rs:+7:1: +7:2
|
StorageDead(_2); // scope 0 at $DIR/sroa.rs:+7:1: +7:2
|
||||||
+ _0 = _5; // scope 0 at $DIR/sroa.rs:+6:5: +6:23
|
|
||||||
+ StorageDead(_4); // scope 0 at $DIR/sroa.rs:+7:1: +7:2
|
|
||||||
+ StorageDead(_5); // scope 0 at $DIR/sroa.rs:+7:1: +7:2
|
|
||||||
return; // scope 0 at $DIR/sroa.rs:+7:2: +7:2
|
return; // scope 0 at $DIR/sroa.rs:+7:2: +7:2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
StorageLive(_2); // scope 1 at $DIR/sroa.rs:+5:14: +5:27
|
StorageLive(_2); // scope 1 at $DIR/sroa.rs:+5:14: +5:27
|
||||||
StorageLive(_3); // scope 1 at $DIR/sroa.rs:+5:24: +5:25
|
StorageLive(_3); // scope 1 at $DIR/sroa.rs:+5:24: +5:25
|
||||||
_3 = _1; // scope 1 at $DIR/sroa.rs:+5:24: +5:25
|
_3 = _1; // scope 1 at $DIR/sroa.rs:+5:24: +5:25
|
||||||
Deinit(_2); // scope 1 at $DIR/sroa.rs:+5:14: +5:27
|
_2 = Repr { f: move _3 }; // scope 1 at $DIR/sroa.rs:+5:14: +5:27
|
||||||
(_2.0: f32) = move _3; // scope 1 at $DIR/sroa.rs:+5:14: +5:27
|
|
||||||
StorageDead(_3); // scope 1 at $DIR/sroa.rs:+5:26: +5:27
|
StorageDead(_3); // scope 1 at $DIR/sroa.rs:+5:26: +5:27
|
||||||
_0 = (_2.1: u32); // scope 1 at $DIR/sroa.rs:+5:14: +5:29
|
_0 = (_2.1: u32); // scope 1 at $DIR/sroa.rs:+5:14: +5:29
|
||||||
StorageDead(_2); // scope 0 at $DIR/sroa.rs:+6:1: +6:2
|
StorageDead(_2); // scope 0 at $DIR/sroa.rs:+6:1: +6:2
|
||||||
|
|
|
@ -23,9 +23,7 @@ fn main() -> () {
|
||||||
StorageLive(_1); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:9: +1:13
|
StorageLive(_1); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:9: +1:13
|
||||||
StorageLive(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
StorageLive(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
||||||
_2 = Test1::C; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
_2 = Test1::C; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
||||||
Deinit(_1); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
_1 = Plop { xx: const 51_u32, test1: move _2 }; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
||||||
(_1.0: u32) = const 51_u32; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
|
||||||
(_1.1: Test1) = move _2; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
|
||||||
StorageDead(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:47: +1:48
|
StorageDead(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:47: +1:48
|
||||||
StorageLive(_3); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:5: +8:6
|
StorageLive(_3); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:5: +8:6
|
||||||
StorageLive(_4); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:11: +3:22
|
StorageLive(_4); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:11: +3:22
|
||||||
|
|
|
@ -24,9 +24,7 @@
|
||||||
StorageLive(_1); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:9: +1:13
|
StorageLive(_1); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:9: +1:13
|
||||||
StorageLive(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
StorageLive(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
||||||
_2 = Test1::C; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
_2 = Test1::C; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:38: +1:46
|
||||||
Deinit(_1); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
_1 = Plop { xx: const 51_u32, test1: move _2 }; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
||||||
(_1.0: u32) = const 51_u32; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
|
||||||
(_1.1: Test1) = move _2; // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:16: +1:48
|
|
||||||
StorageDead(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:47: +1:48
|
StorageDead(_2); // scope 0 at $DIR/uninhabited_enum_branching2.rs:+1:47: +1:48
|
||||||
StorageLive(_3); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:5: +8:6
|
StorageLive(_3); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:5: +8:6
|
||||||
StorageLive(_4); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:11: +3:22
|
StorageLive(_4); // scope 1 at $DIR/uninhabited_enum_branching2.rs:+3:11: +3:22
|
||||||
|
|
|
@ -28,24 +28,12 @@ note: erroneous constant used
|
||||||
LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
|
LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
|
||||||
| ^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^
|
||||||
|
|
||||||
note: erroneous constant used
|
|
||||||
--> $DIR/const-err-late.rs:19:31
|
|
||||||
|
|
|
||||||
LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
|
|
||||||
| ^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
note: erroneous constant used
|
note: erroneous constant used
|
||||||
--> $DIR/const-err-late.rs:19:16
|
--> $DIR/const-err-late.rs:19:16
|
||||||
|
|
|
|
||||||
LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
|
LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
|
||||||
| ^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^
|
||||||
|
|
||||||
note: erroneous constant used
|
|
||||||
--> $DIR/const-err-late.rs:19:31
|
|
||||||
|
|
|
||||||
LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
|
|
||||||
| ^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0080`.
|
For more information about this error, try `rustc --explain E0080`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue