mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-17 10:18:20 +00:00
Add a known problem for transmute_ptr_to_ref lint
This commit is contained in:
parent
0b77c35965
commit
e82264860d
1 changed files with 5 additions and 1 deletions
|
@ -98,7 +98,11 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// **Why is this bad?** This can always be rewritten with `&` and `*`.
|
||||
///
|
||||
/// **Known problems:** None.
|
||||
/// **Known problems:**
|
||||
/// - `mem::transmute` in statics and constants is stable from Rust 1.46.0,
|
||||
/// while dereferencing raw pointer is not stable yet.
|
||||
/// If you need to do this in those places,
|
||||
/// you would have to use `transmute` instead.
|
||||
///
|
||||
/// **Example:**
|
||||
/// ```rust,ignore
|
||||
|
|
Loading…
Reference in a new issue