// MIR for `vec_deref_to_slice` after runtime-optimized

fn vec_deref_to_slice(_1: &Vec<u8>) -> &[u8] {
    debug v => _1;
    let mut _0: &[u8];
    scope 1 (inlined <Vec<u8> as Deref>::deref) {
        debug self => _1;
        scope 2 (inlined Vec::<u8>::as_slice) {
            debug self => _1;
            let mut _3: *const u8;
            let mut _4: usize;
            let _5: *const [u8];
            scope 3 (inlined Vec::<u8>::as_ptr) {
                debug self => _1;
                scope 4 (inlined alloc::raw_vec::RawVec::<u8>::ptr) {
                    scope 5 (inlined alloc::raw_vec::RawVecInner::ptr::<u8>) {
                        scope 6 (inlined alloc::raw_vec::RawVecInner::non_null::<u8>) {
                            let mut _2: std::ptr::NonNull<u8>;
                            scope 7 (inlined std::ptr::Unique::<u8>::cast::<u8>) {
                                scope 8 (inlined NonNull::<u8>::cast::<u8>) {
                                    scope 9 (inlined NonNull::<u8>::as_ptr) {
                                    }
                                }
                            }
                            scope 10 (inlined std::ptr::Unique::<u8>::as_non_null_ptr) {
                            }
                        }
                        scope 11 (inlined NonNull::<u8>::as_ptr) {
                        }
                    }
                }
            }
        }
    }

    bb0: {
        StorageLive(_5);
        StorageLive(_3);
        StorageLive(_2);
        _2 = copy (((((*_1).0: alloc::raw_vec::RawVec<u8>).0: alloc::raw_vec::RawVecInner).0: std::ptr::Unique<u8>).0: std::ptr::NonNull<u8>);
        _3 = copy _2 as *const u8 (Transmute);
        StorageDead(_2);
        StorageLive(_4);
        _4 = copy ((*_1).1: usize);
        _5 = *const [u8] from (copy _3, move _4);
        StorageDead(_4);
        StorageDead(_3);
        _0 = &(*_5);
        StorageDead(_5);
        return;
    }
}
