[INFO] cloning repository https://github.com/fkaa/flu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fkaa/flu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffkaa%2Fflu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffkaa%2Fflu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ee8d2255d4c72a56b15009b1cc719dd8b3e82436 [INFO] checking fkaa/flu against try#8b72f65b805cbe4c261de45030d663f524f27376 for pr-78991 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffkaa%2Fflu" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fkaa/flu on toolchain 8b72f65b805cbe4c261de45030d663f524f27376 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8b72f65b805cbe4c261de45030d663f524f27376" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fkaa/flu [INFO] finished tweaking git repo https://github.com/fkaa/flu [INFO] tweaked toml for git repo https://github.com/fkaa/flu written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/fkaa/flu already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8b72f65b805cbe4c261de45030d663f524f27376" "fetch" "--locked" "--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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+8b72f65b805cbe4c261de45030d663f524f27376" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e6d0a39dcc4b6db3e381abdd1d1a250015fb5109056f5525d904dc604a5771d5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e6d0a39dcc4b6db3e381abdd1d1a250015fb5109056f5525d904dc604a5771d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e6d0a39dcc4b6db3e381abdd1d1a250015fb5109056f5525d904dc604a5771d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6d0a39dcc4b6db3e381abdd1d1a250015fb5109056f5525d904dc604a5771d5", kill_on_drop: false }` [INFO] [stdout] e6d0a39dcc4b6db3e381abdd1d1a250015fb5109056f5525d904dc604a5771d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+8b72f65b805cbe4c261de45030d663f524f27376" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 137bbe60ddabfb41a6fe8d77e583960877cfc3ab1babdc3708b4d79bbc732ac9 [INFO] running `Command { std: "docker" "start" "-a" "137bbe60ddabfb41a6fe8d77e583960877cfc3ab1babdc3708b4d79bbc732ac9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling pkg-config v0.3.5 [INFO] [stderr] Compiling gcc v0.3.11 [INFO] [stderr] Checking libc v0.2.8 [INFO] [stderr] Compiling flu v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / macro_rules! assert_enum { [INFO] [stdout] 6 | | (@as_expr $e:expr) => {$e}; [INFO] [stdout] 7 | | (@as_pat $p:pat) => {$p}; [INFO] [stdout] 8 | | ($left:expr, $($right:tt)*) => ( [INFO] [stdout] ... | [INFO] [stdout] 21 | | ) [INFO] [stdout] 22 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaRef` [INFO] [stdout] --> src/stack/push.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use LuaRef; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaValue` [INFO] [stdout] --> src/stack/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use LuaValue; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaRef` [INFO] [stdout] --> src/stack/read.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use LuaRef; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nil` [INFO] [stdout] --> src/stack/read.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nil; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaValue` [INFO] [stdout] --> src/stack/size.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use LuaValue; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaRef` [INFO] [stdout] --> src/stack/size.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use LuaRef; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nil` [INFO] [stdout] --> src/collections/table.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nil; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/collections/table.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaValue` [INFO] [stdout] --> src/context.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use LuaValue; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Table` [INFO] [stdout] --> src/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use Table; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nil` [INFO] [stdout] --> src/value.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use nil; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Table` [INFO] [stdout] --> src/function.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use Table; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nil` [INFO] [stdout] --> src/function.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nil; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/function.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `nil` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct nil; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / macro_rules! assert_enum { [INFO] [stdout] 6 | | (@as_expr $e:expr) => {$e}; [INFO] [stdout] 7 | | (@as_pat $p:pat) => {$p}; [INFO] [stdout] 8 | | ($left:expr, $($right:tt)*) => ( [INFO] [stdout] ... | [INFO] [stdout] 21 | | ) [INFO] [stdout] 22 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaRef` [INFO] [stdout] --> src/stack/push.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use LuaRef; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaValue` [INFO] [stdout] --> src/stack/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use LuaValue; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaRef` [INFO] [stdout] --> src/stack/read.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use LuaRef; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaValue` [INFO] [stdout] --> src/stack/size.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use LuaValue; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaRef` [INFO] [stdout] --> src/stack/size.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use LuaRef; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/collections/table.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LuaValue` [INFO] [stdout] --> src/context.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use LuaValue; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Table` [INFO] [stdout] --> src/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use Table; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nil` [INFO] [stdout] --> src/function.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nil; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/function.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `nil` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct nil; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cxt` [INFO] [stdout] --> src/value.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cxt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/value.rs:43:32 [INFO] [stdout] | [INFO] [stdout] 43 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cxt` [INFO] [stdout] --> src/borrow.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cxt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/borrow.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/collections/index.rs:31:48 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 31 | ffi::lua_getfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/collections/index.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 37 | ffi::lua_setfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/context.rs:67:67 [INFO] [stdout] | [INFO] [stdout] 66 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 67 | ffi::lua_getfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/context.rs:79:67 [INFO] [stdout] | [INFO] [stdout] 78 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 79 | ffi::lua_setfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/function.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/collections/index.rs:31:86 [INFO] [stdout] | [INFO] [stdout] 31 | ffi::lua_getfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/collections/index.rs:37:86 [INFO] [stdout] | [INFO] [stdout] 37 | ffi::lua_setfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/context.rs:54:83 [INFO] [stdout] | [INFO] [stdout] 54 | let ret = ffi::luaL_dostring(self.handle, CString::new(code).unwrap().as_ptr()); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/context.rs:67:103 [INFO] [stdout] | [INFO] [stdout] 67 | ffi::lua_getfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/context.rs:79:103 [INFO] [stdout] | [INFO] [stdout] 79 | ffi::lua_setfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/function.rs:84:36 [INFO] [stdout] | [INFO] [stdout] 84 | unsafe extern "C" fn fn_wrapper(L: *mut ffi::lua_State) -> libc::c_int [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cxt` [INFO] [stdout] --> src/value.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cxt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/value.rs:43:32 [INFO] [stdout] | [INFO] [stdout] 43 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cxt` [INFO] [stdout] --> src/borrow.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cxt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/borrow.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | fn check(cxt: &'a Context, idx: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/function.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut cxt = Context::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/function.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let mut cxt = Context::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/function.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let mut cxt = Context::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/collections/index.rs:31:48 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 31 | ffi::lua_getfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/collections/index.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 37 | ffi::lua_setfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/context.rs:67:67 [INFO] [stdout] | [INFO] [stdout] 66 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 67 | ffi::lua_getfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/context.rs:79:67 [INFO] [stdout] | [INFO] [stdout] 78 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 79 | ffi::lua_setfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/function.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/collections/index.rs:31:86 [INFO] [stdout] | [INFO] [stdout] 31 | ffi::lua_getfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/collections/index.rs:37:86 [INFO] [stdout] | [INFO] [stdout] 37 | ffi::lua_setfield(cxt.handle, idx, unsafe { CString::new(*self).unwrap().as_ptr() as _ }) [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/context.rs:54:83 [INFO] [stdout] | [INFO] [stdout] 54 | let ret = ffi::luaL_dostring(self.handle, CString::new(code).unwrap().as_ptr()); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/context.rs:67:103 [INFO] [stdout] | [INFO] [stdout] 67 | ffi::lua_getfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/context.rs:79:103 [INFO] [stdout] | [INFO] [stdout] 79 | ffi::lua_setfield(self.handle, ffi::LUA_GLOBALSINDEX, unsafe { CString::new(idx).unwrap().as_ptr() as _ }); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/function.rs:84:36 [INFO] [stdout] | [INFO] [stdout] 84 | unsafe extern "C" fn fn_wrapper(L: *mut ffi::lua_State) -> libc::c_int [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.54s [INFO] running `Command { std: "docker" "inspect" "137bbe60ddabfb41a6fe8d77e583960877cfc3ab1babdc3708b4d79bbc732ac9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "137bbe60ddabfb41a6fe8d77e583960877cfc3ab1babdc3708b4d79bbc732ac9", kill_on_drop: false }` [INFO] [stdout] 137bbe60ddabfb41a6fe8d77e583960877cfc3ab1babdc3708b4d79bbc732ac9