2 Checks for a redundant `clone()` (and its relatives) which clones an owned
3 value that is going to be dropped without further use.
6 It is not always possible for the compiler to eliminate useless
7 allocations and deallocations generated by redundant `clone()`s.
10 False-negatives: analysis performed by this lint is conservative and limited.
17 call(x.clone()); // this can just pass `x`
20 ["lorem", "ipsum"].join(" ").to_string();
22 Path::new("/a/b").join("c").to_path_buf();