about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <vorner@vorner.cz>2018-08-21 19:57:59 +0200
committerMichal 'vorner' Vaner <vorner@vorner.cz>2018-08-21 20:03:54 +0200
commit18f41e54d9c457da3e60735f494bffe92f8a303b (patch)
treef9b3d571627fb672846d16ac0a5b043dfa01fd5f /src/test/incremental/thinlto
parenta9d496796f091f42c8bac60c5c9ca05e6ca5dcda (diff)
downloadrust-18f41e54d9c457da3e60735f494bffe92f8a303b.tar.gz
rust-18f41e54d9c457da3e60735f494bffe92f8a303b.zip
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