about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-14 23:29:56 +0200
committerGitHub <noreply@github.com>2020-04-14 23:29:56 +0200
commit6b8fb7c48a05241a6f7e8e8ee4ea656739f87a80 (patch)
tree6549050378c51a896a15704e0f85e806d792b76e /src/test/rustdoc-ui/coverage/json.rs
parent119e32bca17873c018faf4e0351819311f84aafb (diff)
parentdfd68441beba4db959697974949bc7f613a13e2e (diff)
downloadrust-6b8fb7c48a05241a6f7e8e8ee4ea656739f87a80.tar.gz
rust-6b8fb7c48a05241a6f7e8e8ee4ea656739f87a80.zip
Rollup merge of #71082 - NeoRaider:ptr_slice_len, r=oli-obk,SimonSapin
ptr: introduce len() method on raw slices

It is already possible to extract the pointer part of a raw slice by a
simple cast, but retrieving the length is not possible without relying
on the representation of the raw slice when it is not valid to convert
the raw slice into a slice reference (i.e. the pointer is null or
unaligned).

~Introduce a new function ptr::slice_len() to add this missing feature.~

Introduce a len() method on raw slices to add this missing feature.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions