]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/lower_array_len_e2e.array_len.PreCodegen.after.mir
Test drop_tracking_mir before querying generator.
[rust.git] / tests / mir-opt / lower_array_len_e2e.array_len.PreCodegen.after.mir
1 // MIR for `array_len` after PreCodegen
2
3 fn array_len(_1: &[u8; N]) -> usize {
4     debug arr => _1;                     // in scope 0 at $DIR/lower_array_len_e2e.rs:+0:34: +0:37
5     let mut _0: usize;                   // return place in scope 0 at $DIR/lower_array_len_e2e.rs:+0:52: +0:57
6
7     bb0: {
8         _0 = const N;                    // scope 0 at $DIR/lower_array_len_e2e.rs:+1:5: +1:14
9         return;                          // scope 0 at $DIR/lower_array_len_e2e.rs:+2:2: +2:2
10     }
11 }