Skip to content

Commit

Permalink
cast_ptr_alignment: Mention legal use under known problems
Browse files Browse the repository at this point in the history
Refs #2881.
  • Loading branch information
vks authored Jul 9, 2019
1 parent 5f890d4 commit f831b09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_lints/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,8 @@ declare_clippy_lint! {
/// **Why is this bad?** Dereferencing the resulting pointer may be undefined
/// behavior.
///
/// **Known problems:** None.
/// **Known problems:** Using `std::ptr::read_unaligned` and `std::ptr::write_unaligned` or similar
/// on the resulting pointer is fine.
///
/// **Example:**
/// ```rust
Expand Down

0 comments on commit f831b09

Please sign in to comment.