[INFO] cloning repository https://github.com/lal-buturabi/rust-ffi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lal-buturabi/rust-ffi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flal-buturabi%2Frust-ffi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flal-buturabi%2Frust-ffi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e1ffeadc432a2329cd8bed7ef4c4e510b8ac8d3 [INFO] building lal-buturabi/rust-ffi against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flal-buturabi%2Frust-ffi" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lal-buturabi/rust-ffi on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lal-buturabi/rust-ffi [INFO] finished tweaking git repo https://github.com/lal-buturabi/rust-ffi [INFO] tweaked toml for git repo https://github.com/lal-buturabi/rust-ffi written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lal-buturabi/rust-ffi 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21cf5a821f68987d1905a48efddf22a180fb125353d4f9cb987836c89c0c3d98 [INFO] running `Command { std: "docker" "start" "-a" "21cf5a821f68987d1905a48efddf22a180fb125353d4f9cb987836c89c0c3d98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21cf5a821f68987d1905a48efddf22a180fb125353d4f9cb987836c89c0c3d98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21cf5a821f68987d1905a48efddf22a180fb125353d4f9cb987836c89c0c3d98", kill_on_drop: false }` [INFO] [stdout] 21cf5a821f68987d1905a48efddf22a180fb125353d4f9cb987836c89c0c3d98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 942452f2d9edc5d47109468c4f30391565e261334d029a094b704ffd51f0aa0e [INFO] running `Command { std: "docker" "start" "-a" "942452f2d9edc5d47109468c4f30391565e261334d029a094b704ffd51f0aa0e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling libloading v0.8.0 [INFO] [stderr] Compiling FFI v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/ints/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | / extern "C" { [INFO] [stdout] 5 | | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 6 | | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 7 | | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 8 | | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 9 | | fn modulo(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- not a free function, impl method or 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: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/floats/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | / extern "C" { [INFO] [stdout] 5 | | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 6 | | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 7 | | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 8 | | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- not a free function, impl method or 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] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/strings/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | / extern "C" { [INFO] [stdout] 6 | | fn str_rev(s: *const c_char) -> *mut c_char; [INFO] [stdout] 7 | | fn str_cmp(s1: *const c_char, s2: *const c_char) -> c_short; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- not a free function, impl method or 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] [INFO] [stdout] [INFO] [stdout] warning: constant `paths` is never used [INFO] [stdout] --> src/common.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const paths: [&str; 3] = [ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/common.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn test(func: &str, x: T, y: T, i: usize) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/ints/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/ints/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/ints/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/ints/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `modulo` is never used [INFO] [stdout] --> src/ints/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn modulo(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/floats/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/floats/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/floats/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/floats/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_rev` is never used [INFO] [stdout] --> src/strings/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn str_rev(s: *const c_char) -> *mut c_char; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_cmp` is never used [INFO] [stdout] --> src/strings/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn str_cmp(s1: *const c_char, s2: *const c_char) -> c_short; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `FFI` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ffi` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `paths` should have an upper case name [INFO] [stdout] --> src/common.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const paths: [&str; 3] = [ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `PATHS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Numerics` should have a snake case name [INFO] [stdout] --> src/common.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod Numerics { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `numerics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `add` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `add` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `sub` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `sub` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `mul` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `mul` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `div` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `div` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.14s [INFO] running `Command { std: "docker" "inspect" "942452f2d9edc5d47109468c4f30391565e261334d029a094b704ffd51f0aa0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "942452f2d9edc5d47109468c4f30391565e261334d029a094b704ffd51f0aa0e", kill_on_drop: false }` [INFO] [stdout] 942452f2d9edc5d47109468c4f30391565e261334d029a094b704ffd51f0aa0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e6633ce1fa9b4933a86ddfe91047ff8238d607f85a7d8acac5bb587bba9bb809 [INFO] running `Command { std: "docker" "start" "-a" "e6633ce1fa9b4933a86ddfe91047ff8238d607f85a7d8acac5bb587bba9bb809", kill_on_drop: false }` [INFO] [stderr] Compiling FFI v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/ints/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | / extern "C" { [INFO] [stdout] 5 | | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 6 | | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 7 | | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 8 | | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 9 | | fn modulo(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- not a free function, impl method or 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: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/floats/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | / extern "C" { [INFO] [stdout] 5 | | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 6 | | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 7 | | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 8 | | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- not a free function, impl method or 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] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/strings/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | / extern "C" { [INFO] [stdout] 6 | | fn str_rev(s: *const c_char) -> *mut c_char; [INFO] [stdout] 7 | | fn str_cmp(s1: *const c_char, s2: *const c_char) -> c_short; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- not a free function, impl method or 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] [INFO] [stdout] [INFO] [stdout] warning: constant `paths` is never used [INFO] [stdout] --> src/common.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const paths: [&str; 3] = [ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/common.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn test(func: &str, x: T, y: T, i: usize) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/ints/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/ints/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/ints/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/ints/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `modulo` is never used [INFO] [stdout] --> src/ints/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn modulo(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/floats/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/floats/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/floats/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/floats/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_rev` is never used [INFO] [stdout] --> src/strings/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn str_rev(s: *const c_char) -> *mut c_char; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_cmp` is never used [INFO] [stdout] --> src/strings/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn str_cmp(s1: *const c_char, s2: *const c_char) -> c_short; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `FFI` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ffi` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `paths` should have an upper case name [INFO] [stdout] --> src/common.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const paths: [&str; 3] = [ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `PATHS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Numerics` should have a snake case name [INFO] [stdout] --> src/common.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod Numerics { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `numerics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `add` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `add` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `sub` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `sub` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `mul` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `mul` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `div` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `div` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/ints/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | / extern "C" { [INFO] [stdout] 5 | | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 6 | | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 7 | | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 8 | | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 9 | | fn modulo(a: c_int, b: c_int) -> c_int; [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- not a free function, impl method or 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: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/floats/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | / extern "C" { [INFO] [stdout] 5 | | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 6 | | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 7 | | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 8 | | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- not a free function, impl method or 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] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/strings/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | / extern "C" { [INFO] [stdout] 6 | | fn str_rev(s: *const c_char) -> *mut c_char; [INFO] [stdout] 7 | | fn str_cmp(s1: *const c_char, s2: *const c_char) -> c_short; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- not a free function, impl method or 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] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ints/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let r = unsafe { test::("add", x, y, 0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ints/mod.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let r = unsafe { test::("sub", x, y, 0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ints/mod.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let r = unsafe { test::("mul", x, y, 0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ints/mod.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | let r = unsafe { test::("div", x, y, 0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ints/mod.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let r = unsafe { test::("modulo", x, y, 0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/floats/mod.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let r = unsafe { test::("add", x, y, 1) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/floats/mod.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let r = unsafe { test::("sub", x, y, 1) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/floats/mod.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let r = unsafe { test::("mul", x, y, 1) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/floats/mod.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let r = unsafe { test::("div", x, y, 1) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/ints/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/ints/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/ints/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/ints/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `modulo` is never used [INFO] [stdout] --> src/ints/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn modulo(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/floats/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/floats/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/floats/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/floats/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_rev` is never used [INFO] [stdout] --> src/strings/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn str_rev(s: *const c_char) -> *mut c_char; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_cmp` is never used [INFO] [stdout] --> src/strings/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn str_cmp(s1: *const c_char, s2: *const c_char) -> c_short; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `paths` should have an upper case name [INFO] [stdout] --> src/common.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const paths: [&str; 3] = [ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `PATHS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Numerics` should have a snake case name [INFO] [stdout] --> src/common.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod Numerics { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `numerics` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `add` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn add(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `add` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `sub` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn sub(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `sub` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `mul` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn mul(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `mul` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `div` redeclared with a different signature [INFO] [stdout] --> src/floats/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_float, b: c_float) -> c_float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/ints/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn div(a: c_int, b: c_int) -> c_int; [INFO] [stdout] | ------------------------------------ `div` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(f32, f32) -> f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] running `Command { std: "docker" "inspect" "e6633ce1fa9b4933a86ddfe91047ff8238d607f85a7d8acac5bb587bba9bb809", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6633ce1fa9b4933a86ddfe91047ff8238d607f85a7d8acac5bb587bba9bb809", kill_on_drop: false }` [INFO] [stdout] e6633ce1fa9b4933a86ddfe91047ff8238d607f85a7d8acac5bb587bba9bb809