[INFO] fetching crate flu 0.0.2... [INFO] checking flu-0.0.2 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate flu 0.0.2 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate flu 0.0.2 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate flu 0.0.2 [INFO] finished tweaking crates.io crate flu 0.0.2 [INFO] tweaked toml for crates.io crate flu 0.0.2 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6787282ec2a1c7f6c9602b83e2613dde0af870b53b94f17dbaeca1f23ddea45 [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" "d6787282ec2a1c7f6c9602b83e2613dde0af870b53b94f17dbaeca1f23ddea45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6787282ec2a1c7f6c9602b83e2613dde0af870b53b94f17dbaeca1f23ddea45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6787282ec2a1c7f6c9602b83e2613dde0af870b53b94f17dbaeca1f23ddea45", kill_on_drop: false }` [INFO] [stdout] d6787282ec2a1c7f6c9602b83e2613dde0af870b53b94f17dbaeca1f23ddea45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62a36b96d2f93fdf2c0837a3887c2fee9402352170f3179c2ba81ca33e238f8d [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" "62a36b96d2f93fdf2c0837a3887c2fee9402352170f3179c2ba81ca33e238f8d", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling flu v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `gcc::Config`: gcc::Config has been renamed to gcc::Build [INFO] [stdout] --> build.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | gcc::Config::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | gcc::Config::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: dist/lua-5.1.5/src/lauxlib.c: In function 'luaL_loadfile': [INFO] [stderr] warning: dist/lua-5.1.5/src/lauxlib.c:577:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: 577 | while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: dist/lua-5.1.5/src/lauxlib.c:578:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' [INFO] [stderr] warning: 578 | lf.extraline = 0; [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: dist/lua-5.1.5/src/ldebug.c: In function 'symbexec': [INFO] [stderr] warning: dist/lua-5.1.5/src/ldebug.c:268:22: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: 268 | #define check(x) if (!(x)) return 0; [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: dist/lua-5.1.5/src/ldebug.c:272:26: note: in expansion of macro 'check' [INFO] [stderr] warning: 272 | #define checkreg(pt,reg) check((reg) < (pt)->maxstacksize) [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: dist/lua-5.1.5/src/ldebug.c:414:9: note: in expansion of macro 'checkreg' [INFO] [stderr] warning: 414 | checkreg(pt, a+3); [INFO] [stderr] warning: | ^~~~~~~~ [INFO] [stderr] warning: dist/lua-5.1.5/src/ldebug.c:416:7: note: here [INFO] [stderr] warning: 416 | case OP_JMP: { [INFO] [stderr] warning: | ^~~~ [INFO] [stderr] warning: dist/lua-5.1.5/src/llex.c: In function 'llex': [INFO] [stderr] warning: dist/lua-5.1.5/src/llex.c:369:14: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: 369 | else luaX_lexerror(ls, "invalid long string delimiter", TK_STRING); [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: dist/lua-5.1.5/src/llex.c:371:7: note: here [INFO] [stderr] warning: 371 | case '=': { [INFO] [stderr] warning: | ^~~~ [INFO] [stderr] warning: dist/lua-5.1.5/src/ltable.c: In function 'luaH_get': [INFO] [stderr] warning: dist/lua-5.1.5/src/ltable.c:473:23: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: 473 | case LUA_TNUMBER: { [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: dist/lua-5.1.5/src/ltable.c:481:5: note: here [INFO] [stderr] warning: 481 | default: { [INFO] [stderr] warning: | ^~~~~~~ [INFO] [stderr] warning: dist/lua-5.1.5/src/ltablib.c: In function 'addfield': [INFO] [stderr] warning: dist/lua-5.1.5/src/ltablib.c:137:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: 137 | if (!lua_isstring(L, -1)) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: dist/lua-5.1.5/src/ltablib.c:140:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' [INFO] [stderr] warning: 140 | luaL_addvalue(b); [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [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: `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: 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 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: `nil` [INFO] [stdout] --> src/function.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nil; [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/function.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [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/function.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 98 | / unsafe extern fn wrapper(L: *mut ffi::lua_State) -> libc::c_int [INFO] [stdout] 99 | | where P: Push, R: for<'a> Read<'a> + Size, F: Fn(R) -> P { [INFO] [stdout] | |________________________________________________________________- because it's nested under this `unsafe` fn [INFO] [stdout] 100 | let cxt = Context::from_state_weak(L); [INFO] [stdout] 101 | let func: &mut F = unsafe { mem::transmute(ffi::lua_touserdata(L, ffi::lua_upvalueindex(1))) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [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: `#[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: variable `L` should have a snake case name [INFO] [stdout] --> src/function.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe extern 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: 22 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:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | 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: 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] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/function.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 98 | / unsafe extern fn wrapper(L: *mut ffi::lua_State) -> libc::c_int [INFO] [stdout] 99 | | where P: Push, R: for<'a> Read<'a> + Size, F: Fn(R) -> P { [INFO] [stdout] | |________________________________________________________________- because it's nested under this `unsafe` fn [INFO] [stdout] 100 | let cxt = Context::from_state_weak(L); [INFO] [stdout] 101 | let func: &mut F = unsafe { mem::transmute(ffi::lua_touserdata(L, ffi::lua_upvalueindex(1))) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [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: `#[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: variable `L` should have a snake case name [INFO] [stdout] --> src/function.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe extern 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: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.88s [INFO] running `Command { std: "docker" "inspect" "62a36b96d2f93fdf2c0837a3887c2fee9402352170f3179c2ba81ca33e238f8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62a36b96d2f93fdf2c0837a3887c2fee9402352170f3179c2ba81ca33e238f8d", kill_on_drop: false }` [INFO] [stdout] 62a36b96d2f93fdf2c0837a3887c2fee9402352170f3179c2ba81ca33e238f8d