Function ptr_metadata

const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + PointeeSized, M>(ptr: *const P) -> M

Lowers in MIR to Rvalue::UnaryOp with UnOp::PtrMetadata.

This is used to implement functions like ptr::metadata.