diff options
author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-02-06 19:54:13 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 19:54:13 +0530 |
commit | 496adf81deaec94015e4cde2165d094eac09a940 (patch) | |
tree | acf9e065d74fa7d155cb3ba658fb08e4d844df82 /tests/rustdoc-js-std/parser-errors.js | |
parent | e7813fee92c56621d08e8dbe83948d9f4a30a9ec (diff) | |
parent | 32967296b444b639c965cbf126720c24decc9c65 (diff) | |
download | rust-496adf81deaec94015e4cde2165d094eac09a940.tar.gz |
Rollup merge of #107553 - edward-shen:edward-shen/suggest-null-ptr, r=WaffleLapkin
Suggest std::ptr::null if literal 0 is given to a raw pointer function argument
Implementation feels a little sus (we're parsing the span for a `0`) but it seems to fall in line the string-expected-found-char condition right above this check, so I think it's fine.
Feedback appreciated on help text? I think it's consistent but it does sound a little awkward maybe?
Fixes #107517
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions