[INFO] cloning repository https://github.com/we-and/rust_ar [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/we-and/rust_ar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwe-and%2Frust_ar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwe-and%2Frust_ar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5bc61a3972d3381bf9f08c38075cbb63e182b5a9 [INFO] checking we-and/rust_ar against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwe-and%2Frust_ar" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/we-and/rust_ar [INFO] finished tweaking git repo https://github.com/we-and/rust_ar [INFO] tweaked toml for git repo https://github.com/we-and/rust_ar written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/we-and/rust_ar on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/we-and/rust_ar 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 68dfed6e085d503f233b851d845af237d7b8e04a2fdb1f9d759aabe17aa25049 [INFO] running `Command { std: "docker" "start" "-a" "68dfed6e085d503f233b851d845af237d7b8e04a2fdb1f9d759aabe17aa25049", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68dfed6e085d503f233b851d845af237d7b8e04a2fdb1f9d759aabe17aa25049", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68dfed6e085d503f233b851d845af237d7b8e04a2fdb1f9d759aabe17aa25049", kill_on_drop: false }` [INFO] [stdout] 68dfed6e085d503f233b851d845af237d7b8e04a2fdb1f9d759aabe17aa25049 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 559d36b75c45438ed246491f3031588d0e46190c5e6005057b77dd4ed46243cd [INFO] running `Command { std: "docker" "start" "-a" "559d36b75c45438ed246491f3031588d0e46190c5e6005057b77dd4ed46243cd", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking textwrap v0.16.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking rust_ar v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek` [INFO] [stdout] --> src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, Seek, SeekFrom, Cursor}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let mut existing_files = read_archive_entries(&archive)?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `archive` [INFO] [stdout] --> src/main.rs:181:25 [INFO] [stdout] | [INFO] [stdout] 181 | fn read_archive_entries(archive: &File) -> io::Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_archive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let mut entries = std::collections::HashMap::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `archive` [INFO] [stdout] --> src/main.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | fn replace_file_in_archive(archive: &mut File, new_file: &Path, offset: &usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_archive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file` [INFO] [stdout] --> src/main.rs:188:48 [INFO] [stdout] | [INFO] [stdout] 188 | fn replace_file_in_archive(archive: &mut File, new_file: &Path, offset: &usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/main.rs:188:65 [INFO] [stdout] | [INFO] [stdout] 188 | fn replace_file_in_archive(archive: &mut File, new_file: &Path, offset: &usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:233:46 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/main.rs:233:62 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before` [INFO] [stdout] --> src/main.rs:233:86 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArHeader` is never constructed [INFO] [stdout] --> src/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct ArHeader { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_ar_header` is never used [INFO] [stdout] --> src/main.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn read_ar_header(cursor: &mut Cursor>) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_file_in_archive` is never used [INFO] [stdout] --> src/main.rs:233:4 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_archive` is never used [INFO] [stdout] --> src/main.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn create_archive(output: &str, files: Vec<&str>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek` [INFO] [stdout] --> src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, Seek, SeekFrom, Cursor}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let mut existing_files = read_archive_entries(&archive)?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `archive` [INFO] [stdout] --> src/main.rs:181:25 [INFO] [stdout] | [INFO] [stdout] 181 | fn read_archive_entries(archive: &File) -> io::Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_archive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let mut entries = std::collections::HashMap::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `archive` [INFO] [stdout] --> src/main.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | fn replace_file_in_archive(archive: &mut File, new_file: &Path, offset: &usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_archive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file` [INFO] [stdout] --> src/main.rs:188:48 [INFO] [stdout] | [INFO] [stdout] 188 | fn replace_file_in_archive(archive: &mut File, new_file: &Path, offset: &usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/main.rs:188:65 [INFO] [stdout] | [INFO] [stdout] 188 | fn replace_file_in_archive(archive: &mut File, new_file: &Path, offset: &usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:233:46 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/main.rs:233:62 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before` [INFO] [stdout] --> src/main.rs:233:86 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArHeader` is never constructed [INFO] [stdout] --> src/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct ArHeader { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_ar_header` is never used [INFO] [stdout] --> src/main.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn read_ar_header(cursor: &mut Cursor>) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_file_in_archive` is never used [INFO] [stdout] --> src/main.rs:233:4 [INFO] [stdout] | [INFO] [stdout] 233 | fn move_file_in_archive(archive_path: &Path, filename: &str, position: Option<&str>, before: bool) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_archive` is never used [INFO] [stdout] --> src/main.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn create_archive(output: &str, files: Vec<&str>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.02s [INFO] running `Command { std: "docker" "inspect" "559d36b75c45438ed246491f3031588d0e46190c5e6005057b77dd4ed46243cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "559d36b75c45438ed246491f3031588d0e46190c5e6005057b77dd4ed46243cd", kill_on_drop: false }` [INFO] [stdout] 559d36b75c45438ed246491f3031588d0e46190c5e6005057b77dd4ed46243cd