[INFO] cloning repository https://github.com/xwzy/mirrost [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xwzy/mirrost" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxwzy%2Fmirrost", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxwzy%2Fmirrost'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4585dd98fac5fddf37b42739508e352fc6b8c522 [INFO] checking xwzy/mirrost against master#b3bd7058c139e71bae0862ef8f8ac936208873e9 for pr-123752 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxwzy%2Fmirrost" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xwzy/mirrost on toolchain b3bd7058c139e71bae0862ef8f8ac936208873e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xwzy/mirrost [INFO] finished tweaking git repo https://github.com/xwzy/mirrost [INFO] tweaked toml for git repo https://github.com/xwzy/mirrost written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/xwzy/mirrost 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" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b13640ec7ec47a3cd2c857ac1654d330b95bb6e108eae3f38d54dd314bb6bef [INFO] running `Command { std: "docker" "start" "-a" "0b13640ec7ec47a3cd2c857ac1654d330b95bb6e108eae3f38d54dd314bb6bef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b13640ec7ec47a3cd2c857ac1654d330b95bb6e108eae3f38d54dd314bb6bef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b13640ec7ec47a3cd2c857ac1654d330b95bb6e108eae3f38d54dd314bb6bef", kill_on_drop: false }` [INFO] [stdout] 0b13640ec7ec47a3cd2c857ac1654d330b95bb6e108eae3f38d54dd314bb6bef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf90ce34b48d8b907808131bb5264c0bc7d9668576d87853c4c5dd8916009a26 [INFO] running `Command { std: "docker" "start" "-a" "bf90ce34b48d8b907808131bb5264c0bc7d9668576d87853c4c5dd8916009a26", kill_on_drop: false }` [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking mirrost v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/utils/file.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/compare/compare_file.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | fn compare_file(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/utils/file.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_file` is never used [INFO] [stdout] --> src/compare/compare_file.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn compare_file(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/summary/node_summary.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl NodeSummary { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(full_file_path: &str, parent_dir: &str) -> NodeSummary { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_node_summary` is never used [INFO] [stdout] --> src/summary/node_summary.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_node_summary(full_file_path: &str, parent_dir: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNINIT` is never used [INFO] [stdout] --> src/summary/summary.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const UNINIT: i64 = -1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INIT` is never used [INFO] [stdout] --> src/summary/summary.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const INIT: i64 = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/summary/summary.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Summary` is never constructed [INFO] [stdout] --> src/summary/summary.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_file_count`, `get_dir_count`, and `get_total_size` are never used [INFO] [stdout] --> src/summary/summary.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Summary { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 20 | pub fn new(full_dir_path: &str) -> Summary { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_file_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_dir_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_total_size(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init_node`, `get_file_count`, `get_dir_count`, and `get_total_size` are never used [INFO] [stdout] --> src/summary/summary.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 41 | fn new(full_dir_path: &str, parent_dir: &str) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn init_node(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_file_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn get_dir_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn get_total_size(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dir`, `File`, and `Other` are never constructed [INFO] [stdout] --> src/utils/file.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum FileType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | Dir, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | File, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_name` is never used [INFO] [stdout] --> src/utils/file.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_file_name(full_file_path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_relative_file_path` is never used [INFO] [stdout] --> src/utils/file.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_relative_file_path(full_file_path: &str, parent_dir: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_size` is never used [INFO] [stdout] --> src/utils/file.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn get_file_size(full_file_path: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_type` is never used [INFO] [stdout] --> src/utils/file.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_file_type(full_file_path: &str) -> FileType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_md5` is never used [INFO] [stdout] --> src/utils/md5.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_file_md5(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/compare/compare_file.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | fn compare_file(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_file` is never used [INFO] [stdout] --> src/compare/compare_file.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn compare_file(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/summary/node_summary.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl NodeSummary { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(full_file_path: &str, parent_dir: &str) -> NodeSummary { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNINIT` is never used [INFO] [stdout] --> src/summary/summary.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const UNINIT: i64 = -1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INIT` is never used [INFO] [stdout] --> src/summary/summary.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const INIT: i64 = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/summary/summary.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Summary` is never constructed [INFO] [stdout] --> src/summary/summary.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_file_count`, `get_dir_count`, and `get_total_size` are never used [INFO] [stdout] --> src/summary/summary.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Summary { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 20 | pub fn new(full_dir_path: &str) -> Summary { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_file_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_dir_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_total_size(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init_node`, `get_file_count`, `get_dir_count`, and `get_total_size` are never used [INFO] [stdout] --> src/summary/summary.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 41 | fn new(full_dir_path: &str, parent_dir: &str) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn init_node(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_file_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn get_dir_count(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn get_total_size(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "bf90ce34b48d8b907808131bb5264c0bc7d9668576d87853c4c5dd8916009a26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf90ce34b48d8b907808131bb5264c0bc7d9668576d87853c4c5dd8916009a26", kill_on_drop: false }` [INFO] [stdout] bf90ce34b48d8b907808131bb5264c0bc7d9668576d87853c4c5dd8916009a26