Closed
Description
With #61444 we are now suggesting people to use as_ref
when they have a raw pointer and need a reference. With #61785 as_ref
gets some expanded documentation on UB avoidance. It might be a good idea to mention that also in the actual suggestion, so people don't have to open the docs to be aware of this.
Cc @estebank
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Medium priorityRelevant to the compiler team, which will review and decide on the PR/issue.