transmute_ptr_to_ref
false positive for types containing differing lifetimes
#8924
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
There's one last FP in #2906 that wasn't fixed
Lint Name
transmute_ptr_to_ref
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
It shouldn't lint, as
&*ptr
would fail to compileVersion
No response
Additional Labels
No response
The text was updated successfully, but these errors were encountered: