We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ae260b + e822648 commit de7e82eCopy full SHA for de7e82e
clippy_lints/src/transmute.rs
@@ -98,7 +98,11 @@ declare_clippy_lint! {
98
///
99
/// **Why is this bad?** This can always be rewritten with `&` and `*`.
100
101
- /// **Known problems:** None.
+ /// **Known problems:**
102
+ /// - `mem::transmute` in statics and constants is stable from Rust 1.46.0,
103
+ /// while dereferencing raw pointer is not stable yet.
104
+ /// If you need to do this in those places,
105
+ /// you would have to use `transmute` instead.
106
107
/// **Example:**
108
/// ```rust,ignore
0 commit comments