We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 652b4c7 commit 62eb4e7Copy full SHA for 62eb4e7
clippy_lints/src/returns.rs
@@ -25,6 +25,12 @@ declare_clippy_lint! {
25
/// It is just extraneous code. Remove it to make your code
26
/// more rusty.
27
///
28
+ /// ### Known problems
29
+ /// In the case of some temporaries, e.g. locks, eliding the variable binding could lead
30
+ /// to deadlocks. See [rust-lang issue 37612](https://github.com/rust-lang/rust/issues/37612).
31
+ /// This could become relevant if the code is later changed to use the code that would have been
32
+ /// bound without first assigning it to a let-binding.
33
+ ///
34
/// ### Example
35
/// ```rust
36
/// fn foo() -> String {
0 commit comments