You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@wuwbobo2021 this issue covers the specific line of documentation that it describes in the summary, please don't try to use it as a catch-all for PhantomData questions
Location
https://doc.rust-lang.org/std/marker/struct.PhantomData.html#ownership-and-the-drop-check, via
rust/library/core/src/marker.rs
Line 728 in 21e6de7
Summary
#103413 updated the documentation for
PhantomData
to sayI don't understand. How rare must these circumstances be for me to use
PhantomData
? What should I do if my type always owns data of typeT
?I guess this is not what was meant, but I am finding it hard to figure out what the intention was and propose an improvement.
Possibly just remove the phrase "in very rare circumstances"?
The text was updated successfully, but these errors were encountered: