Closed
Description
The documentation for Deref
reads, in part:
Implementing
Deref
for smart pointers makes accessing the data behind them convenient, which is why they implementDeref
. On the other hand, the rules regardingDeref
andDerefMut
were designed specifically to accommodate smart pointers. Because of this,Deref
should only be implemented for smart pointers to avoid confusion.
This warning has sparked significant confusion, which seems to stem from there being no consensus of what actually is a "smart pointer". The warning should be either removed or rewritten in terms of well-understood properties.
Relevant URLO discussions:
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsCategory: An issue proposing an enhancement or a PR with one.Call for participation: Help is requested to fix this issue.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Relevant to the library team, which will review and decide on the PR/issue.