File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ declare_clippy_lint! {
4141 /// false positives in cases involving multiple lifetimes that are bounded by
4242 /// each other.
4343 ///
44+ /// Also, it does not take account of other similar cases where getting memory addresses
45+ /// matters; namely, returning the pointer to the argument in question,
46+ /// and passing the argument, as both references and pointers,
47+ /// to a function that needs the memory address. For further details, refer to
48+ /// [this issue](https://github.com/rust-lang/rust-clippy/issues/5953)
49+ /// that explains a real case in which this false positive
50+ /// led to an **undefined behaviour** introduced with unsafe code.
51+ ///
4452 /// **Example:**
4553 ///
4654 /// ```rust
You can’t perform that action at this time.
0 commit comments