pub fn from_utf16_lossy(v: &[u16]) -> String {
        decode_utf16(v.iter().cloned()).map(|r| r.unwrap_or(REPLACEMENT_CHARACTER)).collect()
    }
// Prevent automatically dropping the String's data
let mut s = mem::ManuallyDrop::new(s);

let ptr = s.as_mut_ptr();
let len = s.len();
benchmarks/haystacks/code/rust-library.rs