[INFO] fetching crate br-kafka 0.0.2... [INFO] checking br-kafka-0.0.2 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate br-kafka 0.0.2 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate br-kafka 0.0.2 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate br-kafka 0.0.2 [INFO] finished tweaking crates.io crate br-kafka 0.0.2 [INFO] tweaked toml for crates.io crate br-kafka 0.0.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate br-kafka 0.0.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 39fbf1d7efce1dc95af5289e498308f34c1ba6f63a0ce9adcba3eb77026d1c8d [INFO] running `Command { std: "docker" "start" "-a" "39fbf1d7efce1dc95af5289e498308f34c1ba6f63a0ce9adcba3eb77026d1c8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "39fbf1d7efce1dc95af5289e498308f34c1ba6f63a0ce9adcba3eb77026d1c8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39fbf1d7efce1dc95af5289e498308f34c1ba6f63a0ce9adcba3eb77026d1c8d", kill_on_drop: false }` [INFO] [stdout] 39fbf1d7efce1dc95af5289e498308f34c1ba6f63a0ce9adcba3eb77026d1c8d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3dbe1b43b4270dfe8f6a0a45c27a4875444019e5aa93fb3ffba72fb48de947c6 [INFO] running `Command { std: "docker" "start" "-a" "3dbe1b43b4270dfe8f6a0a45c27a4875444019e5aa93fb3ffba72fb48de947c6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling proc-macro2 v1.0.55 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Compiling io-lifetimes v1.0.9 [INFO] [stderr] Compiling openssl v0.10.49 [INFO] [stderr] Compiling snap v1.1.0 [INFO] [stderr] Compiling rustix v0.37.6 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking miniz_oxide v0.6.2 [INFO] [stderr] Checking crc-catalog v1.1.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking linux-raw-sys v0.3.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling kafka v0.9.0 [INFO] [stderr] Checking ref_slice v1.2.1 [INFO] [stderr] Checking crc v2.1.0 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking flate2 v1.0.25 [INFO] [stderr] Compiling openssl-sys v0.9.84 [INFO] [stderr] Compiling syn v2.0.15 [INFO] [stderr] Checking regex v1.7.3 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking is-terminal v0.4.6 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Checking thiserror v1.0.40 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking br-kafka v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | e.send(&Record::from_value(topic.clone(), data.to_string())) [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:110:63 [INFO] [stdout] | [INFO] [stdout] 110 | info!("kafka 发送 主题[{}] 失败:{:?}", topic.clone(), e); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:142:77 [INFO] [stdout] | [INFO] [stdout] 142 | ... let res = match json::parse(str.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `br-kafka` (lib test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | e.send(&Record::from_value(topic.clone(), data.to_string())) [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:110:63 [INFO] [stdout] | [INFO] [stdout] 110 | info!("kafka 发送 主题[{}] 失败:{:?}", topic.clone(), e); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:142:77 [INFO] [stdout] | [INFO] [stdout] 142 | ... let res = match json::parse(str.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `br-kafka` (lib) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "3dbe1b43b4270dfe8f6a0a45c27a4875444019e5aa93fb3ffba72fb48de947c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dbe1b43b4270dfe8f6a0a45c27a4875444019e5aa93fb3ffba72fb48de947c6", kill_on_drop: false }` [INFO] [stdout] 3dbe1b43b4270dfe8f6a0a45c27a4875444019e5aa93fb3ffba72fb48de947c6