[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 try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [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 b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 957afac3c98e550bc321fc55a6d5701d17cb6d29d89fe92d8f300e9433e7ee00 [INFO] running `Command { std: "docker" "start" "-a" "957afac3c98e550bc321fc55a6d5701d17cb6d29d89fe92d8f300e9433e7ee00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "957afac3c98e550bc321fc55a6d5701d17cb6d29d89fe92d8f300e9433e7ee00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "957afac3c98e550bc321fc55a6d5701d17cb6d29d89fe92d8f300e9433e7ee00", kill_on_drop: false }` [INFO] [stdout] 957afac3c98e550bc321fc55a6d5701d17cb6d29d89fe92d8f300e9433e7ee00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19226023e6b36652fd0565083ffe7558cd0d1233c11f2bb7a7f74350e9e07b30 [INFO] running `Command { std: "docker" "start" "-a" "19226023e6b36652fd0565083ffe7558cd0d1233c11f2bb7a7f74350e9e07b30", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling getrandom v0.3.2 [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 linux-raw-sys v0.9.4 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling zip v2.6.1 [INFO] [stderr] Compiling lockfree-object-pool v0.1.6 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling lzma-rs v0.3.0 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling zopfli v0.8.1 [INFO] [stderr] Compiling clap_builder v4.5.36 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling deflate64 v0.1.9 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling cc v1.2.19 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling xattr v1.5.0 [INFO] [stderr] Compiling tar v0.4.44 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling lzma-sys v0.1.20 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling xz2 v0.1.7 [INFO] [stderr] Compiling bzip2 v0.5.2 [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[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, 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[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 a reference that 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] [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] running `Command { std: "docker" "inspect" "19226023e6b36652fd0565083ffe7558cd0d1233c11f2bb7a7f74350e9e07b30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19226023e6b36652fd0565083ffe7558cd0d1233c11f2bb7a7f74350e9e07b30", kill_on_drop: false }` [INFO] [stdout] 19226023e6b36652fd0565083ffe7558cd0d1233c11f2bb7a7f74350e9e07b30