]> git.lizzy.rs Git - rust.git/commit
Auto merge of #41602 - hsivonen:explainnonnull, r=steveklabnik
authorbors <bors@rust-lang.org>
Sun, 30 Apr 2017 07:58:10 +0000 (07:58 +0000)
committerbors <bors@rust-lang.org>
Sun, 30 Apr 2017 07:58:10 +0000 (07:58 +0000)
commitc0f86f5927377426fbaf72b17c87a6a7291406cb
tree933adea8dd63e95cca3ac4c635f0ae6acd4a6fc8
parent78f63181360269981085795b7feb0f4b6591f52f
parente36f59e1a2a5d94512b5fb66a0e4e224cd15c092
Auto merge of #41602 - hsivonen:explainnonnull, r=steveklabnik

Explain why zero-length slices require a non-null pointer

In reference to [a thread on Discourse](https://users.rust-lang.org/t/why-does-std-slice-from-raw-parts-require-a-non-null-pointer-for-zero-length-slices/10534), explain why `from_raw_parts` requires a non-null pointer for zero-length slices.

r? @steveklabnik