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:
commit
de7e82ed11
@ -98,7 +98,11 @@
|
|||||||
///
|
///
|
||||||
/// **Why is this bad?** This can always be rewritten with `&` and `*`.
|
/// **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:**
|
/// **Example:**
|
||||||
/// ```rust,ignore
|
/// ```rust,ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user