diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2021-03-29 13:29:58 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2021-03-29 16:10:37 -0400 |
| commit | d2657769a22f15098343f9272f52a01145698786 (patch) | |
| tree | 6cf09d1db6aa03017013baedc2157f8a82d53e66 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 8e56a2b27f005e7f81756ccc281eca69900dddd7 (diff) | |
| download | rust-d2657769a22f15098343f9272f52a01145698786.tar.gz rust-d2657769a22f15098343f9272f52a01145698786.zip | |
Improve `clone_on_copy`
Lint on `_.clone().method()` when method takes self by value Set applicability correctly Correct suggestion when the cloned value is a macro call. e.g. `m!(x).clone()` Don't lint when not using the `Clone` trait
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
