about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>2020-05-19 15:37:06 +0200
committerDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>2020-05-21 18:38:41 +0200
commita81e9a781b19153d19898c421c80d713dc739d8e (patch)
tree09a76f43bfeb8ccb6f5a9fee1281df6258342626 /src/test/incremental/thinlto
parent06c9fef822b890054fcefa9a567b57eb6edfe638 (diff)
downloadrust-a81e9a781b19153d19898c421c80d713dc739d8e.tar.gz
rust-a81e9a781b19153d19898c421c80d713dc739d8e.zip
Improve documentation of `slice::from_raw_parts`
This is to provide a more explicit statement against a code pattern that
many people end up coming with, since the reason of it being unsound
comes from the badly known single-allocation validity rule.

Providing that very pattern as a counter-example could help mitigate that.

Co-authored-by: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions