[INFO] cloning repository https://github.com/patrickod/barcode-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/patrickod/barcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpatrickod%2Fbarcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpatrickod%2Fbarcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 27b930ed82def7dde32bdd28592586d569ae6223 [INFO] checking patrickod/barcode-rust against master#4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 for pr-81174 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpatrickod%2Fbarcode-rust" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/patrickod/barcode-rust on toolchain 4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/patrickod/barcode-rust [INFO] finished tweaking git repo https://github.com/patrickod/barcode-rust [INFO] tweaked toml for git repo https://github.com/patrickod/barcode-rust written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/patrickod/barcode-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-4/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "fetch" "--locked" "--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-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 852f0ae31febf7ec868429fb11dc354d48e4d0cf06be43a8683896cb1f380340 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "852f0ae31febf7ec868429fb11dc354d48e4d0cf06be43a8683896cb1f380340", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "852f0ae31febf7ec868429fb11dc354d48e4d0cf06be43a8683896cb1f380340", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "852f0ae31febf7ec868429fb11dc354d48e4d0cf06be43a8683896cb1f380340", kill_on_drop: false }` [INFO] [stdout] 852f0ae31febf7ec868429fb11dc354d48e4d0cf06be43a8683896cb1f380340 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43f314db2b87a05a4b16515f62d9d2634e0039033d05e2d59260990cecc815b9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "43f314db2b87a05a4b16515f62d9d2634e0039033d05e2d59260990cecc815b9", kill_on_drop: false }` [INFO] [stderr] Checking bitflags v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking enum_primitive v0.0.2 [INFO] [stderr] Checking scanner v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parse.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | stdout.write(c.to_string().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parse.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | stdout.write(key.to_char().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parse.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | stdout.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parse.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | stdout.write(c.to_string().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parse.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | stdout.write(key.to_char().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parse.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | stdout.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/bin/scanner.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | let f = libc::open(CString::new(file).unwrap().as_ptr(), libc::O_RDONLY, 0); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/bin/scanner.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | let f = libc::open(CString::new(file).unwrap().as_ptr(), libc::O_RDONLY, 0); [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: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | fn libevdev_new() -> *mut Libevdev; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | fn libevdev_set_fd(dev: *mut Libevdev, fd: i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | fn libevdev_next_event(dev: *mut Libevdev, flag: u32, ev: *mut InputEvent) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | fn libevdev_free(dev: *mut Libevdev); [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | fn libevdev_grab(dev: *mut Libevdev, grab: u32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | fn libevdev_new() -> *mut Libevdev; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | fn libevdev_set_fd(dev: *mut Libevdev, fd: i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | fn libevdev_next_event(dev: *mut Libevdev, flag: u32, ev: *mut InputEvent) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | fn libevdev_free(dev: *mut Libevdev); [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Libevdev`, which is not FFI-safe [INFO] [stdout] --> src/bin/scanner.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | fn libevdev_grab(dev: *mut Libevdev, grab: u32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.48s [INFO] running `Command { std: "docker" "inspect" "43f314db2b87a05a4b16515f62d9d2634e0039033d05e2d59260990cecc815b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43f314db2b87a05a4b16515f62d9d2634e0039033d05e2d59260990cecc815b9", kill_on_drop: false }` [INFO] [stdout] 43f314db2b87a05a4b16515f62d9d2634e0039033d05e2d59260990cecc815b9