[INFO] cloning repository https://github.com/Noskcaj19/term-image [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Noskcaj19/term-image" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoskcaj19%2Fterm-image", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoskcaj19%2Fterm-image'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 478a547f4ea29bbe3b5e0a32345437e64ecf0df9 [INFO] checking Noskcaj19/term-image against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoskcaj19%2Fterm-image" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Noskcaj19/term-image 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] started tweaking git repo https://github.com/Noskcaj19/term-image [INFO] finished tweaking git repo https://github.com/Noskcaj19/term-image [INFO] tweaked toml for git repo https://github.com/Noskcaj19/term-image written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Noskcaj19/term-image 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] bbb314fbd981b377ce4a722f94f2b39489bfc64e6826d7417e230eb5d75239f0 [INFO] running `Command { std: "docker" "start" "-a" "bbb314fbd981b377ce4a722f94f2b39489bfc64e6826d7417e230eb5d75239f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbb314fbd981b377ce4a722f94f2b39489bfc64e6826d7417e230eb5d75239f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbb314fbd981b377ce4a722f94f2b39489bfc64e6826d7417e230eb5d75239f0", kill_on_drop: false }` [INFO] [stdout] bbb314fbd981b377ce4a722f94f2b39489bfc64e6826d7417e230eb5d75239f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 14db4909ee2511d88e3a74535cf755e32dde9f3bd1febf914ae26b49ec2fd935 [INFO] running `Command { std: "docker" "start" "-a" "14db4909ee2511d88e3a74535cf755e32dde9f3bd1febf914ae26b49ec2fd935", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking miniz_oxide v0.5.1 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking deflate v1.0.0 [INFO] [stderr] Checking spin v0.9.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking weezl v0.1.6 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking lebe v0.5.1 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Checking iterm2 v0.3.0 (https://github.com/Noskcaj19/iterm2?rev=a2a7060#a2a7060a) [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking gif v0.11.3 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking flate2 v1.0.23 [INFO] [stderr] Checking png v0.17.5 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.23.2 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking jpeg-decoder v0.2.6 [INFO] [stderr] Checking tiff v0.7.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking flume v0.10.12 [INFO] [stderr] Checking exr v1.4.2 [INFO] [stderr] Checking image v0.24.2 [INFO] [stderr] Checking term-image v0.1.0 (/opt/rustwide/workdir/crates/term-image) [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> crates/term-image/src/braille.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 135 | let options = *options; [INFO] [stdout] | ------- variable defined here [INFO] [stdout] 136 | frames.flatten().map(move |frame| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] ... [INFO] [stdout] 140 | let img = resize_image(&img, (4, 8), options.size); [INFO] [stdout] | ------- variable captured here [INFO] [stdout] 141 | [INFO] [stdout] 142 | (delay, Self::img(&options, &img)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a reference to a captured variable which escapes the closure body [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] = note: requirement occurs because of the type `IntoChunks + '_>`, which makes the generic argument `impl Iterator + '_` invariant [INFO] [stdout] = note: the struct `IntoChunks` is invariant over the parameter `I` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `img` [INFO] [stdout] --> crates/term-image/src/braille.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | (delay, Self::img(&options, &img)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^ [INFO] [stdout] | | | [INFO] [stdout] | | `img` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> crates/term-image/src/braille.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 135 | let options = *options; [INFO] [stdout] | ------- variable defined here [INFO] [stdout] 136 | frames.flatten().map(move |frame| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] ... [INFO] [stdout] 140 | let img = resize_image(&img, (4, 8), options.size); [INFO] [stdout] | ------- variable captured here [INFO] [stdout] 141 | [INFO] [stdout] 142 | (delay, Self::img(&options, &img)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a reference to a captured variable which escapes the closure body [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] = note: requirement occurs because of the type `IntoChunks + '_>`, which makes the generic argument `impl Iterator + '_` invariant [INFO] [stdout] = note: the struct `IntoChunks` is invariant over the parameter `I` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `img` [INFO] [stdout] --> crates/term-image/src/braille.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | (delay, Self::img(&options, &img)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^ [INFO] [stdout] | | | [INFO] [stdout] | | `img` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `term-image` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `term-image` (lib test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "14db4909ee2511d88e3a74535cf755e32dde9f3bd1febf914ae26b49ec2fd935", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14db4909ee2511d88e3a74535cf755e32dde9f3bd1febf914ae26b49ec2fd935", kill_on_drop: false }` [INFO] [stdout] 14db4909ee2511d88e3a74535cf755e32dde9f3bd1febf914ae26b49ec2fd935