[INFO] cloning repository https://github.com/LycrusHamster/lua-rust-interop [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LycrusHamster/lua-rust-interop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLycrusHamster%2Flua-rust-interop", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLycrusHamster%2Flua-rust-interop'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e216ad5d6ae7f47155950c8d26d02bf456826054 [INFO] checking LycrusHamster/lua-rust-interop against try#0ec6e73c26e84416f7a6c0dacee999279e12896e for pr-84385 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLycrusHamster%2Flua-rust-interop" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LycrusHamster/lua-rust-interop on toolchain 0ec6e73c26e84416f7a6c0dacee999279e12896e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0ec6e73c26e84416f7a6c0dacee999279e12896e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LycrusHamster/lua-rust-interop [INFO] finished tweaking git repo https://github.com/LycrusHamster/lua-rust-interop [INFO] tweaked toml for git repo https://github.com/LycrusHamster/lua-rust-interop written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/LycrusHamster/lua-rust-interop already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0ec6e73c26e84416f7a6c0dacee999279e12896e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+0ec6e73c26e84416f7a6c0dacee999279e12896e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6dc6e3e132a37b04bd6d27b43da1b33252fffeba428a5c45d0a90462b693a3f [INFO] running `Command { std: "docker" "start" "-a" "c6dc6e3e132a37b04bd6d27b43da1b33252fffeba428a5c45d0a90462b693a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6dc6e3e132a37b04bd6d27b43da1b33252fffeba428a5c45d0a90462b693a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6dc6e3e132a37b04bd6d27b43da1b33252fffeba428a5c45d0a90462b693a3f", kill_on_drop: false }` [INFO] [stdout] c6dc6e3e132a37b04bd6d27b43da1b33252fffeba428a5c45d0a90462b693a3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+0ec6e73c26e84416f7a6c0dacee999279e12896e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1ed4badcc01cf05c9f7ee3300d4bf55706ef29fa315d14798e7f1b72365fc5a [INFO] running `Command { std: "docker" "start" "-a" "e1ed4badcc01cf05c9f7ee3300d4bf55706ef29fa315d14798e7f1b72365fc5a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling cc v1.0.48 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling rlua v0.17.0 [INFO] [stderr] Checking bstr v0.2.8 [INFO] [stderr] Checking rust-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0521]: borrowed data escapes outside of closure [INFO] [stdout] --> src/main.rs:224:28 [INFO] [stdout] | [INFO] [stdout] 52 | lua.context(|lua_ctx| { [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | `lua_ctx` is a reference that is only valid in the closure body [INFO] [stdout] | has type `LuaContext<'1>` [INFO] [stdout] ... [INFO] [stdout] 224 | let create_table = lua_ctx.create_function(|lua_ctx, ()| { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 225 | | let t = lua_ctx.create_table()?; [INFO] [stdout] 226 | | t.set(1, 1)?; [INFO] [stdout] 227 | | t.set(2, 2)?; [INFO] [stdout] 228 | | Ok(t) [INFO] [stdout] 229 | | })?; [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________`lua_ctx` escapes the closure body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of the type `LuaContext<'_>`, which makes the generic argument `'_` invariant [INFO] [stdout] = note: the struct `LuaContext<'lua>` is invariant over the parameter `'lua` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of closure [INFO] [stdout] --> src/main.rs:224:28 [INFO] [stdout] | [INFO] [stdout] 52 | lua.context(|lua_ctx| { [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | `lua_ctx` is a reference that is only valid in the closure body [INFO] [stdout] | has type `LuaContext<'1>` [INFO] [stdout] ... [INFO] [stdout] 224 | let create_table = lua_ctx.create_function(|lua_ctx, ()| { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 225 | | let t = lua_ctx.create_table()?; [INFO] [stdout] 226 | | t.set(1, 1)?; [INFO] [stdout] 227 | | t.set(2, 2)?; [INFO] [stdout] 228 | | Ok(t) [INFO] [stdout] 229 | | })?; [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________`lua_ctx` escapes the closure body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of the type `LuaContext<'_>`, which makes the generic argument `'_` invariant [INFO] [stdout] = note: the struct `LuaContext<'lua>` is invariant over the parameter `'lua` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-test` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-test` due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "e1ed4badcc01cf05c9f7ee3300d4bf55706ef29fa315d14798e7f1b72365fc5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ed4badcc01cf05c9f7ee3300d4bf55706ef29fa315d14798e7f1b72365fc5a", kill_on_drop: false }` [INFO] [stdout] e1ed4badcc01cf05c9f7ee3300d4bf55706ef29fa315d14798e7f1b72365fc5a