[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#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpatrickod%2Fbarcode-rust" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/patrickod/barcode-rust on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "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-11/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-11/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e23e31d8f73f487229fd1eb53c08ab7c78b3d1d2efdbc6bdb6bc1a352e2a985d [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" "e23e31d8f73f487229fd1eb53c08ab7c78b3d1d2efdbc6bdb6bc1a352e2a985d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e23e31d8f73f487229fd1eb53c08ab7c78b3d1d2efdbc6bdb6bc1a352e2a985d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e23e31d8f73f487229fd1eb53c08ab7c78b3d1d2efdbc6bdb6bc1a352e2a985d", kill_on_drop: false }` [INFO] [stdout] e23e31d8f73f487229fd1eb53c08ab7c78b3d1d2efdbc6bdb6bc1a352e2a985d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 959e6a3c19de858d201946170ed72ec87cce47b91abc0a05a01ec22365ccb60f [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" "959e6a3c19de858d201946170ed72ec87cce47b91abc0a05a01ec22365ccb60f", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.1.12 [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 `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 `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 `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 `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 `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 `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: panic message is not a string literal [INFO] [stdout] --> src/bin/scanner.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | Err(f) => { panic!(f.to_string()) } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 77 | Err(f) => { panic!("{}", f.to_string()) } [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 77 | Err(f) => { std::panic::panic_any(f.to_string()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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: panic message is not a string literal [INFO] [stdout] --> src/bin/scanner.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | Err(f) => { panic!(f.to_string()) } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 77 | Err(f) => { panic!("{}", f.to_string()) } [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 77 | Err(f) => { std::panic::panic_any(f.to_string()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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: 7 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: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.72s [INFO] running `Command { std: "docker" "inspect" "959e6a3c19de858d201946170ed72ec87cce47b91abc0a05a01ec22365ccb60f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "959e6a3c19de858d201946170ed72ec87cce47b91abc0a05a01ec22365ccb60f", kill_on_drop: false }` [INFO] [stdout] 959e6a3c19de858d201946170ed72ec87cce47b91abc0a05a01ec22365ccb60f