[INFO] cloning repository https://github.com/zachs18/imagegen-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zachs18/imagegen-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachs18%2Fimagegen-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachs18%2Fimagegen-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 443c71722dbc03345a2430badfbde012de5a7f67 [INFO] checking zachs18/imagegen-rs against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachs18%2Fimagegen-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zachs18/imagegen-rs on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/zachs18/imagegen-rs [INFO] finished tweaking git repo https://github.com/zachs18/imagegen-rs [INFO] tweaked toml for git repo https://github.com/zachs18/imagegen-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/zachs18/imagegen-rs 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56cf4cb3efbcecec3f2502165793b82aeda303ade6482c108ba7d3864837914c [INFO] running `Command { std: "docker" "start" "-a" "56cf4cb3efbcecec3f2502165793b82aeda303ade6482c108ba7d3864837914c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56cf4cb3efbcecec3f2502165793b82aeda303ade6482c108ba7d3864837914c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56cf4cb3efbcecec3f2502165793b82aeda303ade6482c108ba7d3864837914c", kill_on_drop: false }` [INFO] [stdout] 56cf4cb3efbcecec3f2502165793b82aeda303ade6482c108ba7d3864837914c [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 628afb8e47b602e8f88af5700dfe2ddae395b6b1ae1d4a800aa2c8abaebab383 [INFO] running `Command { std: "docker" "start" "-a" "628afb8e47b602e8f88af5700dfe2ddae395b6b1ae1d4a800aa2c8abaebab383", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling textwrap v0.16.0 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling thiserror v1.0.47 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling bindgen v0.60.1 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling clang-sys v1.4.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling tokio v1.24.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking radium v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling clap v3.2.23 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking bitmap v0.1.0 (/opt/rustwide/workdir/bitmap) [INFO] [stdout] warning: unused variable: `start_bit_idx` [INFO] [stdout] --> bitmap/src/lib.rs:340:17 [INFO] [stdout] | [INFO] [stdout] 340 | let start_bit_idx = (self.inner.bits.start % 8) as u8; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_bit_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stdout] warning: unused variable: `start_bit_idx` [INFO] [stdout] --> bitmap/src/lib.rs:340:17 [INFO] [stdout] | [INFO] [stdout] 340 | let start_bit_idx = (self.inner.bits.start % 8) as u8; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_bit_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling thiserror-impl v1.0.47 [INFO] [stderr] Checking getopt v0.1.0 (/opt/rustwide/workdir/getopt) [INFO] [stderr] Compiling imagegen v0.1.0 (/opt/rustwide/workdir/imagegen) [INFO] [stdout] warning: unused variable: `placed_pixels` [INFO] [stdout] --> imagegen/src/generate.rs:282:51 [INFO] [stdout] | [INFO] [stdout] 282 | let CommonLockedData { image, placed_pixels, edges } = [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `placed_pixels: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `placed_pixels` [INFO] [stdout] --> imagegen/src/generate.rs:423:37 [INFO] [stdout] | [INFO] [stdout] 423 | ... placed_pixels, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `placed_pixels: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opts` [INFO] [stdout] --> imagegen/src/geometry.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | opts: &[GetoptItem<'_>], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_opts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `placed_pixels` [INFO] [stdout] --> imagegen/src/generate.rs:282:51 [INFO] [stdout] | [INFO] [stdout] 282 | let CommonLockedData { image, placed_pixels, edges } = [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `placed_pixels: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `placed_pixels` [INFO] [stdout] --> imagegen/src/generate.rs:423:37 [INFO] [stdout] | [INFO] [stdout] 423 | ... placed_pixels, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `placed_pixels: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `geometry` [INFO] [stdout] --> imagegen/src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let geometry = geometry::handle_opts(&opts, &common_data); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_geometry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opts` [INFO] [stdout] --> imagegen/src/geometry.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | opts: &[GetoptItem<'_>], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_opts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `getopt` does not live long enough [INFO] [stdout] --> imagegen/src/main.rs:99:16 [INFO] [stdout] | [INFO] [stdout] 90 | let getopt = Getopt::from_iter(chain!( [INFO] [stdout] | ------ binding `getopt` declared here [INFO] [stdout] ... [INFO] [stdout] 99 | let opts = getopt [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | ________________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 100 | | .parse(args.iter().map(String::as_str)) [INFO] [stdout] | |_______________________________________________- argument requires that `getopt` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 143 | } [INFO] [stdout] | - `getopt` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `args` does not live long enough [INFO] [stdout] --> imagegen/src/main.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 88 | let args = std::env::args().skip(1).collect::>(); [INFO] [stdout] | ---- binding `args` declared here [INFO] [stdout] ... [INFO] [stdout] 99 | let opts = getopt [INFO] [stdout] | ________________- [INFO] [stdout] 100 | | .parse(args.iter().map(String::as_str)) [INFO] [stdout] | |________________^^^^___________________________- argument requires that `args` is borrowed for `'static` [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 143 | } [INFO] [stdout] | - `args` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `opts` does not live long enough [INFO] [stdout] --> imagegen/src/main.rs:104:57 [INFO] [stdout] | [INFO] [stdout] 99 | let opts = getopt [INFO] [stdout] | ---- binding `opts` declared here [INFO] [stdout] ... [INFO] [stdout] 104 | let (mut common_data, mut rng) = setup::handle_opts(&opts); [INFO] [stdout] | -------------------^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `opts` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 143 | } [INFO] [stdout] | - `opts` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `imagegen` (bin "imagegen") due to 4 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `geometry` [INFO] [stdout] --> imagegen/src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let geometry = geometry::handle_opts(&opts, &common_data); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_geometry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `getopt` does not live long enough [INFO] [stdout] --> imagegen/src/main.rs:99:16 [INFO] [stdout] | [INFO] [stdout] 90 | let getopt = Getopt::from_iter(chain!( [INFO] [stdout] | ------ binding `getopt` declared here [INFO] [stdout] ... [INFO] [stdout] 99 | let opts = getopt [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | ________________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 100 | | .parse(args.iter().map(String::as_str)) [INFO] [stdout] | |_______________________________________________- argument requires that `getopt` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 143 | } [INFO] [stdout] | - `getopt` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `args` does not live long enough [INFO] [stdout] --> imagegen/src/main.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 88 | let args = std::env::args().skip(1).collect::>(); [INFO] [stdout] | ---- binding `args` declared here [INFO] [stdout] ... [INFO] [stdout] 99 | let opts = getopt [INFO] [stdout] | ________________- [INFO] [stdout] 100 | | .parse(args.iter().map(String::as_str)) [INFO] [stdout] | |________________^^^^___________________________- argument requires that `args` is borrowed for `'static` [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 143 | } [INFO] [stdout] | - `args` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `opts` does not live long enough [INFO] [stdout] --> imagegen/src/main.rs:104:57 [INFO] [stdout] | [INFO] [stdout] 99 | let opts = getopt [INFO] [stdout] | ---- binding `opts` declared here [INFO] [stdout] ... [INFO] [stdout] 104 | let (mut common_data, mut rng) = setup::handle_opts(&opts); [INFO] [stdout] | -------------------^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `opts` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 143 | } [INFO] [stdout] | - `opts` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `imagegen` (bin "imagegen" test) due to 4 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "628afb8e47b602e8f88af5700dfe2ddae395b6b1ae1d4a800aa2c8abaebab383", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "628afb8e47b602e8f88af5700dfe2ddae395b6b1ae1d4a800aa2c8abaebab383", kill_on_drop: false }` [INFO] [stdout] 628afb8e47b602e8f88af5700dfe2ddae395b6b1ae1d4a800aa2c8abaebab383