[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] testing wyozi-gmod/rvoicehook against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyozi-gmod%2Frvoicehook" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wyozi-gmod/rvoicehook on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", 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-1/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" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded region v2.2.0 [INFO] [stderr] Downloaded bindgen v0.54.1 [INFO] [stderr] Downloaded scroll_derive v0.10.2 [INFO] [stderr] Downloaded detour v0.7.1 [INFO] [stderr] Downloaded libudis86-sys v0.2.1 [INFO] [stderr] Downloaded slice-pool v0.4.1 [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-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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82466790a94e61238bc30ad36ff48fbbc3b35db1e1ea0759c7d024de3d653b56 [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" "82466790a94e61238bc30ad36ff48fbbc3b35db1e1ea0759c7d024de3d653b56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82466790a94e61238bc30ad36ff48fbbc3b35db1e1ea0759c7d024de3d653b56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82466790a94e61238bc30ad36ff48fbbc3b35db1e1ea0759c7d024de3d653b56", kill_on_drop: false }` [INFO] [stdout] 82466790a94e61238bc30ad36ff48fbbc3b35db1e1ea0759c7d024de3d653b56 [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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--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] 6c7abc3808484a3c23d67cdf1d273f5426c5feca564a130ab90b83d0bec5c80e [INFO] running `Command { std: "docker" "start" "-a" "6c7abc3808484a3c23d67cdf1d273f5426c5feca564a130ab90b83d0bec5c80e", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling bindgen v0.54.1 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Compiling plain v0.2.3 [INFO] [stderr] Compiling rvoicehook v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling slice-pool v0.4.1 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling cmake v0.1.44 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling libudis86-sys v0.2.1 [INFO] [stderr] Compiling opusic-sys v0.3.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling mmap-fixed v0.1.5 [INFO] [stderr] Compiling region v2.2.0 [INFO] [stderr] Compiling clap v2.33.2 [INFO] [stderr] Compiling generic-array v0.13.2 [INFO] [stderr] Compiling detour v0.7.1 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling scroll_derive v0.10.2 [INFO] [stderr] Compiling scroll v0.10.1 [INFO] [stderr] Compiling magnum-opus v0.3.2 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling 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: 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: 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: unused `std::result::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] error: linking with `cc` failed: exit code: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/rvoicehook.rvoicehook.69u248um-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/librvoicehook.so" "-Wl,--version-script=/tmp/rustcjBNmwH/list" "/opt/rustwide/target/debug/deps/rvoicehook.262gyc5ezr1ijad.rcgu.o" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "srcds" "-L" "/opt/rustwide/target/debug/build/libudis86-sys-fa52bf0290c6d246/out" "-L" "/opt/rustwide/target/debug/build/opusic-sys-8661610c53eaef85/out/lib" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libgoblin-1acfd818b037661d.rlib" "/opt/rustwide/target/debug/deps/liblog-4bf1047162af990b.rlib" "/opt/rustwide/target/debug/deps/libplain-591aaf77aa80e21e.rlib" "/opt/rustwide/target/debug/deps/libscroll-03b2cde617d51ee0.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-dd535ee656aacf25.rlib" "/opt/rustwide/target/debug/deps/libmagnum_opus-ff6ff133a31cc474.rlib" "/opt/rustwide/target/debug/deps/libopusic_sys-2bab3d63b5c63c64.rlib" "/opt/rustwide/target/debug/deps/liblibloading-4c6ca237559da08e.rlib" "/opt/rustwide/target/debug/deps/libglua_sys-ae4c41fd0627e449.rlib" "/opt/rustwide/target/debug/deps/libdetour-f3de1a1ed68cff08.rlib" "/opt/rustwide/target/debug/deps/liblibudis86_sys-061aab164dfd150c.rlib" "/opt/rustwide/target/debug/deps/libregion-c958550d114c5759.rlib" "/opt/rustwide/target/debug/deps/libbitflags-df474a8ca45884a8.rlib" "/opt/rustwide/target/debug/deps/libmmap_fixed-c25644d93cc7ee2b.rlib" "/opt/rustwide/target/debug/deps/liblibc-3d2c1f08715b4700.rlib" "/opt/rustwide/target/debug/deps/libgeneric_array-06352a1a40b022bd.rlib" "/opt/rustwide/target/debug/deps/libtypenum-f33bb6ebae8da122.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-cd2401a06b1676f6.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-4c6be1962c556cf0.rlib" "/opt/rustwide/target/debug/deps/libslice_pool-66ab203a96b0d95c.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c659455244c9d2ca.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-448643d99e633b5d.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c3d631a525883a.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-d7659a11bb201e01.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-9aceb6f83a33a9b6.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-876c3057c8a2a7c2.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-2f02aa3e24d2aa49.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1d4694108f8cb543.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-79eaa6e630880f50.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-0df1a4ec96f80cf7.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-bba9b0f0f4d77257.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-f848f9c987265235.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0d5ea4f2d39b8e27.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c22053fa5fc00a3b.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-c52e5d6301e1bd59.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-2675a9a46b5cec89.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6e3d052afeb9f711.rlib" "-Wl,-Bdynamic" "-ldl" "-lutil" "-ldl" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-l:garrysmod/bin/lua_shared_srv.so" [INFO] [stdout] = note: /usr/bin/ld: cannot find -l:garrysmod/bin/lua_shared_srv.so [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rvoicehook` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "6c7abc3808484a3c23d67cdf1d273f5426c5feca564a130ab90b83d0bec5c80e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c7abc3808484a3c23d67cdf1d273f5426c5feca564a130ab90b83d0bec5c80e", kill_on_drop: false }` [INFO] [stdout] 6c7abc3808484a3c23d67cdf1d273f5426c5feca564a130ab90b83d0bec5c80e