transmute_ptr_to_ptr: False positive when using transmute in consts #5959
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
Using
transmute
inconst
s (recently stabilized) to cast one pointer to another raisestransmute_ptr_to_ptr
warning, despite the fact that dereferencing raw pointers in constants is unstable.(playground)
(playground)
Meta
cargo clippy -V
: clippy 0.0.212 (cfbc6d4 2020-08-21)rustc -Vv
:The text was updated successfully, but these errors were encountered: