]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/issue_72181_1.f.mir_map.0.mir
Fix diagnostic issue when using FakeReads in closures
[rust.git] / src / test / mir-opt / issue_72181_1.f.mir_map.0.mir
1 // MIR for `f` 0 mir_map
2
3 fn f(_1: Void) -> ! {
4     debug v => _1;                       // in scope 0 at $DIR/issue-72181-1.rs:10:6: 10:7
5     let mut _0: !;                       // return place in scope 0 at $DIR/issue-72181-1.rs:10:18: 10:19
6     let mut _2: !;                       // in scope 0 at $DIR/issue-72181-1.rs:10:20: 12:2
7     let mut _3: !;                       // in scope 0 at $DIR/issue-72181-1.rs:11:5: 11:15
8
9     bb0: {
10         StorageLive(_2);                 // scope 0 at $DIR/issue-72181-1.rs:10:20: 12:2
11         StorageLive(_3);                 // scope 0 at $DIR/issue-72181-1.rs:11:5: 11:15
12         FakeRead(ForMatchedPlace(None), _1); // scope 0 at $DIR/issue-72181-1.rs:11:11: 11:12
13         unreachable;                     // scope 0 at $DIR/issue-72181-1.rs:11:11: 11:12
14     }
15
16     bb1: {
17         unreachable;                     // scope 0 at $DIR/issue-72181-1.rs:11:5: 11:15
18     }
19
20     bb2: {
21         StorageDead(_3);                 // scope 0 at $DIR/issue-72181-1.rs:11:14: 11:15
22         unreachable;                     // scope 0 at $DIR/issue-72181-1.rs:10:20: 12:2
23     }
24
25     bb3: {
26         StorageDead(_2);                 // scope 0 at $DIR/issue-72181-1.rs:12:1: 12:2
27         return;                          // scope 0 at $DIR/issue-72181-1.rs:12:2: 12:2
28     }
29 }