Clean up transmute lints' documentation
- Converted example calls of
transmutefromcore::intrinsics::transmutetostd::mem::transmute. - Added missing
unsafeblock fortransmute_ptr_to_ref's example - Added more context to
useless_transmute's example - Added a missing space in a doc comment
- Added MSRV handling to
transmute_ptr_to_ref, such that it handles const contexts gracefully. This fixes its known and documented problem of giving the wrong suggestion prior to 1.58 and 1.83 for transmutation of*constand*mutpointers, respectively.
changelog: transmute_ptr_to_ref fixed FP in const contexts, where under low values of MSRV, alternatives to transmutation didn't exist.
r? @Jarcho
rustbot has assigned @Jarcho. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
Documentation changes don't need
changeloglines in the PR description.
Oh thank god, this is so much better! Thx, Jason!
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
:umbrella: The latest upstream changes (possibly 06ded880d28bbac87affd8fac3ac72a216021b60) made this pull request unmergeable. Please resolve the merge conflicts.