We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a15d987 commit 38ed056Copy full SHA for 38ed056
clippy_lints/src/pass_by_ref_or_value.rs
@@ -41,6 +41,14 @@ declare_clippy_lint! {
41
/// false positives in cases involving multiple lifetimes that are bounded by
42
/// each other.
43
///
44
+ /// Also, it does not take account of other similar cases where getting memory addresses
45
+ /// is important; namely, returning the pointer to the argument in question,
46
+ /// and passing the argument to a function that performs some dark magic
47
+ /// as both references and pointers. 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 and more.
51
+ ///
52
/// **Example:**
53
54
/// ```rust
0 commit comments