fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1// MIR for `use_x` 0 nll 2 3| Free Region Mapping 4| '_#0r | Global | ['_#2r, '_#1r, '_#0r, '_#4r, '_#3r] 5| '_#1r | External | ['_#1r, '_#4r] 6| '_#2r | External | ['_#2r, '_#1r, '_#4r] 7| '_#3r | Local | ['_#4r, '_#3r] 8| '_#4r | Local | ['_#4r] 9| 10| Inferred Region Values 11| '_#0r | U0 | {bb0[0..=1], '_#0r, '_#1r, '_#2r, '_#3r, '_#4r} 12| '_#1r | U0 | {bb0[0..=1], '_#1r} 13| '_#2r | U0 | {bb0[0..=1], '_#2r} 14| '_#3r | U0 | {bb0[0..=1], '_#3r} 15| '_#4r | U0 | {bb0[0..=1], '_#4r} 16| '_#5r | U0 | {bb0[0..=1], '_#1r} 17| '_#6r | U0 | {bb0[0..=1], '_#2r} 18| '_#7r | U0 | {bb0[0..=1], '_#1r} 19| '_#8r | U0 | {bb0[0..=1], '_#3r} 20| 21| Inference Constraints 22| '_#0r live at {bb0[0..=1]} 23| '_#1r live at {bb0[0..=1]} 24| '_#2r live at {bb0[0..=1]} 25| '_#3r live at {bb0[0..=1]} 26| '_#4r live at {bb0[0..=1]} 27| '_#1r: '_#5r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:26: 12:27) 28| '_#1r: '_#7r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:54: 12:55) 29| '_#2r: '_#6r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:42: 12:43) 30| '_#3r: '_#8r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:66: 12:67) 31| '_#5r: '_#1r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:26: 12:27) 32| '_#6r: '_#2r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:42: 12:43) 33| '_#7r: '_#1r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:54: 12:55) 34| '_#8r: '_#3r due to BoringNoLocation at All($DIR/named-lifetimes-basic.rs:12:66: 12:67) 35| 36fn use_x(_1: &'_#5r mut i32, _2: &'_#6r u32, _3: &'_#7r u32, _4: &'_#8r u32) -> bool { 37 debug w => _1; // in scope 0 at $DIR/named-lifetimes-basic.rs:12:26: 12:27 38 debug x => _2; // in scope 0 at $DIR/named-lifetimes-basic.rs:12:42: 12:43 39 debug y => _3; // in scope 0 at $DIR/named-lifetimes-basic.rs:12:54: 12:55 40 debug z => _4; // in scope 0 at $DIR/named-lifetimes-basic.rs:12:66: 12:67 41 let mut _0: bool; // return place in scope 0 at $DIR/named-lifetimes-basic.rs:12:81: 12:85 42 43 bb0: { 44 _0 = const Const(Value(Scalar(0x01)): bool); // bb0[0]: scope 0 at $DIR/named-lifetimes-basic.rs:12:88: 12:92 45 // ty::Const 46 // + ty: bool 47 // + val: Value(Scalar(0x01)) 48 // mir::Constant 49 // + span: $DIR/named-lifetimes-basic.rs:12:88: 12:92 50 // + literal: Const { ty: bool, val: Value(Scalar(0x01)) } 51 return; // bb0[1]: scope 0 at $DIR/named-lifetimes-basic.rs:12:94: 12:94 52 } 53}