-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
PhantomData confusing documentation #125540
Copy link
Copy link
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
PhantomDatato 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"?