[INFO] fetching crate libsweep 1.0.1... [INFO] testing libsweep-1.0.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate libsweep 1.0.1 into /workspace/builds/worker-27/source [INFO] validating manifest of crates.io crate libsweep 1.0.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libsweep 1.0.1 [INFO] finished tweaking crates.io crate libsweep 1.0.1 [INFO] tweaked toml for crates.io crate libsweep 1.0.1 written to /workspace/builds/worker-27/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 045a738ee5da12e029c12f0ba639a28bf7f6287adbeb80f74fb8453105f7b85f [INFO] running `Command { std: "docker" "start" "-a" "045a738ee5da12e029c12f0ba639a28bf7f6287adbeb80f74fb8453105f7b85f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "045a738ee5da12e029c12f0ba639a28bf7f6287adbeb80f74fb8453105f7b85f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "045a738ee5da12e029c12f0ba639a28bf7f6287adbeb80f74fb8453105f7b85f", kill_on_drop: false }` [INFO] [stdout] 045a738ee5da12e029c12f0ba639a28bf7f6287adbeb80f74fb8453105f7b85f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d5064853b149f6057912c31500f50750d325a691c8f33dca3c891038c68474d [INFO] running `Command { std: "docker" "start" "-a" "1d5064853b149f6057912c31500f50750d325a691c8f33dca3c891038c68474d", kill_on_drop: false }` [INFO] [stderr] Compiling libsweep v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use libc::{int32_t}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn get_version() -> int32_t { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:76:48 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_motor_speed(&self, speed_hertz: int32_t) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:88:45 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn get_motor_speed(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:100:45 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_sample_rate(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | fn sweep_get_version() -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:26:69 [INFO] [stdout] | [INFO] [stdout] 26 | fn sweep_device_set_motor_speed(device: *const SweepDevice, hz: int32_t, error: *const *mut SweepError); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:27:99 [INFO] [stdout] | [INFO] [stdout] 27 | fn sweep_device_get_motor_speed(device: *const SweepDevice, error: *const *mut SweepError) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:28:99 [INFO] [stdout] | [INFO] [stdout] 28 | fn sweep_device_get_sample_rate(device: *const SweepDevice, error: *const *mut SweepError) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:30:68 [INFO] [stdout] | [INFO] [stdout] 30 | fn sweep_scan_get_number_of_samples(scan: *const SweepScan) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:31:61 [INFO] [stdout] | [INFO] [stdout] 31 | fn sweep_scan_get_angle(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:31:73 [INFO] [stdout] | [INFO] [stdout] 31 | fn sweep_scan_get_angle(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:32:64 [INFO] [stdout] | [INFO] [stdout] 32 | fn sweep_scan_get_distance(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:32:76 [INFO] [stdout] | [INFO] [stdout] 32 | fn sweep_scan_get_distance(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:33:71 [INFO] [stdout] | [INFO] [stdout] 33 | fn sweep_scan_get_signal_strength(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:33:83 [INFO] [stdout] | [INFO] [stdout] 33 | fn sweep_scan_get_signal_strength(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:55:86 [INFO] [stdout] | [INFO] [stdout] 55 | let device = sweep_device_construct_simple(CString::new(device).unwrap().as_ptr(), &err); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "1d5064853b149f6057912c31500f50750d325a691c8f33dca3c891038c68474d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d5064853b149f6057912c31500f50750d325a691c8f33dca3c891038c68474d", kill_on_drop: false }` [INFO] [stdout] 1d5064853b149f6057912c31500f50750d325a691c8f33dca3c891038c68474d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbe994b0a911379ad3611ffbc7280eafbf099e631c8dc85909f7b674a9c56b2c [INFO] running `Command { std: "docker" "start" "-a" "dbe994b0a911379ad3611ffbc7280eafbf099e631c8dc85909f7b674a9c56b2c", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use libc::{int32_t}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling libsweep v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn get_version() -> int32_t { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:76:48 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_motor_speed(&self, speed_hertz: int32_t) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:88:45 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn get_motor_speed(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:100:45 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_sample_rate(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | fn sweep_get_version() -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:26:69 [INFO] [stdout] | [INFO] [stdout] 26 | fn sweep_device_set_motor_speed(device: *const SweepDevice, hz: int32_t, error: *const *mut SweepError); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:27:99 [INFO] [stdout] | [INFO] [stdout] 27 | fn sweep_device_get_motor_speed(device: *const SweepDevice, error: *const *mut SweepError) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:28:99 [INFO] [stdout] | [INFO] [stdout] 28 | fn sweep_device_get_sample_rate(device: *const SweepDevice, error: *const *mut SweepError) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:30:68 [INFO] [stdout] | [INFO] [stdout] 30 | fn sweep_scan_get_number_of_samples(scan: *const SweepScan) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:31:61 [INFO] [stdout] | [INFO] [stdout] 31 | fn sweep_scan_get_angle(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:31:73 [INFO] [stdout] | [INFO] [stdout] 31 | fn sweep_scan_get_angle(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:32:64 [INFO] [stdout] | [INFO] [stdout] 32 | fn sweep_scan_get_distance(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:32:76 [INFO] [stdout] | [INFO] [stdout] 32 | fn sweep_scan_get_distance(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:33:71 [INFO] [stdout] | [INFO] [stdout] 33 | fn sweep_scan_get_signal_strength(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:33:83 [INFO] [stdout] | [INFO] [stdout] 33 | fn sweep_scan_get_signal_strength(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:55:86 [INFO] [stdout] | [INFO] [stdout] 55 | let device = sweep_device_construct_simple(CString::new(device).unwrap().as_ptr(), &err); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use libc::{int32_t}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn get_version() -> int32_t { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:76:48 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_motor_speed(&self, speed_hertz: int32_t) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:88:45 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn get_motor_speed(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:100:45 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_sample_rate(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | fn sweep_get_version() -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:26:69 [INFO] [stdout] | [INFO] [stdout] 26 | fn sweep_device_set_motor_speed(device: *const SweepDevice, hz: int32_t, error: *const *mut SweepError); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:27:99 [INFO] [stdout] | [INFO] [stdout] 27 | fn sweep_device_get_motor_speed(device: *const SweepDevice, error: *const *mut SweepError) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:28:99 [INFO] [stdout] | [INFO] [stdout] 28 | fn sweep_device_get_sample_rate(device: *const SweepDevice, error: *const *mut SweepError) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:30:68 [INFO] [stdout] | [INFO] [stdout] 30 | fn sweep_scan_get_number_of_samples(scan: *const SweepScan) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:31:61 [INFO] [stdout] | [INFO] [stdout] 31 | fn sweep_scan_get_angle(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:31:73 [INFO] [stdout] | [INFO] [stdout] 31 | fn sweep_scan_get_angle(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:32:64 [INFO] [stdout] | [INFO] [stdout] 32 | fn sweep_scan_get_distance(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:32:76 [INFO] [stdout] | [INFO] [stdout] 32 | fn sweep_scan_get_distance(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:33:71 [INFO] [stdout] | [INFO] [stdout] 33 | fn sweep_scan_get_signal_strength(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:33:83 [INFO] [stdout] | [INFO] [stdout] 33 | fn sweep_scan_get_signal_strength(scan: *const SweepScan, sample: int32_t) -> int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:55:86 [INFO] [stdout] | [INFO] [stdout] 55 | let device = sweep_device_construct_simple(CString::new(device).unwrap().as_ptr(), &err); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.0.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.1.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.10.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.11.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.12.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.13.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.14.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.15.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.2.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.3.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.4.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.5.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.6.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.7.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.8.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.scan.ecc53a93-cgu.9.rcgu.o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724.3w45fq45l1jfyo80.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/liblibsweep-ca432e5dafd947fa.rlib" "/opt/rustwide/target/debug/deps/liblibc-cbcf0797f466a12c.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8d61b92a0a02f53a.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fc45202bb435016b.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f2400674c7513725.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-605c3a7d1a5d300d.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3d4fb4efa907e4e8.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-65207f030ab23308.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-76ca199cb0186109.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1e3e01ed4f561dc1.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd8dddcba7c13fee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-00b13d31c3420656.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e4c8460b81557bd5.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-600d46e5f0005455.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e4a08a2585b62d37.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fbc21ec567cb9dc7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10b3fa8e49bd978f.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-64625b73694ffce7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-fb6b78ac543a58ee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d1f2d1bec6f51b8.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-acf5ff6e9595d982.rlib" "-Wl,-Bdynamic" "-lsweep" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/examples/scan-7f7fe6fabf184724" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lsweep [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.libsweep.4876af15-cgu.9.rcgu.o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244.4mto5renvarvznpx.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lsweep" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-b6a068090bf40c71.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-1c1e08c768cd8903.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-3f4474e7a3a1f53f.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-ec55ab174918e77a.rlib" "/opt/rustwide/target/debug/deps/liblibc-cbcf0797f466a12c.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8d61b92a0a02f53a.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fc45202bb435016b.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f2400674c7513725.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-605c3a7d1a5d300d.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3d4fb4efa907e4e8.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-65207f030ab23308.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-76ca199cb0186109.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1e3e01ed4f561dc1.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd8dddcba7c13fee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-00b13d31c3420656.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e4c8460b81557bd5.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-600d46e5f0005455.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e4a08a2585b62d37.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fbc21ec567cb9dc7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10b3fa8e49bd978f.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-64625b73694ffce7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-fb6b78ac543a58ee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d1f2d1bec6f51b8.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-acf5ff6e9595d982.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libsweep-f5ef7fe269d4e244" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lsweep [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libsweep` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "dbe994b0a911379ad3611ffbc7280eafbf099e631c8dc85909f7b674a9c56b2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbe994b0a911379ad3611ffbc7280eafbf099e631c8dc85909f7b674a9c56b2c", kill_on_drop: false }` [INFO] [stdout] dbe994b0a911379ad3611ffbc7280eafbf099e631c8dc85909f7b674a9c56b2c