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! {
41
41
/// false positives in cases involving multiple lifetimes that are bounded by
42
42
/// each other.
43
43
///
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
+ ///
44
52
/// **Example:**
45
53
///
46
54
/// ```rust
You can’t perform that action at this time.
0 commit comments