]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #97482 - RalfJung:ptr-invalid, r=thomcc
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 28 May 2022 23:12:33 +0000 (01:12 +0200)
committerGitHub <noreply@github.com>
Sat, 28 May 2022 23:12:33 +0000 (01:12 +0200)
ptr::invalid is not equivalent to a int2ptr cast

I just realized I forgot to update these docs when adding `from_exposed_addr`.
Right now the docs say `invalid` and `from_exposed_addr` are both equivalent to a cast, and that is clearly not what we want.

Cc ``@Gankra``


Trivial merge