blob: 806df39561b13cb1f0717cad2d773736fd9a7a50 [file]
//@ skip-filecheck
//@ compile-flags: -O -Zmir-opt-level=2 -Cdebuginfo=2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]
// Added after it stopped inlining in a nightly; see
// <https://github.com/rust-lang/rust/issues/123174>
// EMIT_MIR vec_deref.vec_deref_to_slice.runtime-optimized.after.mir
pub fn vec_deref_to_slice(v: &Vec<u8>) -> &[u8] {
v
}