Skip to content

Commit

Permalink
Auto merge of #4265 - vks:patch-1, r=flip1995
Browse files Browse the repository at this point in the history
cast_ptr_alignment: Mention legal use under known problems

Refs #2881.

changelog: Mention know problems for cast_ptr_alignment
  • Loading branch information
bors committed Jul 9, 2019
2 parents 5f890d4 + f831b09 commit f0d2170
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 f0d2170

Please sign in to comment.