False positives when using transmute()
with raw trait object pointers to change trait object lifetimes
#2906
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
I-false-positive
Issue: The lint was triggered on code it shouldn't have
With clippy 0.0.212, I'm getting what appears to be false positives when using
transmute()
to cast either to or from a raw trait object pointer where the input and output types have invariant lifetimes, or if the output type has a longer lifetime such as'static
(casting usingas
isn't allowed in such cases). No warnings are triggered if the source and target types are both references.The text was updated successfully, but these errors were encountered: