[INFO] fetching crate distant-lua 0.15.1... [INFO] checking distant-lua-0.15.1 against try#0ec6e73c26e84416f7a6c0dacee999279e12896e for pr-84385 [INFO] extracting crate distant-lua 0.15.1 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate distant-lua 0.15.1 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] removed /workspace/builds/worker-2/source/.cargo/config.toml [INFO] started tweaking crates.io crate distant-lua 0.15.1 [INFO] finished tweaking crates.io crate distant-lua 0.15.1 [INFO] tweaked toml for crates.io crate distant-lua 0.15.1 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0ec6e73c26e84416f7a6c0dacee999279e12896e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0ec6e73c26e84416f7a6c0dacee999279e12896e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] 6d8ba9fdb1ab3d9582aaddb0b9cf9337eb0611c32a1a7111e78997bc1b308eff [INFO] running `Command { std: "docker" "start" "-a" "6d8ba9fdb1ab3d9582aaddb0b9cf9337eb0611c32a1a7111e78997bc1b308eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d8ba9fdb1ab3d9582aaddb0b9cf9337eb0611c32a1a7111e78997bc1b308eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d8ba9fdb1ab3d9582aaddb0b9cf9337eb0611c32a1a7111e78997bc1b308eff", kill_on_drop: false }` [INFO] [stdout] 6d8ba9fdb1ab3d9582aaddb0b9cf9337eb0611c32a1a7111e78997bc1b308eff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] 1666cd02eecdd78a7dcf76090eb15d485eab24ffd454b6ba7d0cd192f5caafde [INFO] running `Command { std: "docker" "start" "-a" "1666cd02eecdd78a7dcf76090eb15d485eab24ffd454b6ba7d0cd192f5caafde", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Compiling proc-macro2 v1.0.46 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.102 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Checking once_cell v1.15.0 [INFO] [stderr] Checking cache-padded v1.2.0 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Checking concurrent-queue v1.2.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling serde_derive v1.0.145 [INFO] [stderr] Compiling openssl-src v111.22.0+1.1.1q [INFO] [stderr] Compiling serde v1.0.145 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling polling v2.3.0 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling async-io v1.9.0 [INFO] [stderr] Checking async-task v4.3.0 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Checking async-channel v1.7.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling tokio v1.21.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling anyhow v1.0.65 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Compiling thiserror v1.0.37 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling async-net v1.7.0 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling async-process v1.5.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking ioctl-rs v0.1.6 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking serial-core v0.4.0 [INFO] [stderr] Checking termios v0.2.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling semver v1.0.14 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking cpufeatures v0.2.5 [INFO] [stderr] Compiling unicode-segmentation v1.10.0 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling libz-sys v1.1.8 [INFO] [stderr] Compiling openssl-sys v0.9.76 [INFO] [stderr] Compiling libssh2-sys v0.2.23 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking serial-unix v0.4.0 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking blocking v1.2.0 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking aho-corasick v0.7.19 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking async-lock v2.5.0 [INFO] [stderr] Checking zeroize v1.5.7 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Compiling camino v1.1.1 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking chacha20 v0.8.2 [INFO] [stderr] Checking poly1305 v0.7.2 [INFO] [stderr] Checking bstr v0.1.4 [INFO] [stderr] Checking aead v0.4.3 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking serial v0.4.0 [INFO] [stderr] Checking async-executor v1.4.1 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Compiling luajit-src v210.4.3+resty8384278 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling lua-src v544.0.1 [INFO] [stderr] Compiling erased-serde v0.3.23 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking smol v1.2.5 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling mlua v0.6.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking chacha20poly1305 v0.9.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking iana-time-zone v0.1.51 [INFO] [stderr] Checking rpassword v5.0.1 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking chrono v0.4.22 [INFO] [stderr] Checking whoami v1.2.3 [INFO] [stderr] Compiling rstest v0.11.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Compiling paste v1.0.9 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking simplelog v0.10.2 [INFO] [stderr] Checking filenamegen v0.2.4 [INFO] [stderr] Compiling futures-macro v0.3.24 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.37 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling mlua_derive v0.6.0 [INFO] [stderr] Checking filedescriptor v0.8.2 [INFO] [stderr] Checking portable-pty v0.5.0 [INFO] [stderr] Checking strum v0.21.0 [INFO] [stderr] Checking tokio-util v0.6.10 [INFO] [stderr] Checking async-compat v0.2.1 [INFO] [stderr] Checking futures-executor v0.3.24 [INFO] [stderr] Checking futures v0.3.24 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking distant-core v0.15.1 [INFO] [stderr] Checking ssh2 v0.9.3 [INFO] [stderr] Checking wezterm-ssh v0.2.0 [INFO] [stderr] Checking distant-ssh2 v0.15.1 [INFO] [stderr] Checking distant-lua v0.15.1 (/opt/rustwide/workdir) [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session.rs:44:57 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn make_session_tbl(lua: &Lua) -> LuaResult { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 44 | lua.create_async_function(|lua, opts: LuaValue| async move { [INFO] [stdout] | _________________________________________________________^ [INFO] [stdout] 45 | | let opts = ConnectOpts::from_lua(opts, lua)?; [INFO] [stdout] 46 | | runtime::spawn(Session::connect(opts)).await [INFO] [stdout] 47 | | })?, [INFO] [stdout] | |_________^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session/proc.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 330 | fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] 331 | / methods.add_method("to_tbl", |lua, this, ()| { [INFO] [stdout] 332 | | let tbl = lua.create_table()?; [INFO] [stdout] 333 | | tbl.set("success", this.success)?; [INFO] [stdout] 334 | | tbl.set("exit_code", this.exit_code)?; [INFO] [stdout] 335 | | Ok(tbl) [INFO] [stdout] 336 | | }); [INFO] [stdout] | |__________^ requires that `'lua` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session/proc.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 357 | fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] 358 | / methods.add_method("to_tbl", |lua, this, ()| { [INFO] [stdout] 359 | | let tbl = lua.create_table()?; [INFO] [stdout] 360 | | tbl.set("success", this.success)?; [INFO] [stdout] 361 | | tbl.set("exit_code", this.exit_code)?; [INFO] [stdout] ... | [INFO] [stdout] 364 | | Ok(tbl) [INFO] [stdout] 365 | | }); [INFO] [stdout] | |__________^ requires that `'lua` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 277 | fn add_fields<'lua, F: UserDataFields<'lua, Self>>(fields: &mut F) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] 278 | fields.add_field_method_get("id", |_, this| Ok(this.id)); [INFO] [stdout] 279 | / fields.add_field_method_get("details", |lua, this| { [INFO] [stdout] 280 | | get_session_details(this.id).and_then(|x| to_value!(lua, &x)) [INFO] [stdout] 281 | | }); [INFO] [stdout] | |__________^ requires that `'lua` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session.rs:240:32 [INFO] [stdout] | [INFO] [stdout] 240 | $methods.add_method(stringify!([<$name:snake>]), |$lua, this, params: Option| { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 241 | | let params: LuaValue = match params { [INFO] [stdout] 242 | | Some(params) => params, [INFO] [stdout] 243 | | None => LuaValue::Table($lua.create_table()?), [INFO] [stdout] ... | [INFO] [stdout] 249 | | $block [INFO] [stdout] 250 | | }); [INFO] [stdout] | |______________^ requires that `'lua` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 284 | fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] ... [INFO] [stdout] 294 | impl_methods!(methods, metadata, |lua, m| { to_value!(lua, &m) }); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of function [INFO] [stdout] --> src/utils.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn make_utils_tbl(lua: &Lua) -> LuaResult { [INFO] [stdout] | --- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `lua` is a reference that is only valid in the function body [INFO] [stdout] ... [INFO] [stdout] 16 | / lua.create_function(|lua, (async_fn, millis): (LuaFunction, Option)| { [INFO] [stdout] 17 | | nvim_wrap_async(lua, async_fn, millis.unwrap_or(NVIM_POLL_TIMEOUT)) [INFO] [stdout] 18 | | })?, [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________`lua` escapes the function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `distant-lua` due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session.rs:44:57 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn make_session_tbl(lua: &Lua) -> LuaResult { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 44 | lua.create_async_function(|lua, opts: LuaValue| async move { [INFO] [stdout] | _________________________________________________________^ [INFO] [stdout] 45 | | let opts = ConnectOpts::from_lua(opts, lua)?; [INFO] [stdout] 46 | | runtime::spawn(Session::connect(opts)).await [INFO] [stdout] 47 | | })?, [INFO] [stdout] | |_________^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session/proc.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 330 | fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] 331 | / methods.add_method("to_tbl", |lua, this, ()| { [INFO] [stdout] 332 | | let tbl = lua.create_table()?; [INFO] [stdout] 333 | | tbl.set("success", this.success)?; [INFO] [stdout] 334 | | tbl.set("exit_code", this.exit_code)?; [INFO] [stdout] 335 | | Ok(tbl) [INFO] [stdout] 336 | | }); [INFO] [stdout] | |__________^ requires that `'lua` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session/proc.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 357 | fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] 358 | / methods.add_method("to_tbl", |lua, this, ()| { [INFO] [stdout] 359 | | let tbl = lua.create_table()?; [INFO] [stdout] 360 | | tbl.set("success", this.success)?; [INFO] [stdout] 361 | | tbl.set("exit_code", this.exit_code)?; [INFO] [stdout] ... | [INFO] [stdout] 364 | | Ok(tbl) [INFO] [stdout] 365 | | }); [INFO] [stdout] | |__________^ requires that `'lua` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 277 | fn add_fields<'lua, F: UserDataFields<'lua, Self>>(fields: &mut F) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] 278 | fields.add_field_method_get("id", |_, this| Ok(this.id)); [INFO] [stdout] 279 | / fields.add_field_method_get("details", |lua, this| { [INFO] [stdout] 280 | | get_session_details(this.id).and_then(|x| to_value!(lua, &x)) [INFO] [stdout] 281 | | }); [INFO] [stdout] | |__________^ requires that `'lua` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/session.rs:240:32 [INFO] [stdout] | [INFO] [stdout] 240 | $methods.add_method(stringify!([<$name:snake>]), |$lua, this, params: Option| { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 241 | | let params: LuaValue = match params { [INFO] [stdout] 242 | | Some(params) => params, [INFO] [stdout] 243 | | None => LuaValue::Table($lua.create_table()?), [INFO] [stdout] ... | [INFO] [stdout] 249 | | $block [INFO] [stdout] 250 | | }); [INFO] [stdout] | |______________^ requires that `'lua` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 284 | fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M) { [INFO] [stdout] | ---- lifetime `'lua` defined here [INFO] [stdout] ... [INFO] [stdout] 294 | impl_methods!(methods, metadata, |lua, m| { to_value!(lua, &m) }); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of function [INFO] [stdout] --> src/utils.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn make_utils_tbl(lua: &Lua) -> LuaResult { [INFO] [stdout] | --- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `lua` is a reference that is only valid in the function body [INFO] [stdout] ... [INFO] [stdout] 16 | / lua.create_function(|lua, (async_fn, millis): (LuaFunction, Option)| { [INFO] [stdout] 17 | | nvim_wrap_async(lua, async_fn, millis.unwrap_or(NVIM_POLL_TIMEOUT)) [INFO] [stdout] 18 | | })?, [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________`lua` escapes the function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `distant-lua` due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "1666cd02eecdd78a7dcf76090eb15d485eab24ffd454b6ba7d0cd192f5caafde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1666cd02eecdd78a7dcf76090eb15d485eab24ffd454b6ba7d0cd192f5caafde", kill_on_drop: false }` [INFO] [stdout] 1666cd02eecdd78a7dcf76090eb15d485eab24ffd454b6ba7d0cd192f5caafde