[INFO] cloning repository https://github.com/wyozi-gmod/rvoicehook [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wyozi-gmod/rvoicehook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyozi-gmod%2Frvoicehook", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyozi-gmod%2Frvoicehook'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 678848c25187987d2bb18193aa6731f4cc7c53db [INFO] checking wyozi-gmod/rvoicehook against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyozi-gmod%2Frvoicehook" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wyozi-gmod/rvoicehook 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 git repo https://github.com/wyozi-gmod/rvoicehook [INFO] finished tweaking git repo https://github.com/wyozi-gmod/rvoicehook [INFO] tweaked toml for git repo https://github.com/wyozi-gmod/rvoicehook written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/wyozi-gmod/rvoicehook already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/SpiralP/rust-glua-sys` [INFO] [stderr] Updating git submodule `https://github.com/LuaJIT/LuaJIT.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cmake v0.1.44 [INFO] [stderr] Downloaded region v2.2.0 [INFO] [stderr] Downloaded mmap-fixed v0.1.5 [INFO] [stderr] Downloaded scroll v0.10.1 [INFO] [stderr] Downloaded scroll_derive v0.10.2 [INFO] [stderr] Downloaded libloading v0.6.2 [INFO] [stderr] Downloaded cc v1.0.58 [INFO] [stderr] Downloaded slice-pool v0.4.1 [INFO] [stderr] Downloaded libudis86-sys v0.2.1 [INFO] [stderr] Downloaded goblin v0.2.3 [INFO] [stderr] Downloaded clap v2.33.2 [INFO] [stderr] Downloaded bindgen v0.54.1 [INFO] [stderr] Downloaded detour v0.7.1 [INFO] [stderr] Downloaded clang-sys v0.29.3 [INFO] [stderr] Downloaded libc v0.2.74 [INFO] [stderr] Downloaded plain v0.2.3 [INFO] [stderr] Downloaded syn v1.0.38 [INFO] [stderr] Downloaded magnum-opus v0.3.2 [INFO] [stderr] Downloaded opusic-sys v0.3.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] e4dccbce2f41b535c7d2c12ddceb075cec8b75d31d9057ccec34400fae08057e [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" "e4dccbce2f41b535c7d2c12ddceb075cec8b75d31d9057ccec34400fae08057e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4dccbce2f41b535c7d2c12ddceb075cec8b75d31d9057ccec34400fae08057e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4dccbce2f41b535c7d2c12ddceb075cec8b75d31d9057ccec34400fae08057e", kill_on_drop: false }` [INFO] [stdout] e4dccbce2f41b535c7d2c12ddceb075cec8b75d31d9057ccec34400fae08057e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] 5a6eb752887745a78022cda5a79c705069dbf29af6d5cb18c9b500bdff5ac7ac [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" "5a6eb752887745a78022cda5a79c705069dbf29af6d5cb18c9b500bdff5ac7ac", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling bindgen v0.54.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Compiling rvoicehook v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking slice-pool v0.4.1 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling cmake v0.1.44 [INFO] [stderr] Compiling libudis86-sys v0.2.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling opusic-sys v0.3.4 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Checking region v2.2.0 [INFO] [stderr] Checking mmap-fixed v0.1.5 [INFO] [stderr] Compiling clap v2.33.2 [INFO] [stderr] Checking detour v0.7.1 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling scroll_derive v0.10.2 [INFO] [stderr] Checking magnum-opus v0.3.2 [INFO] [stderr] Checking scroll v0.10.1 [INFO] [stderr] Checking goblin v0.2.3 [INFO] [stderr] Compiling glua-sys v0.1.0 (https://github.com/SpiralP/rust-glua-sys#ab9aa49f) [INFO] [stdout] warning: variant `codec_opusplc` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | codec_opusplc = 6, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecOpusplc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `samplerate` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | samplerate = 11, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Samplerate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `unk` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | unk = 10, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Unk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `silence` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | silence = 0, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Silence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_legacy` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | codec_legacy = 1, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecLegacy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_unk` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | codec_unk = 2, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `CodecUnk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_raw` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | codec_raw = 3, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `CodecRaw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_opus` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | codec_opus = 5, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecOpus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_silk` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | codec_silk = 4 [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecSilk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/lib.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | let ptr = ((*data).addr as usize + syn.st_value as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:102:27 [INFO] [stdout] | [INFO] [stdout] 102 | let ptr = ((*data).addr as usize + syn.st_value as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_opusplc` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | codec_opusplc = 6, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecOpusplc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `samplerate` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | samplerate = 11, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Samplerate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `unk` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | unk = 10, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Unk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `silence` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | silence = 0, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Silence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_legacy` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | codec_legacy = 1, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecLegacy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_unk` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | codec_unk = 2, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `CodecUnk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_raw` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | codec_raw = 3, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `CodecRaw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_opus` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | codec_opus = 5, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecOpus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `codec_silk` should have an upper camel case name [INFO] [stdout] --> src/steam_decoder.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | codec_silk = 4 [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CodecSilk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/lib.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | let ptr = ((*data).addr as usize + syn.st_value as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:102:27 [INFO] [stdout] | [INFO] [stdout] 102 | let ptr = ((*data).addr as usize + syn.st_value as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let res = lua_pcall(L, 3, 0, 0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let res = lua_pcall(L, 3, 0, 0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `L` [INFO] [stdout] --> src/lib.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | extern "C" fn disable(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut slice = unsafe { std::slice::from_raw_parts::(data, byte_count as usize) }; [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: unused variable: `L` [INFO] [stdout] --> src/lib.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | extern "C" fn disable(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let mut hook = unsafe { RawDetour::new(ptr as *const (), voice_detour as *const ()).unwrap() }; [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/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut slice = unsafe { std::slice::from_raw_parts::(data, byte_count as usize) }; [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/lib.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let mut hook = unsafe { RawDetour::new(ptr as *const (), voice_detour as *const ()).unwrap() }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 19 | lua_getglobal!(L, unsafe { C_HOOK.as_ptr() as *const c_char }); [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/lib.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 20 | lua_getfield(L, -1, unsafe { C_RUN.as_ptr() as *const c_char }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 22 | lua_pushstring(L, unsafe { C_VOICEDATA.as_ptr() as *const c_char }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 26 | let data_i8 = unsafe { &*(data as *const _ as *const [i8]) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:84:38 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 84 | let data: *const LinkMap32 = unsafe { ptr as *const LinkMap32 }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:96:32 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 96 | let mut hook = unsafe { RawDetour::new(ptr as *const (), voice_detour as *const ()).unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 97 | unsafe { hook.enable().unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub unsafe extern "C" fn gmod13_open(L: *mut lua_State) -> c_int { [INFO] [stdout] | ---------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 156 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub unsafe extern "C" fn gmod13_open(L: *mut lua_State) -> c_int { [INFO] [stdout] | ---------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 161 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_CHANNELS` [INFO] [stdout] --> src/steam_decoder.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const MAX_CHANNELS: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_PACKET_LOSS` [INFO] [stdout] --> src/steam_decoder.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const MAX_PACKET_LOSS: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `codec_unk` [INFO] [stdout] --> src/steam_decoder.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | codec_unk = 2, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:78:109 [INFO] [stdout] | [INFO] [stdout] 78 | lua_pushstring(L, CString::new(format!("cannot find engine from {}", path_to_lib)).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:163:62 [INFO] [stdout] | [INFO] [stdout] 163 | lua_setfield(L, -2, CString::new("Version").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: static variable `lstate` should have an upper case name [INFO] [stdout] --> src/lib.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | static mut lstate: Option<*mut lua_State> = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `LSTATE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [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: static variable `voice_hook` should have an upper case name [INFO] [stdout] --> src/lib.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | static mut voice_hook: Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `VOICE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(ref L) = lstate { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `player_slot` should have an upper case name [INFO] [stdout] --> src/lib.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | static mut player_slot: Option = None; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `PLAYER_SLOT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | extern "C" fn enable_hook(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | extern "C" fn disable(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn glua_setglobal(L: *mut lua_State, lua_name: &str) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | fn glua_register_to_table(L: *mut lua_State, table_index: i32, lua_name: &str, func: unsafe extern "C" fn(*mut lua_State) -> c_int) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:155:38 [INFO] [stdout] | [INFO] [stdout] 155 | pub unsafe extern "C" fn gmod13_open(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:173:32 [INFO] [stdout] | [INFO] [stdout] 173 | pub extern "C" fn gmod13_close(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/steam_decoder.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut buf = std::fs::read("compressed.dat").unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 19 | lua_getglobal!(L, unsafe { C_HOOK.as_ptr() as *const c_char }); [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/lib.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 20 | lua_getfield(L, -1, unsafe { C_RUN.as_ptr() as *const c_char }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 22 | lua_pushstring(L, unsafe { C_VOICEDATA.as_ptr() as *const c_char }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [INFO] [stdout] | ------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 26 | let data_i8 = unsafe { &*(data as *const _ as *const [i8]) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:84:38 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 84 | let data: *const LinkMap32 = unsafe { ptr as *const LinkMap32 }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:96:32 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 96 | let mut hook = unsafe { RawDetour::new(ptr as *const (), voice_detour as *const ()).unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 97 | unsafe { hook.enable().unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub unsafe extern "C" fn gmod13_open(L: *mut lua_State) -> c_int { [INFO] [stdout] | ---------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 156 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub unsafe extern "C" fn gmod13_open(L: *mut lua_State) -> c_int { [INFO] [stdout] | ---------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 161 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_CHANNELS` [INFO] [stdout] --> src/steam_decoder.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const MAX_CHANNELS: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_PACKET_LOSS` [INFO] [stdout] --> src/steam_decoder.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const MAX_PACKET_LOSS: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `codec_unk` [INFO] [stdout] --> src/steam_decoder.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | codec_unk = 2, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:78:109 [INFO] [stdout] | [INFO] [stdout] 78 | lua_pushstring(L, CString::new(format!("cannot find engine from {}", path_to_lib)).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:163:62 [INFO] [stdout] | [INFO] [stdout] 163 | lua_setfield(L, -2, CString::new("Version").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: static variable `lstate` should have an upper case name [INFO] [stdout] --> src/lib.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | static mut lstate: Option<*mut lua_State> = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `LSTATE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe fn voice_hook_run(L: *mut lua_State, slot: i32, data: &[u8]) { [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: static variable `voice_hook` should have an upper case name [INFO] [stdout] --> src/lib.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | static mut voice_hook: Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `VOICE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(ref L) = lstate { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `player_slot` should have an upper case name [INFO] [stdout] --> src/lib.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | static mut player_slot: Option = None; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `PLAYER_SLOT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | extern "C" fn enable_hook(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | extern "C" fn disable(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn glua_setglobal(L: *mut lua_State, lua_name: &str) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | fn glua_register_to_table(L: *mut lua_State, table_index: i32, lua_name: &str, func: unsafe extern "C" fn(*mut lua_State) -> c_int) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:155:38 [INFO] [stdout] | [INFO] [stdout] 155 | pub unsafe extern "C" fn gmod13_open(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/lib.rs:173:32 [INFO] [stdout] | [INFO] [stdout] 173 | pub extern "C" fn gmod13_close(L: *mut lua_State) -> c_int { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/steam_decoder.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | io::copy(&mut Read::by_ref(&mut input).take(data_len as u64), &mut io::sink()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/steam_decoder.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | io::copy(&mut Read::by_ref(&mut input).take(data_len as u64), &mut io::sink()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 54s [INFO] running `Command { std: "docker" "inspect" "5a6eb752887745a78022cda5a79c705069dbf29af6d5cb18c9b500bdff5ac7ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a6eb752887745a78022cda5a79c705069dbf29af6d5cb18c9b500bdff5ac7ac", kill_on_drop: false }` [INFO] [stdout] 5a6eb752887745a78022cda5a79c705069dbf29af6d5cb18c9b500bdff5ac7ac