about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2020-04-13 20:58:23 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2020-04-14 18:49:29 +0200
commit2a29f8f89deb34356e767e3c0fb9fdd6d4fdbc27 (patch)
tree60c5525398496d355baf0b88480b2ae9070f6e60 /src/test/rustdoc-ui/coverage/json.rs
parent43612e21a61bf6cd4bf741ffce64d7dd3b8ee19f (diff)
downloadrust-2a29f8f89deb34356e767e3c0fb9fdd6d4fdbc27.tar.gz
rust-2a29f8f89deb34356e767e3c0fb9fdd6d4fdbc27.zip
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 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