rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.75k stars 256 forks source link

Update the now stale warning about `PhantomData<T>` and dropck #363

Closed danielhenrymantilla closed 2 years ago

danielhenrymantilla commented 2 years ago

As of RFC 1238, these warnings have been oudated and thus a source of unnecessary fear and confusion

QuineDot commented 2 years ago

This could presumably close #17 and/or #208. See also reference #303 and UCG #271.

The RFCs left the door open to go back on behavior, but see also the conversation in Rust PR 46749, where @nikomatsakis says

I find this logic persuasive. It'd be nice if we could have it documented somewhere very central.

8573 commented 2 years ago

👍 for discussing the change in the text (as opposed to simply deleting the obsolete text).