[INFO] cloning repository https://github.com/dbaynard/booklet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dbaynard/booklet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbaynard%2Fbooklet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbaynard%2Fbooklet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca54ccff0534f037c05d882e1b14f4568826fdcb [INFO] building dbaynard/booklet against master#f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9 for pr-137044-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbaynard%2Fbooklet" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dbaynard/booklet on toolchain f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dbaynard/booklet [INFO] finished tweaking git repo https://github.com/dbaynard/booklet [INFO] tweaked toml for git repo https://github.com/dbaynard/booklet written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dbaynard/booklet already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasi v0.11.0+wasi-snapshot-preview1 [INFO] [stderr] Downloaded quickcheck v1.0.3 [INFO] [stderr] Downloaded log v0.4.17 [INFO] [stderr] Downloaded cfg-if v1.0.0 [INFO] [stderr] Downloaded rand_core v0.6.3 [INFO] [stderr] Downloaded getrandom v0.2.7 [INFO] [stderr] Downloaded stdweb-internal-runtime v0.1.5 [INFO] [stderr] Downloaded atty v0.2.14 [INFO] [stderr] Downloaded encoding_index_tests v0.1.4 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.81 [INFO] [stderr] Downloaded bitflags v1.3.2 [INFO] [stderr] Downloaded itoa v0.4.8 [INFO] [stderr] Downloaded hermit-abi v0.1.19 [INFO] [stderr] Downloaded proc-macro-error v1.0.4 [INFO] [stderr] Downloaded miniz_oxide v0.5.3 [INFO] [stderr] Downloaded hashbrown v0.12.1 [INFO] [stderr] Downloaded encoding-index-japanese v1.20141219.5 [INFO] [stderr] Downloaded encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Downloaded encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Downloaded chrono v0.4.19 [INFO] [stderr] Downloaded clap v3.2.8 [INFO] [stderr] Downloaded stdweb v0.4.20 [INFO] [stderr] Downloaded syn v1.0.98 [INFO] [stderr] Downloaded regex v1.5.6 [INFO] [stderr] Downloaded regex-syntax v0.6.26 [INFO] [stderr] Downloaded pom v3.2.0 [INFO] [stderr] Downloaded wasm-bindgen v0.2.81 [INFO] [stderr] Downloaded serde_json v1.0.82 [INFO] [stderr] Downloaded aho-corasick v0.7.18 [INFO] [stderr] Downloaded libc v0.2.126 [INFO] [stderr] Downloaded num-bigint v0.4.3 [INFO] [stderr] Downloaded encoding-index-korean v1.20141219.5 [INFO] [stderr] Downloaded encoding v0.2.33 [INFO] [stderr] Downloaded bumpalo v3.10.0 [INFO] [stderr] Downloaded lopdf v0.27.0 [INFO] [stderr] Downloaded textwrap v0.15.0 [INFO] [stderr] Downloaded serde_derive v1.0.137 [INFO] [stderr] Downloaded serde v1.0.137 [INFO] [stderr] Downloaded time v0.2.27 [INFO] [stderr] Downloaded flate2 v1.0.24 [INFO] [stderr] Downloaded weezl v0.1.6 [INFO] [stderr] Downloaded num-complex v0.4.2 [INFO] [stderr] Downloaded num-rational v0.4.1 [INFO] [stderr] Downloaded num-traits v0.2.15 [INFO] [stderr] Downloaded winapi v0.3.9 [INFO] [stderr] Downloaded memchr v2.5.0 [INFO] [stderr] Downloaded clap_derive v3.2.7 [INFO] [stderr] Downloaded indexmap v1.9.1 [INFO] [stderr] Downloaded once_cell v1.12.0 [INFO] [stderr] Downloaded wasi v0.10.0+wasi-snapshot-preview1 [INFO] [stderr] Downloaded time v0.1.44 [INFO] [stderr] Downloaded adler v1.0.2 [INFO] [stderr] Downloaded ryu v1.0.10 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.81 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.81 [INFO] [stderr] Downloaded standback v0.2.17 [INFO] [stderr] Downloaded time-macros-impl v0.1.2 [INFO] [stderr] Downloaded num-iter v0.1.43 [INFO] [stderr] Downloaded proc-macro2 v1.0.40 [INFO] [stderr] Downloaded quote v1.0.20 [INFO] [stderr] Downloaded unicode-ident v1.0.1 [INFO] [stderr] Downloaded env_logger v0.8.4 [INFO] [stderr] Downloaded rand v0.8.5 [INFO] [stderr] Downloaded heck v0.4.0 [INFO] [stderr] Downloaded proc-macro-error-attr v1.0.4 [INFO] [stderr] Downloaded os_str_bytes v6.1.0 [INFO] [stderr] Downloaded strsim v0.10.0 [INFO] [stderr] Downloaded winapi-util v0.1.5 [INFO] [stderr] Downloaded dtoa v0.4.8 [INFO] [stderr] Downloaded crc32fast v1.3.2 [INFO] [stderr] Downloaded linked-hash-map v0.5.6 [INFO] [stderr] Downloaded semver v0.9.0 [INFO] [stderr] Downloaded rustc_version v0.2.3 [INFO] [stderr] Downloaded stdweb-derive v0.5.3 [INFO] [stderr] Downloaded itoa v1.0.2 [INFO] [stderr] Downloaded stdweb-internal-macros v0.2.9 [INFO] [stderr] Downloaded lazy_static v1.4.0 [INFO] [stderr] Downloaded clap_lex v0.2.4 [INFO] [stderr] Downloaded discard v1.0.4 [INFO] [stderr] Downloaded sha1 v0.6.1 [INFO] [stderr] Downloaded winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] [stderr] Downloaded termcolor v1.1.3 [INFO] [stderr] Downloaded winapi-i686-pc-windows-gnu v0.4.0 [INFO] [stderr] Downloaded proc-macro-hack v0.5.19 [INFO] [stderr] Downloaded time-macros v0.1.1 [INFO] [stderr] Downloaded version_check v0.9.4 [INFO] [stderr] Downloaded num v0.4.0 [INFO] [stderr] Downloaded num-derive v0.3.3 [INFO] [stderr] Downloaded autocfg v1.1.0 [INFO] [stderr] Downloaded base-x v0.2.11 [INFO] [stderr] Downloaded sha1_smol v1.0.0 [INFO] [stderr] Downloaded num-integer v0.1.45 [INFO] [stderr] Downloaded encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Downloaded const_fn v0.4.9 [INFO] [stderr] Downloaded semver-parser v0.7.0 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ddb0a9cac41921fdde78b60e9d3d455c6eb1fab6d520c743bd389e680e872a25 [INFO] running `Command { std: "docker" "start" "-a" "ddb0a9cac41921fdde78b60e9d3d455c6eb1fab6d520c743bd389e680e872a25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddb0a9cac41921fdde78b60e9d3d455c6eb1fab6d520c743bd389e680e872a25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddb0a9cac41921fdde78b60e9d3d455c6eb1fab6d520c743bd389e680e872a25", kill_on_drop: false }` [INFO] [stdout] ddb0a9cac41921fdde78b60e9d3d455c6eb1fab6d520c743bd389e680e872a25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 954a0be6072fcf4ac3d54834ab460e78bb6d8aef94b3fb772a7b0104bcca9aed [INFO] running `Command { std: "docker" "start" "-a" "954a0be6072fcf4ac3d54834ab460e78bb6d8aef94b3fb772a7b0104bcca9aed", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling os_str_bytes v6.1.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling num-complex v0.4.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling weezl v0.1.6 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling pom v3.2.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling lopdf v0.27.0 [INFO] [stderr] Compiling clap v3.2.8 [INFO] [stderr] Compiling booklet v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `leaves` and `blanks` are never read [INFO] [stdout] --> src/calculate.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct PageProps { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 40 | /// How many sheets of paper. [INFO] [stdout] 41 | leaves: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | blanks: OnLeaf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageProps` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/calculate.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, Copy, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OnLeaf` [INFO] [stdout] 9 | enum OnLeaf { [INFO] [stdout] | ------ `OnLeaf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/calculate.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, Copy, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_OnLeaf` [INFO] [stdout] 9 | enum OnLeaf { [INFO] [stdout] | ------ `OnLeaf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.45s [INFO] running `Command { std: "docker" "inspect" "954a0be6072fcf4ac3d54834ab460e78bb6d8aef94b3fb772a7b0104bcca9aed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "954a0be6072fcf4ac3d54834ab460e78bb6d8aef94b3fb772a7b0104bcca9aed", kill_on_drop: false }` [INFO] [stdout] 954a0be6072fcf4ac3d54834ab460e78bb6d8aef94b3fb772a7b0104bcca9aed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b4cdd8ed2d9e3427012ce307dcba63500a2d5897596e7a80fd1b4d52aedf3b0 [INFO] running `Command { std: "docker" "start" "-a" "2b4cdd8ed2d9e3427012ce307dcba63500a2d5897596e7a80fd1b4d52aedf3b0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stdout] warning: fields `leaves` and `blanks` are never read [INFO] [stdout] --> src/calculate.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct PageProps { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 40 | /// How many sheets of paper. [INFO] [stdout] 41 | leaves: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | blanks: OnLeaf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageProps` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/calculate.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, Copy, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OnLeaf` [INFO] [stdout] 9 | enum OnLeaf { [INFO] [stdout] | ------ `OnLeaf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/calculate.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, Copy, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_OnLeaf` [INFO] [stdout] 9 | enum OnLeaf { [INFO] [stdout] | ------ `OnLeaf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling quickcheck v1.0.3 [INFO] [stderr] Compiling booklet v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `leaves` and `blanks` are never read [INFO] [stdout] --> src/calculate.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct PageProps { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 40 | /// How many sheets of paper. [INFO] [stdout] 41 | leaves: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | blanks: OnLeaf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageProps` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/calculate.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, Copy, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OnLeaf` [INFO] [stdout] 9 | enum OnLeaf { [INFO] [stdout] | ------ `OnLeaf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/calculate.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, Copy, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_OnLeaf` [INFO] [stdout] 9 | enum OnLeaf { [INFO] [stdout] | ------ `OnLeaf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 12.75s [INFO] running `Command { std: "docker" "inspect" "2b4cdd8ed2d9e3427012ce307dcba63500a2d5897596e7a80fd1b4d52aedf3b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b4cdd8ed2d9e3427012ce307dcba63500a2d5897596e7a80fd1b4d52aedf3b0", kill_on_drop: false }` [INFO] [stdout] 2b4cdd8ed2d9e3427012ce307dcba63500a2d5897596e7a80fd1b4d52aedf3b0