about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-08-22 17:45:41 +0200
committerGitHub <noreply@github.com>2018-08-22 17:45:41 +0200
commit4f78a2d58f234b8e73743834eafee01168ed3767 (patch)
tree0cf4631cedf29c5c39276ed66af147bdf42e6992 /src/test/incremental/thinlto
parentef4b2edbd757bb5042875bc5b1eeebb45bbaea22 (diff)
parent18f41e54d9c457da3e60735f494bffe92f8a303b (diff)
downloadrust-4f78a2d58f234b8e73743834eafee01168ed3767.tar.gz
rust-4f78a2d58f234b8e73743834eafee01168ed3767.zip
Rollup merge of #53574 - vorner:ptr_as_ref_unchecked, r=Mark-Simulacrum
Suggest direct raw-pointer dereference

People often come looking for some kind of `as_ref_unchecked` method on
raw pointers that would give them `&T` and not `Option<&T>` when they
are sure the pointer is not NULL.

There's no such method, but taking a reference of the dereferenced
pointer accomplishes the same thing. Therefore, suggest using that, at
the `as_ref` site ‒ it's a place people are likely going to look into.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions