rust/library/core/src/ptr
Dylan DPC a6ad1394f3
Rollup merge of #96136 - thomcc:lifetime-wording, r=RalfJung
Reword clarification on lifetime for ptr->ref safety docs

I believe the current wording of the safety comment is somewhat misleading, and that this is more accurate. Suggested by `@CAD97` in this thread on the topic https://rust-lang.zulipchat.com/#narrow/stream/136281-t-lang.2Fwg-unsafe-code-guidelines/topic/Lifetime.20of.20reference.20pointer.20docs.20issue

Just to check that this is correct, CC `@RalfJung.`

I suppose it's open for interpretation as to whether or not this is more clear. I think it is.
2022-04-18 18:22:04 +02:00
..
const_ptr.rs Reword clarification on lifetime for ptr->ref safety docs 2022-04-16 21:39:43 -07:00
metadata.rs Fix a few misspellings. 2021-06-25 13:18:56 -07:00
mod.rs Rollup merge of #95588 - RalfJung:strict-provenance, r=scottmcm 2022-04-05 01:53:31 +02:00
mut_ptr.rs Reword clarification on lifetime for ptr->ref safety docs 2022-04-16 21:39:43 -07:00
non_null.rs Reword clarification on lifetime for ptr->ref safety docs 2022-04-16 21:39:43 -07:00
unique.rs Implement core::ptr::Unique on top of NonNull 2022-04-14 19:35:40 +02:00