about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/visit.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-26 18:41:55 +0000
committerbors <bors@rust-lang.org>2023-11-26 18:41:55 +0000
commit1bcbb7c93b96828092e83e52d592faa046183d6c (patch)
tree94dcd2ba9b9b2b673e0e17939a51706a6f72bd92 /compiler/rustc_ast/src/visit.rs
parent3bb0171999a65b0650d9405a7b2e8e7dc3476dec (diff)
parente1b4e8a257ee0c1663f0e8dbb8832808cf0d9948 (diff)
downloadrust-1bcbb7c93b96828092e83e52d592faa046183d6c.tar.gz
rust-1bcbb7c93b96828092e83e52d592faa046183d6c.zip
Auto merge of #117697 - WaffleLapkin:non-null-convenience-ops, r=Amanieu
Non null convenience ops

Based on https://github.com/rust-lang/libs-team/issues/251.

I went through all of the methods on `*mut` and added every method, which does not require additional safety conditions, to `NonNull`. (exceptions: `guaranteed_eq`, `guaranteed_ne`, `with_metadata_of`, it's unclear if they are useful here...)

I'm also not sure what types should the "second pointer parameter" be. `*mut`/`*const` might be more permissible, but given that `NonNull` doesn't coerce to them, it might also be annoying. For now I chose the "use `NonNull` everywhere" path, but I'm not sure it's the correct one...

<sub>I'm eepy, so I probably messed up somewhere while copying...</sub>

cc `@scottmcm`
r? libs-api
Diffstat (limited to 'compiler/rustc_ast/src/visit.rs')
0 files changed, 0 insertions, 0 deletions