about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2021-03-29 13:29:58 -0400
committerJason Newcomb <jsnewcomb@pm.me>2021-03-29 16:10:37 -0400
commitd2657769a22f15098343f9272f52a01145698786 (patch)
tree6cf09d1db6aa03017013baedc2157f8a82d53e66 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8e56a2b27f005e7f81756ccc281eca69900dddd7 (diff)
downloadrust-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