fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.4 KiB26 linesraw
1// MIR for `process_void` after SimplifyLocals
2
3fn process_void(_1: *const Void) -> () {
4    debug input => _1;                   // in scope 0 at $DIR/uninhabited-enum.rs:13:21: 13:26
5    let mut _0: ();                      // return place in scope 0 at $DIR/uninhabited-enum.rs:13:41: 13:41
6    let _2: &Void;                       // in scope 0 at $DIR/uninhabited-enum.rs:14:8: 14:14
7    scope 1 {
8        debug _input => _2;              // in scope 1 at $DIR/uninhabited-enum.rs:14:8: 14:14
9    }
10    scope 2 {
11    }
12
13    bb0: {
14        StorageLive(_2);                 // bb0[0]: scope 0 at $DIR/uninhabited-enum.rs:14:8: 14:14
15        _2 = &(*_1);                     // bb0[1]: scope 2 at $DIR/uninhabited-enum.rs:14:26: 14:33
16        _0 = const ();                   // bb0[2]: scope 0 at $DIR/uninhabited-enum.rs:13:41: 17:2
17                                         // ty::Const
18                                         // + ty: ()
19                                         // + val: Value(Scalar(<ZST>))
20                                         // mir::Constant
21                                         // + span: $DIR/uninhabited-enum.rs:13:41: 17:2
22                                         // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
23        StorageDead(_2);                 // bb0[3]: scope 0 at $DIR/uninhabited-enum.rs:17:1: 17:2
24        return;                          // bb0[4]: scope 0 at $DIR/uninhabited-enum.rs:17:2: 17:2
25    }
26}