[INFO] fetching crate twain 0.1.0... [INFO] checking twain-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate twain 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate twain 0.1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate twain 0.1.0 [INFO] finished tweaking crates.io crate twain 0.1.0 [INFO] tweaked toml for crates.io crate twain 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 11 packages to latest compatible versions [INFO] [stderr] Adding proc-macro2 v0.4.30 (available: v1.0.86) [INFO] [stderr] Adding quote v0.6.13 (available: v1.0.37) [INFO] [stderr] Adding syn v0.15.44 (available: v2.0.77) [INFO] [stderr] Adding unicode-xid v0.1.0 (available: v0.2.6) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f632d9901dbbe1cc0bf88df97c9e7b7d9ab08957afa60e013d2a4d1db439ea04 [INFO] running `Command { std: "docker" "start" "-a" "f632d9901dbbe1cc0bf88df97c9e7b7d9ab08957afa60e013d2a4d1db439ea04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f632d9901dbbe1cc0bf88df97c9e7b7d9ab08957afa60e013d2a4d1db439ea04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f632d9901dbbe1cc0bf88df97c9e7b7d9ab08957afa60e013d2a4d1db439ea04", kill_on_drop: false }` [INFO] [stdout] f632d9901dbbe1cc0bf88df97c9e7b7d9ab08957afa60e013d2a4d1db439ea04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c788bb872570f0511ece3e7a4d9a0d7ac39e94e00f7f00ce8ff40ab085b7ca7 [INFO] running `Command { std: "docker" "start" "-a" "2c788bb872570f0511ece3e7a4d9a0d7ac39e94e00f7f00ce8ff40ab085b7ca7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling dlopen_derive v0.1.4 [INFO] [stderr] Checking dlopen v0.1.8 [INFO] [stderr] Checking twain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `c_char` and `c_int` [INFO] [stdout] --> src/lib.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | os::raw::{c_char, c_int}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:609:13 [INFO] [stdout] | [INFO] [stdout] 609 | /// for windows handle to parent window [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 610 | h_parent: null(), [INFO] [stdout] | ---------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_char` and `c_int` [INFO] [stdout] --> src/lib.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | os::raw::{c_char, c_int}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:609:13 [INFO] [stdout] | [INFO] [stdout] 609 | /// for windows handle to parent window [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 610 | h_parent: null(), [INFO] [stdout] | ---------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/test.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 41 | DSEvent::Ready(event) => { [INFO] [stdout] | --------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 46 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/test.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut client = Client::new().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.info` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 399 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 405 | info: Str32, [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `self.info` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 405 | info: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.info` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 399 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 405 | info: Str32, [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `self.info` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 405 | info: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.version` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:425:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 425 | version: Version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because `self.version` has type `Version`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 425 | version: Version.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.manufacturer` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:429:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 429 | manufacturer: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.manufacturer` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 429 | manufacturer: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_family` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 430 | product_family: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_family` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 430 | product_family: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_name` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:431:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 431 | product_name: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_name` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 431 | product_name: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.info` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 399 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 405 | info: Str32, [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `self.info` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 405 | info: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.version` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:425:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 425 | version: Version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because `self.version` has type `Version`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 425 | version: Version.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.manufacturer` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:429:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 429 | manufacturer: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.manufacturer` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 429 | manufacturer: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.info` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 399 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 405 | info: Str32, [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `self.info` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 405 | info: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_family` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 430 | product_family: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_family` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 430 | product_family: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_name` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:431:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 431 | product_name: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_name` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 431 | product_name: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.x_resolution` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:438:5 [INFO] [stdout] | [INFO] [stdout] 435 | #[derive(Debug, Default)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 438 | x_resolution: FixedPoint32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.x_resolution` has type `FixedPoint32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `FixedPoint32` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:193:1 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct FixedPoint32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 438 | x_resolution: FixedPoint32, [INFO] [stdout] | -------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.y_resolution` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:439:5 [INFO] [stdout] | [INFO] [stdout] 435 | #[derive(Debug, Default)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 439 | y_resolution: FixedPoint32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.y_resolution` has type `FixedPoint32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `FixedPoint32` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:193:1 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct FixedPoint32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 439 | y_resolution: FixedPoint32, [INFO] [stdout] | -------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.version` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:425:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 425 | version: Version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because `self.version` has type `Version`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 425 | version: Version.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.manufacturer` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:429:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 429 | manufacturer: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.manufacturer` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 429 | manufacturer: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_family` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 430 | product_family: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_family` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 430 | product_family: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_name` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:431:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 431 | product_name: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_name` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 431 | product_name: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.version` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:425:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 425 | version: Version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because `self.version` has type `Version`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 425 | version: Version.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.manufacturer` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:429:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 429 | manufacturer: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.manufacturer` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 429 | manufacturer: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_family` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 430 | product_family: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_family` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 430 | product_family: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.product_name` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:431:5 [INFO] [stdout] | [INFO] [stdout] 422 | #[derive(Debug, Default, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 431 | product_name: Str32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.product_name` has type `Str32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Clone)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 431 | product_name: Str32.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.x_resolution` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:438:5 [INFO] [stdout] | [INFO] [stdout] 435 | #[derive(Debug, Default)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 438 | x_resolution: FixedPoint32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.x_resolution` has type `FixedPoint32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `FixedPoint32` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:193:1 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct FixedPoint32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 438 | x_resolution: FixedPoint32, [INFO] [stdout] | -------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.y_resolution` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:439:5 [INFO] [stdout] | [INFO] [stdout] 435 | #[derive(Debug, Default)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 439 | y_resolution: FixedPoint32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.y_resolution` has type `FixedPoint32`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `FixedPoint32` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:193:1 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct FixedPoint32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 439 | y_resolution: FixedPoint32, [INFO] [stdout] | -------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1094:13 [INFO] [stdout] | [INFO] [stdout] 1094 | let mut info = ImageInfo::default(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1094:13 [INFO] [stdout] | [INFO] [stdout] 1094 | let mut info = ImageInfo::default(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `twain` (lib test) due to 13 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `twain` (lib) due to 13 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2c788bb872570f0511ece3e7a4d9a0d7ac39e94e00f7f00ce8ff40ab085b7ca7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c788bb872570f0511ece3e7a4d9a0d7ac39e94e00f7f00ce8ff40ab085b7ca7", kill_on_drop: false }` [INFO] [stdout] 2c788bb872570f0511ece3e7a4d9a0d7ac39e94e00f7f00ce8ff40ab085b7ca7