[INFO] cloning repository https://github.com/Sunrisies/unzip
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sunrisies/unzip" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSunrisies%2Funzip", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSunrisies%2Funzip'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 053047a467af28d97a04a88a992662595adcff84
[INFO] testing Sunrisies/unzip against 1.100.0-beta.1 for beta-1.100-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSunrisies%2Funzip" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Sunrisies/unzip
[INFO] finished tweaking git repo https://github.com/Sunrisies/unzip
[INFO] tweaked toml for git repo https://github.com/Sunrisies/unzip written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Sunrisies/unzip on toolchain 1.100.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Sunrisies/unzip 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" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68
[INFO] running `Command { std: "docker" "start" "6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling typenum v1.18.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling utf8parse v0.2.2
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling rustix v1.0.5
[INFO] [stderr]    Compiling powerfmt v0.2.0
[INFO] [stderr]    Compiling bitflags v2.9.0
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling anstyle-parse v0.2.6
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]    Compiling anstyle v1.0.10
[INFO] [stderr]    Compiling getrandom v0.3.2
[INFO] [stderr]    Compiling colorchoice v1.0.3
[INFO] [stderr]    Compiling portable-atomic v1.11.0
[INFO] [stderr]    Compiling anstyle-query v1.1.2
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling cpufeatures v0.2.17
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling adler2 v2.0.0
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling crc v3.2.1
[INFO] [stderr]    Compiling deranged v0.4.0
[INFO] [stderr]    Compiling hashbrown v0.15.2
[INFO] [stderr]    Compiling anstream v0.6.18
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]    Compiling miniz_oxide v0.8.8
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]    Compiling unicode-width v0.2.0
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling equivalent v1.0.2
[INFO] [stderr]    Compiling simd-adler32 v0.3.7
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling time-core v0.1.4
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling lockfree-object-pool v0.1.6
[INFO] [stderr]    Compiling bumpalo v3.17.0
[INFO] [stderr]    Compiling zip v2.6.1
[INFO] [stderr]    Compiling num-conv v0.1.0
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling clap_lex v0.7.4
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]    Compiling number_prefix v0.4.0
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling deflate64 v0.1.9
[INFO] [stderr]    Compiling clap_builder v4.5.36
[INFO] [stderr]    Compiling crossbeam-deque v0.8.6
[INFO] [stderr]    Compiling flate2 v1.1.1
[INFO] [stderr]    Compiling zopfli v0.8.1
[INFO] [stderr]    Compiling lzma-rs v0.3.0
[INFO] [stderr]    Compiling constant_time_eq v0.3.1
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling crossbeam-channel v0.5.15
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling console v0.15.11
[INFO] [stderr]    Compiling filetime v0.2.25
[INFO] [stderr]    Compiling cc v1.2.19
[INFO] [stderr]    Compiling time v0.3.41
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling memmap2 v0.9.5
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling inout v0.1.4
[INFO] [stderr]    Compiling rayon v1.10.0
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling indicatif v0.17.11
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling pbkdf2 v0.12.2
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]    Compiling bzip2-sys v0.1.13+1.0.8
[INFO] [stderr]    Compiling lzma-sys v0.1.20
[INFO] [stderr]    Compiling bzip2 v0.5.2
[INFO] [stderr]    Compiling xz2 v0.1.7
[INFO] [stderr]    Compiling xattr v1.5.0
[INFO] [stderr]    Compiling tar v0.4.44
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling zstd v0.13.3
[INFO] [stderr]    Compiling clap v4.5.36
[INFO] [stderr]    Compiling unzip v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `BufReader` and `self`
[INFO] [stdout]  --> src/main.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::{self, BufReader, BufWriter, Read, Write};
[INFO] [stdout]   |               ^^^^  ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of function
[INFO] [stdout]    --> src/main.rs:93:20
[INFO] [stdout]     |
[INFO] [stdout]  79 |   fn decompress_zip(input: &Path, output: &Path, pb: &ProgressBar) -> Result<()> {
[INFO] [stdout]     |                     -----  - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     `input` is only valid in the function body
[INFO] [stdout] ...
[INFO] [stdout]  93 |       let producer = std::thread::spawn(move || {
[INFO] [stdout]     |  ____________________^
[INFO] [stdout]  94 | |         for (i, _, is_dir) in &files {
[INFO] [stdout]  95 | |             if *is_dir {
[INFO] [stdout]  96 | |                 sender.send((*i, None)).context("发送目录数据失败")?;
[INFO] [stdout] ...   |
[INFO] [stdout] 112 | |         Ok::<(), anyhow::Error>(())
[INFO] [stdout] 113 | |     });
[INFO] [stdout]     | |      ^
[INFO] [stdout]     | |      |
[INFO] [stdout]     | |______`input` escapes the function body here
[INFO] [stdout]     |        argument requires that `'1` must outlive `'static`
[INFO] [stdout]     |
[INFO] [stdout] note: `'static` lifetime requirement from `std::thread::spawn` introduced here
[INFO] [stdout]    --> /rustc/e3feeb59cd1bdd011a2bfcc0747b55125d9b8527/library/std/src/thread/functions.rs:125:0
[INFO] [stdout]    ::: /rustc/e3feeb59cd1bdd011a2bfcc0747b55125d9b8527/library/std/src/thread/functions.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout]     = note: lifetime requirement introduced here
[INFO] [stdout]    ::: /rustc/e3feeb59cd1bdd011a2bfcc0747b55125d9b8527/library/std/src/thread/functions.rs:129:14
[INFO] [stdout]     |
[INFO] [stdout]     = note: lifetime requirement introduced here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `archive` does not live long enough
[INFO] [stdout]    --> src/main.rs:104:17
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 let mut archive = zip::ZipArchive::new(zip_file)?;
[INFO] [stdout]     |                     ----------- binding `archive` declared here
[INFO] [stdout] 104 |                 archive.by_index(*i)?
[INFO] [stdout]     |                 ^^^^^^^--------------
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 borrowed value does not live long enough
[INFO] [stdout]     |                 a temporary with access to the borrow is created here ...
[INFO] [stdout] 105 |             };
[INFO] [stdout]     |             -- ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow<Result<!, ZipError>, ZipFile<'_, std::fs::File>>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             `archive` dropped here while still borrowed
[INFO] [stdout]     |
[INFO] [stdout]     = note: the temporary is part of an expression at the end of a block;
[INFO] [stdout]             consider forcing this temporary to be dropped sooner, before the block's local variables are dropped
[INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block
[INFO] [stdout]     |
[INFO] [stdout] 104 |                 let x = archive.by_index(*i)?; x
[INFO] [stdout]     |                 +++++++                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `files`
[INFO] [stdout]    --> src/main.rs:116:5
[INFO] [stdout]     |
[INFO] [stdout]  84 |     let files: Vec<_> = (0..archive.len())
[INFO] [stdout]     |         ----- move occurs because `files` has type `Vec<(usize, PathBuf, bool)>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout]  93 |     let producer = std::thread::spawn(move || {
[INFO] [stdout]     |                                       ------- value moved into closure here
[INFO] [stdout]  94 |         for (i, _, is_dir) in &files {
[INFO] [stdout]     |                                ----- variable moved due to use in closure
[INFO] [stdout] ...
[INFO] [stdout] 116 |     files.par_iter().try_for_each(|(i, outpath, is_dir)| {
[INFO] [stdout]     |     ^^^^^ value borrowed here after move
[INFO] [stdout]     |
[INFO] [stdout] help: consider cloning the value before moving it into the closure
[INFO] [stdout]     |
[INFO] [stdout]  93 ~     let value = files.clone();
[INFO] [stdout]  94 ~     let producer = std::thread::spawn(move || {
[INFO] [stdout]  95 ~         for (i, _, is_dir) in &value {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0521, E0597.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `unzip` (bin "unzip") due to 3 previous errors; 1 warning emitted
[INFO] [stderr] warning: unused dependency `memmap2`
[INFO] [stderr]  --> Cargo.toml:6:1
[INFO] [stderr]   |
[INFO] [stderr] 6 | memmap2 = "0.9.5"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `memmap2`
[INFO] [stderr] warning: unused dependency `num_cpus`
[INFO] [stderr]  --> Cargo.toml:7:1
[INFO] [stderr]   |
[INFO] [stderr] 7 | num_cpus = "1.16.0"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: consider removing the dependency on `num_cpus`
[INFO] [stderr] warning: `unzip` (manifest) generated 2 warnings
[INFO] running `Command { std: "docker" "inspect" "6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68", kill_on_drop: false }`
[INFO] [stdout] 6abc07176bb53b2f26c9ae998d6141968a1246d2269adb6082383f77c8470b68
