[INFO] cloning repository https://github.com/ssnover/libmodbus-c2rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ssnover/libmodbus-c2rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssnover%2Flibmodbus-c2rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssnover%2Flibmodbus-c2rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6f6de7bbd8252a715c666cf778a80803a7b1051 [INFO] checking ssnover/libmodbus-c2rust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssnover%2Flibmodbus-c2rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ssnover/libmodbus-c2rust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ssnover/libmodbus-c2rust [INFO] finished tweaking git repo https://github.com/ssnover/libmodbus-c2rust [INFO] tweaked toml for git repo https://github.com/ssnover/libmodbus-c2rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ssnover/libmodbus-c2rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79dbe8dbdee5dc06a72528c792e3698dff2bc4b174b65d9dde0897ae46e86666 [INFO] running `Command { std: "docker" "start" "-a" "79dbe8dbdee5dc06a72528c792e3698dff2bc4b174b65d9dde0897ae46e86666", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79dbe8dbdee5dc06a72528c792e3698dff2bc4b174b65d9dde0897ae46e86666", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79dbe8dbdee5dc06a72528c792e3698dff2bc4b174b65d9dde0897ae46e86666", kill_on_drop: false }` [INFO] [stdout] 79dbe8dbdee5dc06a72528c792e3698dff2bc4b174b65d9dde0897ae46e86666 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 24b89dd9f43d7e784e16d95aa0c8fede0ee4915aa6fc427bd00624f791704cd4 [INFO] running `Command { std: "docker" "start" "-a" "24b89dd9f43d7e784e16d95aa0c8fede0ee4915aa6fc427bd00624f791704cd4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling libmodbus v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_rtu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_tcp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_rtu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 4 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 5 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 8 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 9 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_tcp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_rtu.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 14 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 15 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 17 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn open(__file: *const libc::c_char, __oflag: libc::c_int, _: ...) [INFO] [stdout] 24 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 27 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 29 | / fn strcpy(_: *mut libc::c_char, _: *const libc::c_char) [INFO] [stdout] 30 | | -> *mut libc::c_char; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 36 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 38 | / fn read(__fd: libc::c_int, __buf: *mut libc::c_void, __nbytes: size_t) [INFO] [stdout] 39 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 41 | / fn write(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t) [INFO] [stdout] 42 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 44 | fn usleep(__useconds: __useconds_t) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 47 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 48 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 50 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 52 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 53 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | / fn tcsetattr(__fd: libc::c_int, __optional_actions: libc::c_int, [INFO] [stdout] 58 | | __termios_p: *const termios) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 60 | / fn cfsetospeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 61 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | / fn cfsetispeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 64 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 66 | fn tcgetattr(__fd: libc::c_int, __termios_p: *mut termios) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 68 | / fn tcflush(__fd: libc::c_int, __queue_selector: libc::c_int) [INFO] [stdout] 69 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | / fn ioctl(__fd: libc::c_int, __request: libc::c_ulong, _: ...) [INFO] [stdout] 72 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_tcp.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | fn perror(__s: *const libc::c_char); [INFO] [stdout] | ------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 15 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 16 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 17 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 24 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | / fn getsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 31 | | __optname: libc::c_int, __optval: *mut libc::c_void, [INFO] [stdout] 32 | | __optlen: *mut socklen_t) -> libc::c_int; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | / fn socket(__domain: libc::c_int, __type: libc::c_int, [INFO] [stdout] 35 | | __protocol: libc::c_int) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 37 | / fn bind(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 38 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 40 | / fn connect(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 41 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 43 | / fn send(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t, [INFO] [stdout] 44 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn recv(__fd: libc::c_int, __buf: *mut libc::c_void, __n: size_t, [INFO] [stdout] 47 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 49 | / fn setsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 50 | | __optname: libc::c_int, __optval: *const libc::c_void, [INFO] [stdout] 51 | | __optlen: socklen_t) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 53 | fn listen(__fd: libc::c_int, __n: libc::c_int) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn shutdown(__fd: libc::c_int, __how: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | fn htonl(__hostlong: uint32_t) -> uint32_t; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 59 | fn htons(__hostshort: uint16_t) -> uint16_t; [INFO] [stdout] | -------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 61 | fn inet_addr(__cp: *const libc::c_char) -> in_addr_t; [INFO] [stdout] | ----------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | fn inet_ntoa(__in: in_addr) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 65 | / fn getaddrinfo(__name: *const libc::c_char, [INFO] [stdout] 66 | | __service: *const libc::c_char, __req: *const addrinfo, [INFO] [stdout] 67 | | __pai: *mut *mut addrinfo) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 69 | fn freeaddrinfo(__ai: *mut addrinfo); [INFO] [stdout] | ------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | fn gai_strerror(__ecode: libc::c_int) -> *const libc::c_char; [INFO] [stdout] | ------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 73 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 75 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 76 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 78 | / fn strlcpy(dest: *mut libc::c_char, src: *const libc::c_char, [INFO] [stdout] 79 | | dest_size: size_t) -> size_t; [INFO] [stdout] | |____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 81 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn vfprintf(_: *mut FILE, _: *const libc::c_char, _: ::std::ffi::VaList) [INFO] [stdout] 14 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 16 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 17 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 20 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 22 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 24 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | / fn nanosleep(__requested_time: *const timespec, [INFO] [stdout] 33 | | __remaining: *mut timespec) -> libc::c_int; [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 35 | / fn modbus_set_bits_from_bytes(dest: *mut uint8_t, idx: libc::c_int, [INFO] [stdout] 36 | | nb_bits: libc::c_uint, [INFO] [stdout] 37 | | tab_byte: *const uint8_t); [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `label_break_value` has been stable since 1.65.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/c2rust-lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(label_break_value)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 4 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 5 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 8 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 9 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_rtu.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 14 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 15 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 17 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn open(__file: *const libc::c_char, __oflag: libc::c_int, _: ...) [INFO] [stdout] 24 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 27 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 29 | / fn strcpy(_: *mut libc::c_char, _: *const libc::c_char) [INFO] [stdout] 30 | | -> *mut libc::c_char; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 36 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 38 | / fn read(__fd: libc::c_int, __buf: *mut libc::c_void, __nbytes: size_t) [INFO] [stdout] 39 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 41 | / fn write(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t) [INFO] [stdout] 42 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 44 | fn usleep(__useconds: __useconds_t) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 47 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 48 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 50 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 52 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 53 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | / fn tcsetattr(__fd: libc::c_int, __optional_actions: libc::c_int, [INFO] [stdout] 58 | | __termios_p: *const termios) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 60 | / fn cfsetospeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 61 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | / fn cfsetispeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 64 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 66 | fn tcgetattr(__fd: libc::c_int, __termios_p: *mut termios) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 68 | / fn tcflush(__fd: libc::c_int, __queue_selector: libc::c_int) [INFO] [stdout] 69 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | / fn ioctl(__fd: libc::c_int, __request: libc::c_ulong, _: ...) [INFO] [stdout] 72 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_tcp.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | fn perror(__s: *const libc::c_char); [INFO] [stdout] | ------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 15 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 16 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 17 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 24 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | / fn getsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 31 | | __optname: libc::c_int, __optval: *mut libc::c_void, [INFO] [stdout] 32 | | __optlen: *mut socklen_t) -> libc::c_int; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | / fn socket(__domain: libc::c_int, __type: libc::c_int, [INFO] [stdout] 35 | | __protocol: libc::c_int) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 37 | / fn bind(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 38 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 40 | / fn connect(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 41 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 43 | / fn send(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t, [INFO] [stdout] 44 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn recv(__fd: libc::c_int, __buf: *mut libc::c_void, __n: size_t, [INFO] [stdout] 47 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 49 | / fn setsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 50 | | __optname: libc::c_int, __optval: *const libc::c_void, [INFO] [stdout] 51 | | __optlen: socklen_t) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 53 | fn listen(__fd: libc::c_int, __n: libc::c_int) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn shutdown(__fd: libc::c_int, __how: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | fn htonl(__hostlong: uint32_t) -> uint32_t; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 59 | fn htons(__hostshort: uint16_t) -> uint16_t; [INFO] [stdout] | -------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 61 | fn inet_addr(__cp: *const libc::c_char) -> in_addr_t; [INFO] [stdout] | ----------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | fn inet_ntoa(__in: in_addr) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 65 | / fn getaddrinfo(__name: *const libc::c_char, [INFO] [stdout] 66 | | __service: *const libc::c_char, __req: *const addrinfo, [INFO] [stdout] 67 | | __pai: *mut *mut addrinfo) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 69 | fn freeaddrinfo(__ai: *mut addrinfo); [INFO] [stdout] | ------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | fn gai_strerror(__ecode: libc::c_int) -> *const libc::c_char; [INFO] [stdout] | ------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 73 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 75 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 76 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 78 | / fn strlcpy(dest: *mut libc::c_char, src: *const libc::c_char, [INFO] [stdout] 79 | | dest_size: size_t) -> size_t; [INFO] [stdout] | |____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 81 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn vfprintf(_: *mut FILE, _: *const libc::c_char, _: ::std::ffi::VaList) [INFO] [stdout] 14 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 16 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 17 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 20 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 22 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 24 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | / fn nanosleep(__requested_time: *const timespec, [INFO] [stdout] 33 | | __remaining: *mut timespec) -> libc::c_int; [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 35 | / fn modbus_set_bits_from_bytes(dest: *mut uint8_t, idx: libc::c_int, [INFO] [stdout] 36 | | nb_bits: libc::c_uint, [INFO] [stdout] 37 | | tab_byte: *const uint8_t); [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `label_break_value` has been stable since 1.65.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/c2rust-lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(label_break_value)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_rtu.rs:1459:22 [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = &_modbus_rtu_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = addr_of!(_modbus_rtu_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1302:22 [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = &_modbus_tcp_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = addr_of!(_modbus_tcp_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1356:22 [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = &_modbus_tcp_pi_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = addr_of!(_modbus_tcp_pi_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_rtu.rs:1459:22 [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = &_modbus_rtu_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = addr_of!(_modbus_rtu_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1302:22 [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = &_modbus_tcp_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = addr_of!(_modbus_tcp_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1356:22 [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = &_modbus_tcp_pi_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = addr_of!(_modbus_tcp_pi_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libmodbus::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libmodbus::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libmodbus::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libmodbus::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.52s [INFO] running `Command { std: "docker" "inspect" "24b89dd9f43d7e784e16d95aa0c8fede0ee4915aa6fc427bd00624f791704cd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24b89dd9f43d7e784e16d95aa0c8fede0ee4915aa6fc427bd00624f791704cd4", kill_on_drop: false }` [INFO] [stdout] 24b89dd9f43d7e784e16d95aa0c8fede0ee4915aa6fc427bd00624f791704cd4 [INFO] checking ssnover/libmodbus-c2rust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssnover%2Flibmodbus-c2rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ssnover/libmodbus-c2rust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ssnover/libmodbus-c2rust [INFO] finished tweaking git repo https://github.com/ssnover/libmodbus-c2rust [INFO] tweaked toml for git repo https://github.com/ssnover/libmodbus-c2rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ssnover/libmodbus-c2rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] befd8fef1ff0f61d3888e7bb480b8ba5687d16d259aa2ebb7b1604d592d3318e [INFO] running `Command { std: "docker" "start" "-a" "befd8fef1ff0f61d3888e7bb480b8ba5687d16d259aa2ebb7b1604d592d3318e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "befd8fef1ff0f61d3888e7bb480b8ba5687d16d259aa2ebb7b1604d592d3318e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "befd8fef1ff0f61d3888e7bb480b8ba5687d16d259aa2ebb7b1604d592d3318e", kill_on_drop: false }` [INFO] [stdout] befd8fef1ff0f61d3888e7bb480b8ba5687d16d259aa2ebb7b1604d592d3318e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2beb96d5cf5ebdecc30dbba33c5d19d20cd3966be6d73cbf7fe0737dab8eec5 [INFO] running `Command { std: "docker" "start" "-a" "b2beb96d5cf5ebdecc30dbba33c5d19d20cd3966be6d73cbf7fe0737dab8eec5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling libmodbus v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_rtu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_tcp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 4 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 5 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 8 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 9 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_rtu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus_tcp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/modbus.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::libc; [INFO] [stdout] | ^^^^^^ the item `libc` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_rtu.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 14 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 15 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 17 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn open(__file: *const libc::c_char, __oflag: libc::c_int, _: ...) [INFO] [stdout] 24 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 27 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 29 | / fn strcpy(_: *mut libc::c_char, _: *const libc::c_char) [INFO] [stdout] 30 | | -> *mut libc::c_char; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 36 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 38 | / fn read(__fd: libc::c_int, __buf: *mut libc::c_void, __nbytes: size_t) [INFO] [stdout] 39 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 41 | / fn write(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t) [INFO] [stdout] 42 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 44 | fn usleep(__useconds: __useconds_t) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 47 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 48 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 50 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 52 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 53 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | / fn tcsetattr(__fd: libc::c_int, __optional_actions: libc::c_int, [INFO] [stdout] 58 | | __termios_p: *const termios) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 60 | / fn cfsetospeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 61 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | / fn cfsetispeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 64 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 66 | fn tcgetattr(__fd: libc::c_int, __termios_p: *mut termios) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 68 | / fn tcflush(__fd: libc::c_int, __queue_selector: libc::c_int) [INFO] [stdout] 69 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | / fn ioctl(__fd: libc::c_int, __request: libc::c_ulong, _: ...) [INFO] [stdout] 72 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_tcp.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | fn perror(__s: *const libc::c_char); [INFO] [stdout] | ------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 15 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 16 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 17 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 24 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | / fn getsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 31 | | __optname: libc::c_int, __optval: *mut libc::c_void, [INFO] [stdout] 32 | | __optlen: *mut socklen_t) -> libc::c_int; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | / fn socket(__domain: libc::c_int, __type: libc::c_int, [INFO] [stdout] 35 | | __protocol: libc::c_int) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 37 | / fn bind(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 38 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 40 | / fn connect(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 41 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 43 | / fn send(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t, [INFO] [stdout] 44 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn recv(__fd: libc::c_int, __buf: *mut libc::c_void, __n: size_t, [INFO] [stdout] 47 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 49 | / fn setsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 50 | | __optname: libc::c_int, __optval: *const libc::c_void, [INFO] [stdout] 51 | | __optlen: socklen_t) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 53 | fn listen(__fd: libc::c_int, __n: libc::c_int) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn shutdown(__fd: libc::c_int, __how: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | fn htonl(__hostlong: uint32_t) -> uint32_t; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 59 | fn htons(__hostshort: uint16_t) -> uint16_t; [INFO] [stdout] | -------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 61 | fn inet_addr(__cp: *const libc::c_char) -> in_addr_t; [INFO] [stdout] | ----------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | fn inet_ntoa(__in: in_addr) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 65 | / fn getaddrinfo(__name: *const libc::c_char, [INFO] [stdout] 66 | | __service: *const libc::c_char, __req: *const addrinfo, [INFO] [stdout] 67 | | __pai: *mut *mut addrinfo) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 69 | fn freeaddrinfo(__ai: *mut addrinfo); [INFO] [stdout] | ------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | fn gai_strerror(__ecode: libc::c_int) -> *const libc::c_char; [INFO] [stdout] | ------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 73 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 75 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 76 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 78 | / fn strlcpy(dest: *mut libc::c_char, src: *const libc::c_char, [INFO] [stdout] 79 | | dest_size: size_t) -> size_t; [INFO] [stdout] | |____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 81 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn vfprintf(_: *mut FILE, _: *const libc::c_char, _: ::std::ffi::VaList) [INFO] [stdout] 14 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 16 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 17 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 20 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 22 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 24 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | / fn nanosleep(__requested_time: *const timespec, [INFO] [stdout] 33 | | __remaining: *mut timespec) -> libc::c_int; [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 35 | / fn modbus_set_bits_from_bytes(dest: *mut uint8_t, idx: libc::c_int, [INFO] [stdout] 36 | | nb_bits: libc::c_uint, [INFO] [stdout] 37 | | tab_byte: *const uint8_t); [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `label_break_value` has been stable since 1.65.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/c2rust-lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(label_break_value)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 4 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 5 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_data.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 8 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 9 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_rtu.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 14 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 15 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 17 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn open(__file: *const libc::c_char, __oflag: libc::c_int, _: ...) [INFO] [stdout] 24 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 27 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 29 | / fn strcpy(_: *mut libc::c_char, _: *const libc::c_char) [INFO] [stdout] 30 | | -> *mut libc::c_char; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 36 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 38 | / fn read(__fd: libc::c_int, __buf: *mut libc::c_void, __nbytes: size_t) [INFO] [stdout] 39 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 41 | / fn write(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t) [INFO] [stdout] 42 | | -> ssize_t; [INFO] [stdout] | |________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 44 | fn usleep(__useconds: __useconds_t) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn __assert_fail(__assertion: *const libc::c_char, [INFO] [stdout] 47 | | __file: *const libc::c_char, __line: libc::c_uint, [INFO] [stdout] 48 | | __function: *const libc::c_char) -> !; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 50 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 52 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 53 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | / fn tcsetattr(__fd: libc::c_int, __optional_actions: libc::c_int, [INFO] [stdout] 58 | | __termios_p: *const termios) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 60 | / fn cfsetospeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 61 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | / fn cfsetispeed(__termios_p: *mut termios, __speed: speed_t) [INFO] [stdout] 64 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 66 | fn tcgetattr(__fd: libc::c_int, __termios_p: *mut termios) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 68 | / fn tcflush(__fd: libc::c_int, __queue_selector: libc::c_int) [INFO] [stdout] 69 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_rtu.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | / fn ioctl(__fd: libc::c_int, __request: libc::c_ulong, _: ...) [INFO] [stdout] 72 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus_tcp.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | fn perror(__s: *const libc::c_char); [INFO] [stdout] | ------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 15 | / fn select(__nfds: libc::c_int, __readfds: *mut fd_set, [INFO] [stdout] 16 | | __writefds: *mut fd_set, __exceptfds: *mut fd_set, [INFO] [stdout] 17 | | __timeout: *mut timeval) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 21 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 23 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 24 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn close(__fd: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | / fn getsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 31 | | __optname: libc::c_int, __optval: *mut libc::c_void, [INFO] [stdout] 32 | | __optlen: *mut socklen_t) -> libc::c_int; [INFO] [stdout] | |___________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 34 | / fn socket(__domain: libc::c_int, __type: libc::c_int, [INFO] [stdout] 35 | | __protocol: libc::c_int) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 37 | / fn bind(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 38 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 40 | / fn connect(__fd: libc::c_int, __addr: *const sockaddr, __len: socklen_t) [INFO] [stdout] 41 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 43 | / fn send(__fd: libc::c_int, __buf: *const libc::c_void, __n: size_t, [INFO] [stdout] 44 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 46 | / fn recv(__fd: libc::c_int, __buf: *mut libc::c_void, __n: size_t, [INFO] [stdout] 47 | | __flags: libc::c_int) -> ssize_t; [INFO] [stdout] | |_____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 49 | / fn setsockopt(__fd: libc::c_int, __level: libc::c_int, [INFO] [stdout] 50 | | __optname: libc::c_int, __optval: *const libc::c_void, [INFO] [stdout] 51 | | __optlen: socklen_t) -> libc::c_int; [INFO] [stdout] | |______________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 53 | fn listen(__fd: libc::c_int, __n: libc::c_int) -> libc::c_int; [INFO] [stdout] | -------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 55 | fn shutdown(__fd: libc::c_int, __how: libc::c_int) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 57 | fn htonl(__hostlong: uint32_t) -> uint32_t; [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 59 | fn htons(__hostshort: uint16_t) -> uint16_t; [INFO] [stdout] | -------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 61 | fn inet_addr(__cp: *const libc::c_char) -> in_addr_t; [INFO] [stdout] | ----------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 63 | fn inet_ntoa(__in: in_addr) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 65 | / fn getaddrinfo(__name: *const libc::c_char, [INFO] [stdout] 66 | | __service: *const libc::c_char, __req: *const addrinfo, [INFO] [stdout] 67 | | __pai: *mut *mut addrinfo) -> libc::c_int; [INFO] [stdout] | |_____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 69 | fn freeaddrinfo(__ai: *mut addrinfo); [INFO] [stdout] | ------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 71 | fn gai_strerror(__ecode: libc::c_int) -> *const libc::c_char; [INFO] [stdout] | ------------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 73 | fn modbus_free(ctx: *mut modbus_t); [INFO] [stdout] | ----------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 75 | / fn _modbus_receive_msg(ctx: *mut modbus_t, msg: *mut uint8_t, [INFO] [stdout] 76 | | msg_type: msg_type_t) -> libc::c_int; [INFO] [stdout] | |________________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 78 | / fn strlcpy(dest: *mut libc::c_char, src: *const libc::c_char, [INFO] [stdout] 79 | | dest_size: size_t) -> size_t; [INFO] [stdout] | |____________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus_tcp.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 81 | fn _modbus_init_common(ctx: *mut modbus_t); [INFO] [stdout] | ------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign static [INFO] [stdout] --> src/modbus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 7 | static mut stderr: *mut FILE; [INFO] [stdout] | ----------------------------- foreign static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 9 | fn fprintf(_: *mut FILE, _: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | ------------------------------------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 11 | fn printf(_: *const libc::c_char, _: ...) -> libc::c_int; [INFO] [stdout] | --------------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 13 | / fn vfprintf(_: *mut FILE, _: *const libc::c_char, _: ::std::ffi::VaList) [INFO] [stdout] 14 | | -> libc::c_int; [INFO] [stdout] | |____________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 16 | / fn memcpy(_: *mut libc::c_void, _: *const libc::c_void, _: libc::c_ulong) [INFO] [stdout] 17 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 19 | / fn memset(_: *mut libc::c_void, _: libc::c_int, _: libc::c_ulong) [INFO] [stdout] 20 | | -> *mut libc::c_void; [INFO] [stdout] | |__________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 22 | fn strlen(_: *const libc::c_char) -> libc::c_ulong; [INFO] [stdout] | --------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 24 | fn strerror(_: libc::c_int) -> *mut libc::c_char; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 26 | fn malloc(_: libc::c_ulong) -> *mut libc::c_void; [INFO] [stdout] | ------------------------------------------------- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 28 | fn free(_: *mut libc::c_void); [INFO] [stdout] | ------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 30 | fn __errno_location() -> *mut libc::c_int; [INFO] [stdout] | ------------------------------------------ foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 32 | / fn nanosleep(__requested_time: *const timespec, [INFO] [stdout] 33 | | __remaining: *mut timespec) -> libc::c_int; [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[no_mangle]` has no effect on a foreign function [INFO] [stdout] --> src/modbus.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] 35 | / fn modbus_set_bits_from_bytes(dest: *mut uint8_t, idx: libc::c_int, [INFO] [stdout] 36 | | nb_bits: libc::c_uint, [INFO] [stdout] 37 | | tab_byte: *const uint8_t); [INFO] [stdout] | |____________________________________________________________- foreign function [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: symbol names in extern blocks are not mangled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `label_break_value` has been stable since 1.65.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/c2rust-lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(label_break_value)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_rtu.rs:1459:22 [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = &_modbus_rtu_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = addr_of!(_modbus_rtu_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1302:22 [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = &_modbus_tcp_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = addr_of!(_modbus_tcp_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1356:22 [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = &_modbus_tcp_pi_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = addr_of!(_modbus_tcp_pi_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_rtu.rs:1459:22 [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = &_modbus_rtu_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1459 | (*ctx).backend = addr_of!(_modbus_rtu_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1302:22 [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = &_modbus_tcp_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1302 | (*ctx).backend = addr_of!(_modbus_tcp_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/modbus_tcp.rs:1356:22 [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = &_modbus_tcp_pi_backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1356 | (*ctx).backend = addr_of!(_modbus_tcp_pi_backend); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libmodbus::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libmodbus::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libmodbus::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libmodbus::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.64s [INFO] running `Command { std: "docker" "inspect" "b2beb96d5cf5ebdecc30dbba33c5d19d20cd3966be6d73cbf7fe0737dab8eec5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2beb96d5cf5ebdecc30dbba33c5d19d20cd3966be6d73cbf7fe0737dab8eec5", kill_on_drop: false }` [INFO] [stdout] b2beb96d5cf5ebdecc30dbba33c5d19d20cd3966be6d73cbf7fe0737dab8eec5