about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-29 01:40:50 +0000
committerbors <bors@rust-lang.org>2023-07-29 01:40:50 +0000
commit4734ac0943cb19cdf42e9d1aa21380da242e7674 (patch)
tree90e6fa6969d09ef5910b3ccc29b2c7558e69b0f1 /src/tools/compiletest
parentca1f813cc305ec504d7e49672c340f0d3a597e5a (diff)
parent2a76c570d6115230af9df0888a721de9fb2c88bc (diff)
downloadrust-4734ac0943cb19cdf42e9d1aa21380da242e7674.tar.gz
rust-4734ac0943cb19cdf42e9d1aa21380da242e7674.zip
Auto merge of #111916 - fee1-dead-contrib:noop-method-call-warn, r=compiler-errors
make `noop_method_call` warn by default

r? `@compiler-errors`
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/lib.rs b/src/tools/compiletest/src/lib.rs
index fc48d015990..1a765477fe5 100644
--- a/src/tools/compiletest/src/lib.rs
+++ b/src/tools/compiletest/src/lib.rs
@@ -1119,7 +1119,7 @@ fn check_overlapping_tests(found_paths: &BTreeSet<PathBuf>) {
     for path in found_paths {
         for ancestor in path.ancestors().skip(1) {
             if found_paths.contains(ancestor) {
-                collisions.push((path, ancestor.clone()));
+                collisions.push((path, ancestor));
             }
         }
     }