[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] checking lal-buturabi/rust-ffi against 4d7c0cd298ace72490220301fa543d63a154f8ce for pr-164789
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flal-buturabi%2Frust-ffi" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[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-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/lal-buturabi/rust-ffi on toolchain 4d7c0cd298ace72490220301fa543d63a154f8ce
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d7c0cd298ace72490220301fa543d63a154f8ce" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+4d7c0cd298ace72490220301fa543d63a154f8ce" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c0af3998e971868164375a7dfb646c9933ddd1a3bdb00fa2041266763dc1eeab" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0
[INFO] running `Command { std: "docker" "start" "a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0" "/opt/rustwide/cargo-home/bin/cargo" "+4d7c0cd298ace72490220301fa543d63a154f8ce" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0" "/opt/rustwide/cargo-home/bin/cargo" "+4d7c0cd298ace72490220301fa543d63a154f8ce" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.144
[INFO] [stderr]     Checking libloading v0.8.0
[INFO] [stderr]     Checking FFI v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: the `no_mangle` attribute cannot be used on foreign modules
[INFO] [stdout]  --> src/ints/mod.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[no_mangle]
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: the `no_mangle` attribute can be applied to functions and statics
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `no_mangle` attribute cannot be used on foreign modules
[INFO] [stdout]  --> src/floats/mod.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[no_mangle]
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: the `no_mangle` attribute can be applied to functions and statics
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `no_mangle` attribute cannot be used on foreign modules
[INFO] [stdout]  --> src/strings/mod.rs:4:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[no_mangle]
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: the `no_mangle` attribute can be applied to functions and statics
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `no_mangle` attribute cannot be used on foreign modules
[INFO] [stdout]  --> src/ints/mod.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[no_mangle]
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: the `no_mangle` attribute can be applied to functions and statics
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `no_mangle` attribute cannot be used on foreign modules
[INFO] [stdout]  --> src/floats/mod.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[no_mangle]
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: the `no_mangle` attribute can be applied to functions and statics
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `no_mangle` attribute cannot be used on foreign modules
[INFO] [stdout]  --> src/strings/mod.rs:4:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[no_mangle]
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: the `no_mangle` attribute can be applied to functions and statics
[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::<c_int>("add", x, y, 0) };
[INFO] [stdout]    |                 ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) 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::<c_int>("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::<c_int>("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::<c_int>("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::<c_int>("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::<c_float>("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::<c_float>("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::<c_float>("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::<c_float>("div", x, y, 1) };
[INFO] [stdout]    |                 ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `FFI` (lib test) due to 3 previous errors; 9 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `FFI` (lib) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0", kill_on_drop: false }`
[INFO] [stdout] a7c8e4485910170c6e8253ed33fda744ee214ddaa34365818e52c95a94dabff0
