diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2020-05-12 11:41:41 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2020-05-17 10:35:57 -0500 |
| commit | aea0186fe5e583b101016e40da55bd9adcd0bc27 (patch) | |
| tree | 675dcc6080daa4d3f3355807e928a0a268262838 /src/test/rustdoc-js-std/string-from_ut.js | |
| parent | 7faeae0d385730e712634fb2af331ea0140771b4 (diff) | |
| download | rust-aea0186fe5e583b101016e40da55bd9adcd0bc27.tar.gz rust-aea0186fe5e583b101016e40da55bd9adcd0bc27.zip | |
make many ptr functions must_use
https://djugei.github.io/bad-at-unsafe/ describes an error a user had when trying to use offset: > At first I just assumed that the .add() and .offset() methods on pointers would mutate the pointer. They do not. Instead they return a new pointer, which gets dropped silently if you don't use it. Unlike for example Result, which is must_use annotated.
Diffstat (limited to 'src/test/rustdoc-js-std/string-from_ut.js')
0 files changed, 0 insertions, 0 deletions
