Auto merge of #6174 - upsuper-forks:transmute-ptr-to-ref-issue, r=Manishearth

Add a known problem for transmute_ptr_to_ref lint

changelog: none
This commit is contained in:
bors 2020-10-14 21:54:32 +00:00
commit de7e82ed11

View File

@ -98,7 +98,11 @@
///
/// **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