transmute_undefined_repr fails to adjust argument types. #8501
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
If I have a
mem::transmute<U, _>(v)
where the type ofv
is autoderef-adjusted toU
, the lint ignores this type adjustment and lints as if the concrete type ofv
would be transmuted.Lint Name
No response
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
(nothing, the lint should not apply here).
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: