[INFO] fetching crate br-email 0.1.0... [INFO] checking br-email-0.1.0 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate br-email 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate br-email 0.1.0 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-email 0.1.0 [INFO] finished tweaking crates.io crate br-email 0.1.0 [INFO] tweaked toml for crates.io crate br-email 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate br-email 0.1.0 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] cbb6f70885702eadf598714ff85c3162ade7736f982e4a02e25e8b07ff28211a [INFO] running `Command { std: "docker" "start" "-a" "cbb6f70885702eadf598714ff85c3162ade7736f982e4a02e25e8b07ff28211a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbb6f70885702eadf598714ff85c3162ade7736f982e4a02e25e8b07ff28211a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbb6f70885702eadf598714ff85c3162ade7736f982e4a02e25e8b07ff28211a", kill_on_drop: false }` [INFO] [stdout] cbb6f70885702eadf598714ff85c3162ade7736f982e4a02e25e8b07ff28211a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] e5d1b31dca9715176b97f18860315582c36df011fb869aada294c0fb881ea46e [INFO] running `Command { std: "docker" "start" "-a" "e5d1b31dca9715176b97f18860315582c36df011fb869aada294c0fb881ea46e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling proc-macro2 v1.0.55 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Compiling openssl-sys v0.9.84 [INFO] [stderr] Checking base64 v0.21.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl v0.10.49 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking cpufeatures v0.2.6 [INFO] [stderr] Compiling io-lifetimes v1.0.9 [INFO] [stderr] Checking digest v0.10.6 [INFO] [stderr] Checking rustls-pemfile v1.0.2 [INFO] [stderr] Checking regex v1.7.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling rustix v0.37.6 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking rustls-native-certs v0.6.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking linux-raw-sys v0.3.1 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking imap-proto v0.16.2 [INFO] [stderr] Checking sha256 v1.1.2 [INFO] [stderr] Checking sha2 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Checking email-encoding v0.2.0 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking textcode v0.2.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling syn v2.0.15 [INFO] [stderr] Checking email_address v0.2.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking quoted_printable v0.4.7 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking ring v0.16.20 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking uuid v1.3.0 [INFO] [stderr] Checking chrono v0.4.24 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking webpki v0.22.0 [INFO] [stderr] Checking rustls v0.20.8 [INFO] [stderr] Checking br-crypto v0.0.5 [INFO] [stderr] Checking is-terminal v0.4.6 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking rustls-connector v0.16.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling ouroboros_macro v0.15.6 [INFO] [stderr] Checking ouroboros v0.15.6 [INFO] [stderr] Checking rs-pop3 v1.0.8 [INFO] [stderr] Checking imap v3.0.0-alpha.10 [INFO] [stderr] Checking lettre v0.10.3 [INFO] [stderr] Checking br-email v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/pop3/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Pop3 { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pop3` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `mode`, `total_mail`, and `total_size` are never read [INFO] [stdout] --> src/imap/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Imap { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | total_mail: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | total_size: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Imap` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/mod.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | println!("连接中... {}", self.host.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] = 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/pop3/mod.rs:42:77 [INFO] [stdout] | [INFO] [stdout] 42 | let mut gmail_socket = match POP3Stream::connect((self.host.as_str().clone(), self.port.parse::().unwrap()), [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/pop3/mod.rs:44:76 [INFO] [stdout] | [INFO] [stdout] 44 | ... self.host.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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/mod.rs:53:46 [INFO] [stdout] | [INFO] [stdout] 53 | gmail_socket.login(self.mail.as_str().clone(), self.pass.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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/mod.rs:53:74 [INFO] [stdout] | [INFO] [stdout] 53 | gmail_socket.login(self.mail.as_str().clone(), self.pass.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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/qq.rs:108:39 [INFO] [stdout] | [INFO] [stdout] 108 | let code = data[1].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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/qq.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | let mode = data[2].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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/qq.rs:160:39 [INFO] [stdout] | [INFO] [stdout] 160 | let code = data[1].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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/smtp/mod.rs:87:68 [INFO] [stdout] | [INFO] [stdout] 87 | return Attachment::new(name.to_string()).body(fs::read(path.clone()).unwrap(), content_type); [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 9 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `br-email` (lib) due to 10 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/pop3/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Pop3 { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pop3` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `mode`, `total_mail`, and `total_size` are never read [INFO] [stdout] --> src/imap/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Imap { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | total_mail: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | total_size: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Imap` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/mod.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | println!("连接中... {}", self.host.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] = 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/pop3/mod.rs:42:77 [INFO] [stdout] | [INFO] [stdout] 42 | let mut gmail_socket = match POP3Stream::connect((self.host.as_str().clone(), self.port.parse::().unwrap()), [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/pop3/mod.rs:44:76 [INFO] [stdout] | [INFO] [stdout] 44 | ... self.host.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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/mod.rs:53:46 [INFO] [stdout] | [INFO] [stdout] 53 | gmail_socket.login(self.mail.as_str().clone(), self.pass.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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/mod.rs:53:74 [INFO] [stdout] | [INFO] [stdout] 53 | gmail_socket.login(self.mail.as_str().clone(), self.pass.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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/qq.rs:108:39 [INFO] [stdout] | [INFO] [stdout] 108 | let code = data[1].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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/qq.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | let mode = data[2].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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pop3/qq.rs:160:39 [INFO] [stdout] | [INFO] [stdout] 160 | let code = data[1].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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/smtp/mod.rs:87:68 [INFO] [stdout] | [INFO] [stdout] 87 | return Attachment::new(name.to_string()).body(fs::read(path.clone()).unwrap(), content_type); [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 9 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `br-email` (lib test) due to 10 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e5d1b31dca9715176b97f18860315582c36df011fb869aada294c0fb881ea46e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5d1b31dca9715176b97f18860315582c36df011fb869aada294c0fb881ea46e", kill_on_drop: false }` [INFO] [stdout] e5d1b31dca9715176b97f18860315582c36df011fb869aada294c0fb881ea46e